net.sf.genuine.actions
Class ShowComponentAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bynet.sf.genuine.swing.GenuineAction
          extended bynet.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 Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
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
ShowComponentAction(java.lang.String resourceName, ComponentManager componentManager, java.lang.String moduleId, java.lang.String componentId)
          Initialization
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class net.sf.genuine.swing.GenuineAction
getId
 
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
 

Constructor Detail

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 action
componentManager - A reference to the component manager
moduleId - The id of the module to which the component belongs
componentId - The id of the component that should be shown
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)