org.xnap.gui.action
Class EnableAction
java.lang.Object
javax.swing.AbstractAction
org.xnap.action.AbstractToggleAction
org.xnap.gui.action.EnableAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, ToggleAction
public class EnableAction
- extends AbstractToggleAction
Provides a toggle action that enables or disables components.
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary |
EnableAction(java.lang.String name,
java.awt.Component[] components,
boolean selected)
|
Method Summary |
static void |
setComponentEnabled(java.awt.Component c,
boolean enabled)
|
void |
toggled(boolean selected)
Invoked when the selection changes. |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.Action |
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
EnableAction
public EnableAction(java.lang.String name,
java.awt.Component[] components,
boolean selected)
toggled
public void toggled(boolean selected)
- Description copied from class:
AbstractToggleAction
- Invoked when the selection changes.
- Specified by:
toggled
in class AbstractToggleAction
setComponentEnabled
public static void setComponentEnabled(java.awt.Component c,
boolean enabled)
Copyright © 2001-2005 XNap Team. All Rights Reserved.