Class AbstractSelectActionControl.SelectActionListener

java.lang.Object
io.guise.framework.component.AbstractSelectActionControl.SelectActionListener
All Implemented Interfaces:
ActionListener, GuiseEventListener, EventListener
Enclosing class:
AbstractSelectActionControl

public static class AbstractSelectActionControl.SelectActionListener extends 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 Details

    • selectActionControl

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

    • SelectActionListener

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

    • 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.