net.sf.genuine.swing
Class GenuineAction
java.lang.Object
javax.swing.AbstractAction
net.sf.genuine.swing.GenuineAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- Direct Known Subclasses:
- CloseAction, CopyAction, CutAction, ExitAction, HideComponentAction, NewAction, OpenAction, PasteAction, SaveAction, ShowComponentAction
- public abstract class GenuineAction
- extends javax.swing.AbstractAction
Action class that is the super class for all action used by Genuine.
Each action object is connected to a ResourceItem
so that all action properties (text, icon, tool tip, etc) are retrieved from
that resource item.
- Author:
- Tim Wellhausen
- See Also:
- Serialized Form
Nested classes inherited from class javax.swing.AbstractAction |
|
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 |
GenuineAction(ResourceItem resourceItem)
Takes a resource item and initializes itself from the item's properties. |
GenuineAction(java.lang.String resourceName)
Takes the name of a resource item that contains information
about the action's text, image, and shortcut. |
Method Summary |
java.lang.String |
getId()
Returns the resource-based id of this action. |
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 java.awt.event.ActionListener |
actionPerformed |
GenuineAction
public GenuineAction(java.lang.String resourceName)
- Takes the name of a resource item that contains information
about the action's text, image, and shortcut.
GenuineAction
public GenuineAction(ResourceItem resourceItem)
- Takes a resource item and initializes itself from the item's properties.
getId
public java.lang.String getId()
- Returns the resource-based id of this action.