API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. AbstractAction View Source
Author(s)
Georges Saab
Since
Version
1.56 03/28/06
Serial
Hierarchy
 Object
      AbstractAction
Implements
 Action
 Cloneable
 Serializable
Subclasses
Description
publicabstract abstract class AbstractAction
  This class provides default implementations for the JFC Action interface.
See also:    Action
Constructors
public AbstractAction ()
Defines an Action object with a default description string and default icon.
public AbstractAction (String name)
Defines an Action object with the specified description string and a default icon.
public AbstractAction (String name, Icon icon)
Defines an Action object with the specified description string and a the specified icon.
Methods
Hide/Show inherited methods
publicsynchronized void addPropertyChangeListener (PropertyChangeListener listener) [Specified in Action]
  Adds a PropertyChangeListener to the listener list.
protected Object clone () throws CloneNotSupportedException
  Clones the abstract action.
protected void firePropertyChange (String propertyName, Object oldValue, Object newValue)
  Supports reporting bound property changes.
public Object getKeys ()
  Returns an array of Objects which are keys for which values have been set for this AbstractAction, or null if no keys have values set.
publicsynchronized PropertyChangeListener getPropertyChangeListeners ()
  Returns an array of all the PropertyChangeListeners added to this AbstractAction with addPropertyChangeListener().
public Object getValue (String key) [Specified in Action]
  Gets the Object associated with the specified key.
pack-privatestatic boolean hasSelectedKey (Action a)
public boolean isEnabled () [Specified in Action]
  Returns true if the action is enabled.
pack-privatestatic boolean isSelected (Action a)
public void putValue (String key, Object newValue) [Specified in Action]
  Sets the Value associated with the specified key.
publicsynchronized void removePropertyChangeListener (PropertyChangeListener listener) [Specified in Action]
  Removes a PropertyChangeListener from the listener list.
public void setEnabled (boolean newValue) [Specified in Action]
  Enables or disables the action.
pack-privatestatic void setEnabledFromAction (JComponent c, Action a)
  Sets the enabled state of a component from an Action.
pack-privatestatic void setToolTipTextFromAction (JComponent c, Action a)
  Sets the tooltip text of a component from an Action.
pack-privatestatic boolean shouldReconfigure (PropertyChangeEvent e)
Whether or not to reconfigure all action properties from the specified event.
Fields
Hide/Show inherited fields
publicfinalstatic String ACCELERATOR_KEY = "AcceleratorKey" [Inherited From Action]
  The key used for storing a KeyStroke to be used as the accelerator for the action.
publicfinalstatic String ACTION_COMMAND_KEY = "ActionCommandKey" [Inherited From Action]
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.
protected SwingPropertyChangeSupport changeSupport
If any PropertyChangeListeners have been registered, the changeSupport field describes them.
publicfinalstatic String DEFAULT = "Default" [Inherited From Action]
Not currently used.
publicfinalstatic String DISPLAYED_MNEMONIC_INDEX_KEY = "SwingDisplayedMnemonicIndexKey" [Inherited From Action]
  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.
protected boolean enabled
Specifies whether action is enabled; the default is true.
publicfinalstatic String LARGE_ICON_KEY = "SwingLargeIconKey" [Inherited From Action]
  The key used for storing an Icon.
publicfinalstatic String LONG_DESCRIPTION = "LongDescription" [Inherited From Action]
The key used for storing a longer String description for the action, could be used for context-sensitive help.
publicfinalstatic String MNEMONIC_KEY = "MnemonicKey" [Inherited From Action]
  The key used for storing an Integer that corresponds to one of the KeyEvent key codes.
publicfinalstatic String NAME = "Name" [Inherited From Action]
The key used for storing the String name for the action, used for a menu or button.
publicfinalstatic String SELECTED_KEY = "SwingSelectedKey" [Inherited From Action]
  The key used for storing a Boolean that corresponds to the selected state.
publicfinalstatic String SHORT_DESCRIPTION = "ShortDescription" [Inherited From Action]
The key used for storing a short String description for the action, used for tooltip text.
publicfinalstatic String SMALL_ICON = "SmallIcon" [Inherited From Action]
  The key used for storing a small Icon, such as ImageIcon.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar