Class NetworkSession
java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.networksession.NetworkSession
A Node that represents a network session. Can be accessed by other nodes to send and receive data.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
getComponents
(List<JPanel> list) Build a Swing Component that represents this Node.getIcon()
Set a custom icon for this node.boolean
void
openConnection
(SessionLayer session) void
void
void
setSession
(SessionLayer session) Methods inherited from class com.marginallyclever.ro3.node.Node
addAttachListener, addChild, addChild, addDetachListener, addReadyListener, addRenameListener, findByPath, findChild, findChild, findFirstChild, findFirstSibling, findNodeByID, findParent, findParent, fromJSON, getAbsolutePath, getChildren, getName, getParent, getRootNode, getUniqueID, hasParent, isNameUsedBySibling, removeAttachListener, removeChild, removeDetachListener, removeReadyListener, removeRenameListener, setName, toJSON, update, witnessProtection
-
Field Details
-
CONNECTION_OPENED
public static final int CONNECTION_OPENED- See Also:
-
CONNECTION_CLOSED
public static final int CONNECTION_CLOSED- See Also:
-
-
Constructor Details
-
NetworkSession
public NetworkSession() -
NetworkSession
-
-
Method Details
-
getComponents
Description copied from class:Node
Build a Swing Component that represents this Node.- Overrides:
getComponents
in classNode
- Parameters:
list
- the list to add components to.
-
getSession
-
setSession
-
getIcon
Description copied from class:Node
Set a custom icon for this node. -
openConnection
-
closeConnection
public void closeConnection() -
addActionListener
-
removeActionListener
-
isConnected
public boolean isConnected() -
send
-