Interface ActionHandler

All Known Implementing Classes:
AbstractActionHandler, GraphActionHandler, JTreeTableActionHandler

public interface ActionHandler
Manages the state of actions associated to toolbar buttons and right-click menu items.
Author:
Laurent Cohen
  • Method Details

    • putAction

      void putAction(String name, UpdatableAction action)
      Add an action with the specified name to this action manager.
      Parameters:
      name - the name of the action to add.
      action - the action to add.
    • getAction

      UpdatableAction getAction(String name)
      Get the action with the specified name.
      Parameters:
      name - the name of the action to find.
      Returns:
      an Action or null if the specified name could not be found.
    • getSelectedElements

      List<Object> getSelectedElements()
      Get the selected elements in the component handled by this action manager.
      Returns:
      a list of objects.
    • updateActions

      void updateActions()
      Update the state of all actions registered with this ActionHandler.