JET

edu.utep.cs.et.gui.editor
Class DefaultEditor.UndoAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by 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.


Field Summary
 
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
DefaultEditor.UndoAction()
          Creates a new instance.
 
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.
 
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
 

Constructor Detail

DefaultEditor.UndoAction

public DefaultEditor.UndoAction()
Creates a new instance. The action is initially disabled.

Method Detail

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

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.