public class DefaultActionInfoManager extends Object implements ActionInfoManager
Constructor and Description |
---|
DefaultActionInfoManager() |
Modifier and Type | Method and Description |
---|---|
ActionInfo |
createAction(Class<? extends IExtension> extension,
String name,
String text,
String command,
String icon,
String accelerator,
long position,
String tip)
Create a new action and return.
|
ActionInfo |
createAction(IExtension extension,
String name,
String text,
String command,
String icon,
String accelerator,
long position,
String tip) |
ActionInfoStatusCache |
createActionStatusCache() |
void |
execute(String actionName,
Object[] parameters) |
ActionInfo |
getAction(String name)
Retrieve an action by name
|
Iterator<ActionInfo> |
getActions()
Return an iterator over all registered actions.
|
ActionInfo |
getTranslated(ActionInfo actionInfo) |
void |
redirect(String sourceName,
String targetName)
Redirect the action source to the target.
|
ActionInfo |
registerAction(ActionInfo action)
Register the action in the actions of the system, and return the action
that is registered.
|
public ActionInfo createAction(Class<? extends IExtension> extension, String name, String text, String command, String icon, String accelerator, long position, String tip)
ActionInfoManager
createAction
in interface ActionInfoManager
public ActionInfo createAction(IExtension extension, String name, String text, String command, String icon, String accelerator, long position, String tip)
createAction
in interface ActionInfoManager
public ActionInfo registerAction(ActionInfo action)
ActionInfoManager
registerAction
in interface ActionInfoManager
public ActionInfo getAction(String name)
ActionInfoManager
getAction
in interface ActionInfoManager
public Iterator<ActionInfo> getActions()
ActionInfoManager
getActions
in interface ActionInfoManager
public ActionInfoStatusCache createActionStatusCache()
createActionStatusCache
in interface ActionInfoManager
public void redirect(String sourceName, String targetName)
ActionInfoManager
redirect
in interface ActionInfoManager
sourceName
- of actiontargetName
- of actionpublic void execute(String actionName, Object[] parameters)
execute
in interface ActionInfoManager
public ActionInfo getTranslated(ActionInfo actionInfo)
getTranslated
in interface ActionInfoManager