Class AbstractSelectActionControl.SelectActionListener

  • All Implemented Interfaces:
    ActionListener, GuiseEventListener, java.util.EventListener
    Enclosing class:
    AbstractSelectActionControl

    public static class AbstractSelectActionControl.SelectActionListener
    extends java.lang.Object
    implements ActionListener
    An action listener that selects a select action listener if auto-select is turned on, toggling the select status if necessary.
    Author:
    Garret Wilson
    • Field Detail

      • selectActionControl

        protected final SelectActionControl selectActionControl
        The control to select.
    • Constructor Detail

      • SelectActionListener

        public SelectActionListener​(SelectActionControl selectActionControl)
        Select action control constructor.
        Parameters:
        selectActionControl - The control to select when the action occurs.
        Throws:
        java.lang.NullPointerException - if the given select action control is null.
    • Method Detail

      • actionPerformed

        public void actionPerformed​(ActionEvent actionEvent)
        Called when an action is initiated.

        This implementation auto-selects the select action control if auto-select is turned on, toggling if appropriate.

        Specified by:
        actionPerformed in interface ActionListener
        Parameters:
        actionEvent - The event indicating the source of the action.