java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.networksession.NetworkSession

public class NetworkSession extends Node
A Node that represents a network session. Can be accessed by other nodes to send and receive data.
  • Field Details

  • Constructor Details

    • NetworkSession

      public NetworkSession()
    • NetworkSession

      public NetworkSession(String name)
  • Method Details

    • getComponents

      public void getComponents(List<JPanel> list)
      Description copied from class: Node
      Build a Swing Component that represents this Node.
      Overrides:
      getComponents in class Node
      Parameters:
      list - the list to add components to.
    • getSession

      public SessionLayer getSession()
    • setSession

      public void setSession(SessionLayer session)
    • getIcon

      public Icon getIcon()
      Description copied from class: Node
      Set a custom icon for this node.
      Overrides:
      getIcon in class Node
      Returns:
      the icon, or null if none.
    • openConnection

      public void openConnection(SessionLayer session)
    • closeConnection

      public void closeConnection()
    • addActionListener

      public void addActionListener(ActionListener a)
    • removeActionListener

      public void removeActionListener(ActionListener a)
    • isConnected

      public boolean isConnected()
    • send

      public void send(String message)