Interface ActionInfoManager

All Known Implementing Classes:
DefaultActionInfoManager

public interface ActionInfoManager
  • 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 IExtension
      name - , name of the action
      text - , text to use to represent the action.
      command - , command used to execute the action
      icon - , icon used to represent the action
      accelerator - , the key which invokes the action
      position - , position of the action when it is represented in the user interface
      tip - , 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

      ActionInfo registerAction(ActionInfo action, boolean override)
      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

      ActionInfo registerAction(ActionInfo action)
      Utility method that call registerAction with override to false.
      Parameters:
      action -
      Returns:
    • getAction

      ActionInfo getAction(String name)
      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

      void redirect(String sourceName, String targetName)
      Redirect the action source to the target.
      Parameters:
      sourceName - of action
      targetName - of action
    • execute

      void execute(String actionName, Object[] parameters)
    • getTranslated

      ActionInfo getTranslated(ActionInfo actionInfo)
    • isAllDisabled

      boolean isAllDisabled()
    • setAllDisabled

      void setAllDisabled(boolean enabled)