JET

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

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by edu.utep.cs.et.gui.editor.DefaultEditor.RedoAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
DefaultEditor

private class DefaultEditor.RedoAction
extends AbstractAction

A class representing redo 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.RedoAction()
          Creates a new instance.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Performs an redo action on the undo manager undoManager and also update the status of this and the undo action actRedo.
 void updateRedoState()
          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.RedoAction

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

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Performs an redo action on the undo manager undoManager and also update the status of this and the undo action actRedo.

 also
  assignable undoManager;
 


updateRedoState

public void updateRedoState()
Updates the status of this action. If the undo manager undoManager can perform a redo 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.