cytoscape.editor.actions
Class UndoAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bycytoscape.editor.actions.UndoAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class UndoAction
extends javax.swing.AbstractAction

action called when user invokes "undo" operation

Version:
1.0
Author:
Allan Kuchinsky, Agilent Technologies
See Also:
RedoAction, UndoManager, Serialized Form

Field Summary
 
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(javax.swing.undo.UndoManager undo)
          defines the method that is invoked when the user performs an "undo delete" operation.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          method that is executed when the user performed an "undo delete" operation.
 void setRedoAction(RedoAction redoAction)
          defines a redo action that corresponds with this UndoAction and is (or should be) the inverse of the functionality of the undo operation.
 void update()
          enables and disables undo and redo operations, according to the last operation performed.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UndoAction

public UndoAction(javax.swing.undo.UndoManager undo)
defines the method that is invoked when the user performs an "undo delete" operation.

Parameters:
undo -
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
method that is executed when the user performed an "undo delete" operation.

Parameters:
e -

update

public void update()
enables and disables undo and redo operations, according to the last operation performed.


setRedoAction

public void setRedoAction(RedoAction redoAction)
defines a redo action that corresponds with this UndoAction and is (or should be) the inverse of the functionality of the undo operation.

Parameters:
redoAction - The redoAction to set.