Class GuiHubConnector.ListModelTrackedClientSet

  • All Implemented Interfaces:
    javax.swing.ListModel
    Enclosing class:
    GuiHubConnector

    private static class GuiHubConnector.ListModelTrackedClientSet
    extends TrackedClientSet
    implements javax.swing.ListModel
    TrackedClientSet implementation used by this class. Implements ListModel as well.
    • Field Detail

      • clientList_

        private final java.util.List clientList_
      • listenerList_

        private final java.util.List listenerList_
    • Constructor Detail

      • ListModelTrackedClientSet

        ListModelTrackedClientSet()
        Constructor.
    • Method Detail

      • getSize

        public int getSize()
        Specified by:
        getSize in interface javax.swing.ListModel
      • getElementAt

        public java.lang.Object getElementAt​(int index)
        Specified by:
        getElementAt in interface javax.swing.ListModel
      • addListDataListener

        public void addListDataListener​(javax.swing.event.ListDataListener listener)
        Specified by:
        addListDataListener in interface javax.swing.ListModel
      • removeListDataListener

        public void removeListDataListener​(javax.swing.event.ListDataListener listener)
        Specified by:
        removeListDataListener in interface javax.swing.ListModel
      • addClient

        public void addClient​(Client client)
        Description copied from class: TrackedClientSet
        Adds a client to this model. Listeners are informed. May be called from any thread.
        Overrides:
        addClient in class TrackedClientSet
        Parameters:
        client - client to add
      • removeClient

        public void removeClient​(Client client)
        Description copied from class: TrackedClientSet
        Removes a client from this model. Listeners are informed. May be called from any thread.
        Overrides:
        removeClient in class TrackedClientSet
        Parameters:
        client - client to remove
      • setClients

        public void setClients​(Client[] clients)
        Description copied from class: TrackedClientSet
        Sets the contents of this model to a given list. Listeners are informed. May be called from any thread.
        Overrides:
        setClients in class TrackedClientSet
        Parameters:
        clients - current client list
      • updateClient

        public void updateClient​(Client client,
                                 boolean metaChanged,
                                 boolean subsChanged)
        Description copied from class: TrackedClientSet
        Notifies listeners that a given client's attributes (may) have changed. May be called from any thread.
        Overrides:
        updateClient in class TrackedClientSet
        Parameters:
        client - modified client
        metaChanged - true if metadata may have changed (false if known unchanged)
        subsChanged - true if subscriptions may have changed (false if known unchanged)