edu.rice.cs.util.swing
Class ScrollableListSelectionDialog.SelectAllNoneActionListener
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_setToValue
private final boolean _setToValue
- The value that the selection state will be set to when this
listener runs.
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.
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.