com.guiseframework.component
Class AbstractSelectActionControl.SelectActionListener

java.lang.Object
  extended by com.guiseframework.component.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 Summary
protected  SelectActionControl selectActionControl
          The control to select.
 
Constructor Summary
AbstractSelectActionControl.SelectActionListener(SelectActionControl selectActionControl)
          Select action control constructor.
 
Method Summary
 void actionPerformed(ActionEvent actionEvent)
          Called when an action is initiated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectActionControl

protected final SelectActionControl selectActionControl
The control to select.

Constructor Detail

AbstractSelectActionControl.SelectActionListener

public AbstractSelectActionControl.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.
See Also:
SelectActionControl.isAutoSelect(), SelectActionControl.isToggle(), Selectable.setSelected(boolean)


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.