org.openstreetmap.josm.gui.dialogs
Class CommandStackDialog.UndoRedoAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.openstreetmap.josm.gui.dialogs.CommandStackDialog.UndoRedoAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, CommandStackDialog.IEnabledStateUpdating
Enclosing class:
CommandStackDialog

protected class CommandStackDialog.UndoRedoAction
extends javax.swing.AbstractAction
implements CommandStackDialog.IEnabledStateUpdating

Action to undo or redo all commands up to (and including) the seleced item.

See Also:
Serialized Form

Field Summary
private  javax.swing.JTree tree
           
private  CommandStackDialog.UndoRedoType type
           
 
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
CommandStackDialog.UndoRedoAction(CommandStackDialog.UndoRedoType type)
          constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void updateEnabledState()
           
 
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

type

private CommandStackDialog.UndoRedoType type

tree

private javax.swing.JTree tree
Constructor Detail

CommandStackDialog.UndoRedoAction

public CommandStackDialog.UndoRedoAction(CommandStackDialog.UndoRedoType type)
constructor

Parameters:
type - decide whether it is an undo action or a redo action
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

updateEnabledState

public void updateEnabledState()
Specified by:
updateEnabledState in interface CommandStackDialog.IEnabledStateUpdating


JOSM