org.opa.action
Class OPAContextSensitiveAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.opa.core.OPAAction
          extended byorg.opa.action.OPAContextSensitiveAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Direct Known Subclasses:
OPARedoAction, OPAUndoAction

public abstract class OPAContextSensitiveAction
extends OPAAction

This abstract class represents an OPAAction that will be enabled/disabled based on changes in the GUI focus.

See Also:
Serialized Form

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
OPAContextSensitiveAction()
          Creates a new instance of OPAContextSensitiveAction
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This final method delegates responsibility of performing the action to OPAActionManager and the focussed GUI components.
 
Methods inherited from class org.opa.core.OPAAction
getCookieInterface, getMenuPath, getPosition, onMenubar, onPopup, onToolbar, setCookie, setHelp, setIcon, setName, setToolTip
 
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

OPAContextSensitiveAction

public OPAContextSensitiveAction()
Creates a new instance of OPAContextSensitiveAction

Method Detail

actionPerformed

public final void actionPerformed(java.awt.event.ActionEvent e)
This final method delegates responsibility of performing the action to OPAActionManager and the focussed GUI components.

Parameters:
e - An ActionEvent in response to a user action