|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.mathpadapp.networkmanager.managers.NetworkedContentManager
public abstract class NetworkedContentManager
The Class NetworkedContentManager.
Nested Class Summary | |
---|---|
static interface |
NetworkedContentManager.NetworkListener
The listener interface for receiving network events. |
Constructor Summary | |
---|---|
NetworkedContentManager(ContentSystem contentSystem,
TableCommsClientService comms,
java.util.ArrayList<java.lang.Class<?>> receiverClasses)
Instantiates a new networked content manager. |
Method Summary | |
---|---|
void |
addNetworkListener(NetworkedContentManager.NetworkListener l)
Adds the network listener. |
void |
allowedToSendmessage(boolean allowedToSendMessage)
Allowed to sendmessage. |
ContentSystem |
getContentSystem()
Gets the content system. |
java.util.List<TableIdentity> |
getOnlineTables()
Gets the online tables. |
java.util.ArrayList<java.lang.Class<?>> |
getReceiverClasses()
Gets the receiver classes. |
java.util.HashMap<UserIdentity,MathTool> |
getRegisteredMathPads()
Gets the registered math pads. |
SyncManager |
getSyncManager()
Gets the sync manager. |
UserIdentity |
getUserIdentityForMathTool(MathTool tool)
Gets the user identity for math tool. |
boolean |
isAllowedToSendMessage()
Checks if is allowed to send message. |
void |
registerMathPad(UserIdentity userId,
MathTool tool)
Register math pad. |
void |
removeNetworkListener(NetworkedContentManager.NetworkListener l)
Removes the network listener. |
void |
removeNetworkListeners()
Removes the network listeners. |
void |
sendMessage(java.lang.Object obj)
Send message. |
void |
unregisterMathPad(UserIdentity userId)
Unregister math pad. |
void |
update(float tpf)
Update. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetworkedContentManager(ContentSystem contentSystem, TableCommsClientService comms, java.util.ArrayList<java.lang.Class<?>> receiverClasses)
contentSystem
- the content systemcomms
- the commsreceiverClasses
- the receiver classesMethod Detail |
---|
public void addNetworkListener(NetworkedContentManager.NetworkListener l)
l
- the lpublic void allowedToSendmessage(boolean allowedToSendMessage)
allowedToSendMessage
- the allowed to send messagepublic ContentSystem getContentSystem()
public java.util.List<TableIdentity> getOnlineTables()
public java.util.ArrayList<java.lang.Class<?>> getReceiverClasses()
public java.util.HashMap<UserIdentity,MathTool> getRegisteredMathPads()
public SyncManager getSyncManager()
public UserIdentity getUserIdentityForMathTool(MathTool tool)
tool
- the tool
public boolean isAllowedToSendMessage()
public void registerMathPad(UserIdentity userId, MathTool tool)
userId
- the user idtool
- the toolpublic void removeNetworkListener(NetworkedContentManager.NetworkListener l)
l
- the lpublic void removeNetworkListeners()
public void sendMessage(java.lang.Object obj)
obj
- the objpublic void unregisterMathPad(UserIdentity userId)
userId
- the user idpublic void update(float tpf)
tpf
- the tpf
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |