Class GuiHubService

  • All Implemented Interfaces:
    HubService
    Direct Known Subclasses:
    MessageTrackerHubService

    public class GuiHubService
    extends BasicHubService
    BasicHubService subclass which provides a GUI window displaying hub status as well as the basic hub services.
    Since:
    16 Jul 2008
    Author:
    Mark Taylor
    • Constructor Detail

      • GuiHubService

        public GuiHubService​(java.util.Random random)
        Constructor.
        Parameters:
        random - random number generator used for message tags etc
    • Method Detail

      • createHubPanel

        public javax.swing.JComponent createHubPanel()
        Creates a new component containing a display of the current hub internal state.
        Returns:
        new hub viewer panel
      • createHubWindow

        public javax.swing.JFrame createHubWindow()
        Creates a new window which maintains a display of the current hub internal state.
        Returns:
        new hub viewer window
      • getClientListModel

        public javax.swing.ListModel getClientListModel()
        Returns a ListModel containing information about clients currently registered with this hub.
        Returns:
        list model in which each element is a Client
      • getClientSelectionModel

        public javax.swing.ListSelectionModel getClientSelectionModel()
        Returns the selection model corresponding to this service's client list model.
        Returns:
        list selection model for client selection
      • createMenus

        public javax.swing.JMenu[] createMenus()
        Returns an array of menus which may be added to a window containing this service's window.
        Returns:
        menu array