Package org.jppf.ui.actions
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 Summary
Modifier and TypeMethodDescriptionGet the action with the specified name.Get the selected elements in the component handled by this action manager.voidputAction(String name, UpdatableAction action) Add an action with the specified name to this action manager.voidUpdate the state of all actions registered with thisActionHandler.
-
Method Details
-
putAction
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
Get the action with the specified name.- Parameters:
name- the name of the action to find.- Returns:
- an
Actionor null if the specified name could not be found.
-
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 thisActionHandler.
-