| java.lang.Object com.opensymphony.workflow.designer.ActionManager
ActionManager | final public class ActionManager (Code) | | Central repository for all Actions.
On startup, the application is responsible for registering all actions via the
ActionManager.register(java.lang.String,javax.swing.Action) method. Once this is done, any action can be retrieved via the
ActionManager.get(java.lang.String) method.
The action manager will look for an actions.properties file in the same package, and will read all properties
specified in it for a given action.
The benefit of specifying actions in the external file is that actions themselves need not be aware of their textual or
graphic representation or key bindings.
|
Method Summary | |
public static void | alias(String newKey, String oldKey) Alias a particular id to another one. | public static Action | deregister(String id) | public static Action | get(String id) | public static Icon | getIcon(String id) Retrieves and answers the small icon for the given id . | public static Action | register(String id, Action action) Register an action.
Parameters: id - The action id denotes the set of properties that will be read for the action Parameters: action - The action instance to bind to the specified id. |
alias | public static void alias(String newKey, String oldKey)(Code) | | Alias a particular id to another one.
This allows one action to be bound to multiple keys.
Parameters: newKey - The new alias to bind to. Parameters: oldKey - The old id to bind to. |
deregister | public static Action deregister(String id)(Code) | | Remove a registered action
Parameters: id - the action id The removed action, if it existed. |
get | public static Action get(String id)(Code) | | Get a previously registered action
Parameters: id - The action id The action bound to the specified id, or null if no action is bound. |
getIcon | public static Icon getIcon(String id)(Code) | | Retrieves and answers the small icon for the given id .
|
register | public static Action register(String id, Action action)(Code) | | Register an action.
Parameters: id - The action id denotes the set of properties that will be read for the action Parameters: action - The action instance to bind to the specified id. The action, once it has been initialised. If the id is not specified in theproperties file, then null is returned. throws: NullPointerException - if the specified action is null |
|
|