org.xnap.gui.action
Class EnableAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.xnap.action.AbstractToggleAction
          extended by 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

Field Summary
 
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 org.xnap.action.AbstractToggleAction
actionPerformed, isSelected, setSelected
 
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
 

Constructor Detail

EnableAction

public EnableAction(java.lang.String name,
                    java.awt.Component[] components,
                    boolean selected)
Method Detail

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.