org.oddjob.monitor.view
Class ExplorerJobActions

java.lang.Object
  extended by org.oddjob.monitor.view.ExplorerJobActions
All Implemented Interfaces:
ActionContributor, SelectedContextAware

public class ExplorerJobActions
extends Object
implements ActionContributor, SelectedContextAware

Group the Job Actions for Explorer.

Author:
Rob Gordon

Constructor Summary
ExplorerJobActions(ExplorerAction[] actions)
          Constructor.
 
Method Summary
 void addKeyStrokes(JComponent component)
          Add the accelerator keys to the given component if applicable.
 void contributeTo(ActionRegistry actionRegistry)
          Contribute actions using the given registry.
 void prepare()
          Called after the job has been selected, but before any action is to be performed.
 void setSelectedContext(ExplorerContext context)
          Called when the Model changes it's selected node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplorerJobActions

public ExplorerJobActions(ExplorerAction[] actions)
Constructor.

Parameters:
explorer - The owning explorer.
Method Detail

setSelectedContext

public void setSelectedContext(ExplorerContext context)
Called when the Model changes it's selected node.

Specified by:
setSelectedContext in interface SelectedContextAware
Parameters:
context - The context. Will never be null.

prepare

public void prepare()
Description copied from interface: SelectedContextAware
Called after the job has been selected, but before any action is to be performed. This is normally just before a menu is to be shown.

Specified by:
prepare in interface SelectedContextAware

contributeTo

public void contributeTo(ActionRegistry actionRegistry)
Description copied from interface: ActionContributor
Contribute actions using the given registry.

Specified by:
contributeTo in interface ActionContributor

addKeyStrokes

public void addKeyStrokes(JComponent component)
Description copied from interface: ActionContributor
Add the accelerator keys to the given component if applicable.

Specified by:
addKeyStrokes in interface ActionContributor