API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. Action View Source
Author(s)
Georges Saab
Since
Version
1.36 04/18/06
Serial
Hierarchy
 EventListener
      ActionListener
          Action
Subinterfaces
Description
public interface Action
  The Action interface provides a useful extension to the ActionListener interface in cases where the same functionality may be accessed by several controls.
See also:    AbstractAction
Methods
Hide/Show inherited methods
public void addPropertyChangeListener (PropertyChangeListener listener)
  Adds a PropertyChange listener.
public Object getValue (String key)
  Gets one of this object's properties using the associated key.
public boolean isEnabled ()
  Returns the enabled state of the Action.
public void putValue (String key, Object value)
  Sets one of this object's properties using the associated key.
public void removePropertyChangeListener (PropertyChangeListener listener)
  Removes a PropertyChange listener.
public void setEnabled (boolean b)
  Sets the enabled state of the Action.
Fields
Hide/Show inherited fields
publicfinalstatic String ACCELERATOR_KEY = "AcceleratorKey"
  The key used for storing a KeyStroke to be used as the accelerator for the action.
publicfinalstatic String ACTION_COMMAND_KEY = "ActionCommandKey"
The key used to determine the command String for the ActionEvent that will be created when an Action is going to be notified as the result of residing in a Keymap associated with a JComponent.
publicfinalstatic String DEFAULT = "Default"
Not currently used.
publicfinalstatic String DISPLAYED_MNEMONIC_INDEX_KEY = "SwingDisplayedMnemonicIndexKey"
  The key used for storing an Integer that corresponds to the index in the text (identified by the NAME property) that the decoration for a mnemonic should be rendered at.
publicfinalstatic String LARGE_ICON_KEY = "SwingLargeIconKey"
  The key used for storing an Icon.
publicfinalstatic String LONG_DESCRIPTION = "LongDescription"
The key used for storing a longer String description for the action, could be used for context-sensitive help.
publicfinalstatic String MNEMONIC_KEY = "MnemonicKey"
  The key used for storing an Integer that corresponds to one of the KeyEvent key codes.
publicfinalstatic String NAME = "Name"
The key used for storing the String name for the action, used for a menu or button.
publicfinalstatic String SELECTED_KEY = "SwingSelectedKey"
  The key used for storing a Boolean that corresponds to the selected state.
publicfinalstatic String SHORT_DESCRIPTION = "ShortDescription"
The key used for storing a short String description for the action, used for tooltip text.
publicfinalstatic String SMALL_ICON = "SmallIcon"
  The key used for storing a small Icon, such as ImageIcon.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar