org.jhotdraw.app.action
Class RedoAction
java.lang.Object
javax.swing.AbstractAction
org.jhotdraw.app.action.AbstractViewAction
org.jhotdraw.app.action.RedoAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class RedoAction
- extends AbstractViewAction
Redoes the last user action.
In order to work, this action requires that the View returns a project
specific undo action when invoking getAction("redo") on the View.
- Version:
- 2.0 2006-06-15 Reworked.
1.0 October 9, 2005 Created.
- Author:
- Werner Randelshofer
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
ID
|
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener |
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
- See Also:
- Constant Field Values
RedoAction
public RedoAction(Application app)
- Creates a new instance.
updateEnabledState
protected void updateEnabledState()
updateView
protected void updateView(View oldValue,
View newValue)
- Description copied from class:
AbstractViewAction
- Updates the listeners of this action depending on the current view
of the application.
- Overrides:
updateView
in class AbstractViewAction
installViewListeners
protected void installViewListeners(View p)
- Installs listeners on the view object.
- Overrides:
installViewListeners
in class AbstractViewAction
uninstallViewListeners
protected void uninstallViewListeners(View p)
- Installs listeners on the view object.
- Overrides:
uninstallViewListeners
in class AbstractViewAction
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)