edu.rice.cs.util.swing
Class ScrollableListSelectionDialog.SelectAllNoneActionListener

java.lang.Object
  extended by edu.rice.cs.util.swing.ScrollableListSelectionDialog.SelectAllNoneActionListener
All Implemented Interfaces:
ActionListener, EventListener
Enclosing class:
ScrollableListSelectionDialog

private class ScrollableListSelectionDialog.SelectAllNoneActionListener
extends Object
implements ActionListener

An ActionListener that handles the "Select All" and "Select None" buttons. It will set the selection state of every item to the given selection state.


Field Summary
private  boolean _setToValue
          The value that the selection state will be set to when this listener runs.
 
Constructor Summary
ScrollableListSelectionDialog.SelectAllNoneActionListener(ScrollableListSelectionDialog.SelectionState setToState)
          Creates a new SelectAllNoneActionListener that will set the state of every item to the given state.
 
Method Summary
 void actionPerformed(ActionEvent notUsed)
          The code that runs in response to the button's action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_setToValue

private final boolean _setToValue
The value that the selection state will be set to when this listener runs.

Constructor Detail

ScrollableListSelectionDialog.SelectAllNoneActionListener

public ScrollableListSelectionDialog.SelectAllNoneActionListener(ScrollableListSelectionDialog.SelectionState setToState)
Creates a new SelectAllNoneActionListener that will set the state of every item to the given state.

Parameters:
setToState - The state to set all the items to.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent notUsed)
The code that runs in response to the button's action. This is the code that actually sets the selection state of the items.

Specified by:
actionPerformed in interface ActionListener
Parameters:
notUsed - Not used.