Package org.gvsig.andami.actioninfo
Interface ActionInfoManager
- All Known Implementing Classes:
DefaultActionInfoManager
public interface ActionInfoManager
-
Method Summary
Modifier and TypeMethodDescriptioncreateAction(Class<? extends IExtension> extension, String name, String text, String command, String icon, String accelerator, long position, String tip) Create a new action and return.createAction(IExtension extension, String name, String text, String command, String icon, String accelerator, long position, String tip) voidRetrieve an action by nameReturn an iterator over all registered actions.getTranslated(ActionInfo actionInfo) booleanvoidRedirect the action source to the target.registerAction(ActionInfo action) Utility method that call registerAction with override to false.registerAction(ActionInfo action, boolean override) Register the action in the actions of the system.voidsetAllDisabled(boolean enabled)
-
Method Details
-
createAction
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.- Parameters:
extension- , class that execute the action, extends IExtensionname- , name of the actiontext- , text to use to represent the action.command- , command used to execute the actionicon- , icon used to represent the actionaccelerator- , the key which invokes the actionposition- , position of the action when it is represented in the user interfacetip- , tooltip to associate to the action- Returns:
-
createAction
ActionInfo createAction(IExtension extension, String name, String text, String command, String icon, String accelerator, long position, String tip) -
registerAction
Register the action in the actions of the system. If an action with the same name is in the system and override is false then actions are merged and the merged action is returned and remain in the system. If override is true and the action is already registered the new action replace the previous action.- Parameters:
action-override-- Returns:
-
registerAction
Utility method that call registerAction with override to false.- Parameters:
action-- Returns:
-
getAction
Retrieve an action by name- Parameters:
name-- Returns:
- the action associated to this name
-
getActions
Iterator<ActionInfo> getActions()Return an iterator over all registered actions.- Returns:
- iterator over al acctions
-
createActionStatusCache
ActionInfoStatusCache createActionStatusCache() -
redirect
Redirect the action source to the target.- Parameters:
sourceName- of actiontargetName- of action
-
execute
-
getTranslated
-
isAllDisabled
boolean isAllDisabled() -
setAllDisabled
void setAllDisabled(boolean enabled)
-