Class GuiHubConnector.RegisterAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
    Enclosing class:
    GuiHubConnector

    private class GuiHubConnector.RegisterAction
    extends javax.swing.AbstractAction
    Action which registers and unregisters with the hub.
    • Field Summary

      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Constructor Summary

      Constructors 
      Constructor Description
      RegisterAction()
      Constructs in an unarmed state.
      RegisterAction​(boolean active)
      Constructs with a given (initial) sense.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent evt)  
      protected void registerFailed()  
      void setSense​(boolean active)
      Sets whether this action registers or unregisters.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • Constructor Detail

      • RegisterAction

        public RegisterAction()
        Constructs in an unarmed state.
      • RegisterAction

        public RegisterAction​(boolean active)
        Constructs with a given (initial) sense.
        Parameters:
        active - true to register, false to unregister
    • Method Detail

      • setSense

        public void setSense​(boolean active)
        Sets whether this action registers or unregisters.
        Parameters:
        active - true to register, false to unregister
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent evt)
      • registerFailed

        protected void registerFailed()