JHotDraw 7.1

org.jhotdraw.app.action
Class RedoAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.jhotdraw.app.action.AbstractViewAction
          extended by 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 org.jhotdraw.app.action.AbstractViewAction
ENABLED_PROPERTY, VIEW_PROPERTY
 
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
 
Constructor Summary
RedoAction(Application app)
          Creates a new instance.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  void installViewListeners(View p)
          Installs listeners on the view object.
protected  void uninstallViewListeners(View p)
          Installs listeners on the view object.
protected  void updateEnabledState()
           
protected  void updateView(View oldValue, View newValue)
          Updates the listeners of this action depending on the current view of the application.
 
Methods inherited from class org.jhotdraw.app.action.AbstractViewAction
getActiveView, getApplication, getPropertyName, isEnabled, setEnabled, setPropertyName, updateEnabled, updateView
 
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
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

RedoAction

public RedoAction(Application app)
Creates a new instance.

Method Detail

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)

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.