cytoscape.editor.actions
Class RedoAction
java.lang.Object
javax.swing.AbstractAction
cytoscape.editor.actions.RedoAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class RedoAction
- extends javax.swing.AbstractAction
redo an operation that has been undone
- Author:
- Allan Kuchinsky, Agilent Technologies
- See Also:
- 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 |
RedoAction(javax.swing.undo.UndoManager undo)
defines the method that is invoked when the user performs a "redo" of an undone operation. |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
method that is executed when the user performed an "redo delete" operation. |
void |
setUndoAction(UndoAction undoAction)
defines an undo action that corresponds with this RedoAction and is (or should be) the inverse of the
functionality of the redo operation. |
void |
update()
enables and disables undo and redo operations, according to the last operation performed. |
void |
update(boolean redoFlag)
|
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 |
RedoAction
public RedoAction(javax.swing.undo.UndoManager undo)
- defines the method that is invoked when the user performs a "redo" of an undone operation.
- Parameters:
undo
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- method that is executed when the user performed an "redo delete" operation.
- Parameters:
e
-
update
public void update()
- enables and disables undo and redo operations, according to the last operation performed.
update
public void update(boolean redoFlag)
setUndoAction
public void setUndoAction(UndoAction undoAction)
- defines an undo action that corresponds with this RedoAction and is (or should be) the inverse of the
functionality of the redo operation.
- Parameters:
undoAction
- The UndoAction to set.