net.sf.genuine.actions
Class ShowComponentAction
java.lang.Object
javax.swing.AbstractAction
net.sf.genuine.swing.GenuineAction
net.sf.genuine.actions.ShowComponentAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class ShowComponentAction
- extends GenuineAction
Objects of this action class are initialized with a module id and a
component id and request the component manager to hide the refered component
whenever they are activated.
This action is commonly used in menu bars to let the user open specific
dialogs. Therefore, a typical application contains multiple instances of this
class, each of which has to be initialized with a different 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 |
ShowComponentAction(java.lang.String resourceName,
ComponentManager componentManager,
java.lang.String moduleId,
java.lang.String componentId)
Initialization |
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 |
ShowComponentAction
public ShowComponentAction(java.lang.String resourceName,
ComponentManager componentManager,
java.lang.String moduleId,
java.lang.String componentId)
- Initialization
- Parameters:
resourceName
- The id of the resource that initializes this actioncomponentManager
- A reference to the component managermoduleId
- The id of the module to which the component belongscomponentId
- The id of the component that should be shown
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)