Package org.gvsig.andami.actioninfo.impl
Class DefaultActionInfoManager
java.lang.Object
org.gvsig.andami.actioninfo.impl.DefaultActionInfoManager
- All Implemented Interfaces:
ActionInfoManager
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
DefaultActionInfoManager
public DefaultActionInfoManager()
-
-
Method Details
-
createAction
public ActionInfo createAction(Class<? extends IExtension> extension, String name, String text, String command, String icon, String accelerator, long position, String tip) Description copied from interface:ActionInfoManagerCreate a new action and return.- Specified by:
createActionin interfaceActionInfoManager- 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
public ActionInfo createAction(IExtension extension, String name, String text, String command, String icon, String accelerator, long position, String tip) - Specified by:
createActionin interfaceActionInfoManager
-
registerAction
Description copied from interface:ActionInfoManagerUtility method that call registerAction with override to false.- Specified by:
registerActionin interfaceActionInfoManager- Parameters:
action-- Returns:
-
registerAction
Description copied from interface:ActionInfoManagerRegister 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.- Specified by:
registerActionin interfaceActionInfoManager- Parameters:
action-override-- Returns:
-
getAction
Description copied from interface:ActionInfoManagerRetrieve an action by name- Specified by:
getActionin interfaceActionInfoManager- Parameters:
name-- Returns:
- the action associated to this name
-
getActions
Description copied from interface:ActionInfoManagerReturn an iterator over all registered actions.- Specified by:
getActionsin interfaceActionInfoManager- Returns:
- iterator over al acctions
-
createActionStatusCache
- Specified by:
createActionStatusCachein interfaceActionInfoManager
-
redirect
Description copied from interface:ActionInfoManagerRedirect the action source to the target.- Specified by:
redirectin interfaceActionInfoManager- Parameters:
sourceName- of actiontargetName- of action
-
execute
- Specified by:
executein interfaceActionInfoManager
-
getTranslated
- Specified by:
getTranslatedin interfaceActionInfoManager
-
setAllDisabled
public void setAllDisabled(boolean enabled) - Specified by:
setAllDisabledin interfaceActionInfoManager
-
isAllDisabled
public boolean isAllDisabled()- Specified by:
isAllDisabledin interfaceActionInfoManager
-