edu.utep.cs.et.gui.editor
Class DefaultEditor.UndoAction
java.lang.Object
javax.swing.AbstractAction
edu.utep.cs.et.gui.editor.DefaultEditor.UndoAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
- DefaultEditor
private class DefaultEditor.UndoAction
- extends AbstractAction
A class representing undo actions.
| 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 |
|
Method Summary |
void |
actionPerformed(ActionEvent e)
Performs an undo action on the undo manager
undoManager and also update the status of this
and the redo action actRedo. |
void |
updateUndoState()
Updates the status of this action. |
DefaultEditor.UndoAction
public DefaultEditor.UndoAction()
- Creates a new instance. The action is initially disabled.
actionPerformed
public void actionPerformed(ActionEvent e)
- Performs an undo action on the undo manager
undoManager and also update the status of this
and the redo action actRedo.
also
assignable undoManager;
assignable actRedo;
updateUndoState
public void updateUndoState()
- Updates the status of this action. If the undo manager
undoManager can perform an undo action, then
enable this action; otherwise, disable it.
JET is Copyright (C) 2005-2007 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.