cytoscape.editor.actions
Class UndoAction
java.lang.Object
javax.swing.AbstractAction
cytoscape.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
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 |
UndoAction
public UndoAction(javax.swing.undo.UndoManager undo)
- defines the method that is invoked when the user performs an "undo delete" operation.
- Parameters:
undo
-
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.