org.jhotdraw.app.action.edit
Class RemoveAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
org.jhotdraw.app.action.edit.DeleteAction
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. |
| 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 |
ID
public static final java.lang.String ID
- The ID for this action.
- See Also:
- Constant Field Values
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.