JHotDraw 7rev733

org.jhotdraw.app.action.edit
Class RemoveAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by javax.swing.text.TextAction
          extended by org.jhotdraw.app.action.edit.DeleteAction
              extended by org.jhotdraw.app.action.edit.RemoveAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class RemoveAction
extends DeleteAction

Same as DeleteAction but with the title "Remove".

Use this action in places where an object is not actually deleted, but just removed from the application.

Version:
1.0 2011-07-28 Created.
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
static java.lang.String ID
          The ID for this action.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
RemoveAction()
          Creates a new instance which acts on the currently focused component.
RemoveAction(javax.swing.JComponent target)
          Creates a new instance which acts on the specified component.
RemoveAction(javax.swing.JComponent target, java.lang.String id)
          Creates a new instance which acts on the specified component.
 
Method Summary
 
Methods inherited from class org.jhotdraw.app.action.edit.DeleteAction
actionPerformed, deleteNextChar
 
Methods inherited from class javax.swing.text.TextAction
augmentList, getFocusedComponent, getTextComponent
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
The ID for this action.

See Also:
Constant Field Values
Constructor Detail

RemoveAction

public RemoveAction()
Creates a new instance which acts on the currently focused component.


RemoveAction

public RemoveAction(@Nullable
                    javax.swing.JComponent target)
Creates a new instance which acts on the specified component.

Parameters:
target - The target of the action. Specify null for the currently focused component.

RemoveAction

public RemoveAction(@Nullable
                    javax.swing.JComponent target,
                    java.lang.String id)
Creates a new instance which acts on the specified component.

Parameters:
target - The target of the action. Specify null for the currently focused component.

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.