org.oddjob.arooa.design.actions
Class EditActionsContributor

java.lang.Object
  extended by org.oddjob.arooa.design.actions.EditActionsContributor
All Implemented Interfaces:
ActionContributor
Direct Known Subclasses:
DesignerEditActions, ExplorerEditActions

public class EditActionsContributor
extends Object
implements ActionContributor

Provides the cut/copy/paste and delete actions.

Author:
rob

Field Summary
static String EDIT_GROUP
           
static String EDIT_MENU_ID
           
 
Constructor Summary
EditActionsContributor()
           
 
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.
protected  void setCopyEnabled(boolean enabled)
           
protected  void setCutEnabled(boolean enabled)
           
protected  void setDeleteEnabled(boolean enabled)
           
protected  void setPasteEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDIT_MENU_ID

public static final String EDIT_MENU_ID
See Also:
Constant Field Values

EDIT_GROUP

public static final String EDIT_GROUP
See Also:
Constant Field Values
Constructor Detail

EditActionsContributor

public EditActionsContributor()
Method Detail

contributeTo

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

Specified by:
contributeTo in interface ActionContributor

setCutEnabled

protected void setCutEnabled(boolean enabled)

setCopyEnabled

protected void setCopyEnabled(boolean enabled)

setPasteEnabled

protected void setPasteEnabled(boolean enabled)

setDeleteEnabled

protected void setDeleteEnabled(boolean enabled)

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