org.oddjob.monitor.view
Class ExplorerEditActions

java.lang.Object
  extended by org.oddjob.arooa.design.actions.EditActionsContributor
      extended by org.oddjob.monitor.view.ExplorerEditActions
All Implemented Interfaces:
ActionContributor, SelectedContextAware

public class ExplorerEditActions
extends EditActionsContributor
implements SelectedContextAware

A Set of edit actions that contribute to the menu and become enabled/disabled dependent on job selection.

The actions forward to the actual edit actions in the underlying components action map (in explorers case, the trees action map). Disabling/Enabling is not passed to the underlying actions so they will always respond to key strokes.

Author:
rob

Field Summary
 
Fields inherited from class org.oddjob.arooa.design.actions.EditActionsContributor
EDIT_GROUP, EDIT_MENU_ID
 
Constructor Summary
ExplorerEditActions()
           
 
Method Summary
 void prepare()
          Called after the job has been selected, but before any action is to be performed.
 void setSelectedContext(ExplorerContext context)
          Called when the job selection changes.
 
Methods inherited from class org.oddjob.arooa.design.actions.EditActionsContributor
addKeyStrokes, contributeTo, setCopyEnabled, setCutEnabled, setDeleteEnabled, setPasteEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplorerEditActions

public ExplorerEditActions()
Method Detail

setSelectedContext

public void setSelectedContext(ExplorerContext context)
Description copied from interface: SelectedContextAware
Called when the job selection changes. This is generally used to capture the new context and also clear any previous state for the last context.

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