org.opa.core
Interface OPAActionManager

All Superinterfaces:
OPAManager
All Known Implementing Classes:
OPADefaultActionManager

public interface OPAActionManager
extends OPAManager

This interface defines the OPAManager responsible for coordinating Actions in response to events. Implementations should accept OPAActions from modules and store them. Implementations should also listen for changes in the GUI (such as changes in focus by attaching a PropertyChangeListener to the KeyboardFocusManager) and enable/disable registered OPAActions depending on the focussed components ability to respond. Typically, components that can respond to an OPAAction will implement OPACookieJar. This interface defines an object that can hold OPACookie objects. If a focussed GUI component implements OPACookieJar, and it returns OPACookies, these OPACookies will be used by OPAActionManager implementations to determine which registered OPAActions should be enabled/disabled. Every OPAAction supports zero (0) or one (1) OPACookie(s).


Method Summary
 void doAction(OPAAction action)
          Fires the execution of a cookie.
 void registerAction(OPAAction action)
          This accepts an OPAAction and registers it.
 void registerBundle(OPAActionBundle bundle)
          This accepts an OPAActionBundle and registers all the OPAActions it contains.
 
Methods inherited from interface org.opa.core.OPAManager
load, start, stop
 

Method Detail

registerAction

public void registerAction(OPAAction action)
This accepts an OPAAction and registers it.


registerBundle

public void registerBundle(OPAActionBundle bundle)
This accepts an OPAActionBundle and registers all the OPAActions it contains.


doAction

public void doAction(OPAAction action)
Fires the execution of a cookie. The implementation is responsible for finding the cookie of the selected component. Only "context-sensitive" OPAActions would ever need to use this method. Non-context-sensitive OPAActions would implement the response in the actionPerformed() method.