Class CommandStackDialog.UndoRedoAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.dialogs.CommandStackDialog.UndoRedoAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,IEnabledStateUpdating
- Enclosing class:
- CommandStackDialog
protected class CommandStackDialog.UndoRedoAction extends AbstractAction implements IEnabledStateUpdating
Action to undo or redo all commands up to (and including) the seleced item.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private 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
Constructors Constructor Description UndoRedoAction(CommandStackDialog.UndoRedoType type)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
void
updateEnabledState()
Called after the layer model has changed.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
type
private final CommandStackDialog.UndoRedoType type
-
-
Constructor Detail
-
UndoRedoAction
public UndoRedoAction(CommandStackDialog.UndoRedoType type)
constructor- Parameters:
type
- decide whether it is an undo action or a redo action
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interfaceActionListener
-
updateEnabledState
public void updateEnabledState()
Description copied from interface:IEnabledStateUpdating
Called after the layer model has changed.- Specified by:
updateEnabledState
in interfaceIEnabledStateUpdating
-
-