org.xnap.commons.gui.action
Interface ToggleAction

All Superinterfaces:
Action, ActionListener, EventListener
All Known Implementing Classes:
AbstractToggleAction, AbstractToggleSettingAction, TableHeaderMenu.MaintainSortOrderAction

public interface ToggleAction
extends Action

Defines the requirements for classes that support toggleable actions. This action class can be used for check box items.


Field Summary
static String SELECTED
          The key used for storing the selected state.
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Method Summary
 boolean isSelected()
          Returns the selected state for the action.
 void setSelected(boolean selected)
          Sets the selected state for the action.
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

SELECTED

static final String SELECTED
The key used for storing the selected state.

See Also:
Constant Field Values
Method Detail

isSelected

boolean isSelected()
Returns the selected state for the action.


setSelected

void setSelected(boolean selected)
Sets the selected state for the action.



Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.