org.jppf.ui.actions
Interface ActionHandler

All Known Implementing Classes:
AbstractActionHandler, JobDataPanelActionManager, JTreeTableActionHandler

public interface ActionHandler

Manages the state of actions associated to toolbar buttons and right-click menu items.

Author:
Laurent Cohen

Method Summary
 UpdatableAction getAction(String name)
          Get the action with the specified name.
 List<Object> getSelectedElements()
          Get the selected elements in the component handled by this action manager.
 void putAction(String name, UpdatableAction action)
          Add an action with the specified name to this action manager.
 void updateActions()
          Update the state of all actions registered with this ActionHandler.
 

Method Detail

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.



Copyright © 2005-2010 JPPF Team.