gov.nih.nlm.mms
Class UndoAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bygov.nih.nlm.mms.UndoAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class UndoAction
extends AbstractAction

Unperforms an action. Used for the Edit->Undo Menu of MetamorphoSysGUI.

Author:
Brian Carlsen, Deborah Shapiro
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
UndoAction(MetamorphoSysGUI gui)
          Instantiates an UndoAction.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Pops an item off of the undo stack, makes the necessary changes, and pushes an item onto the redo stack.
 
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

UndoAction

public UndoAction(MetamorphoSysGUI gui)
Instantiates an UndoAction.

Parameters:
gui - the MetamorphoSysGUI
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Pops an item off of the undo stack, makes the necessary changes, and pushes an item onto the redo stack.

Parameters:
e - an ActionEvent


Copyright ©2005