|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
jcreek.cke.command.UndoAction
Implements the undo action used to backout a recent change made to the graph.
Field Summary | |
protected javax.swing.undo.UndoManager |
undo
The undo manager we belong to. |
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()
Creates a new UndoAction object with the default action command string of "undo". |
|
UndoAction(javax.swing.undo.UndoManager undo)
Creates a new UndoAction object with the default action command string of "undo". |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Performs the undo action. |
void |
setManager(javax.swing.undo.UndoManager undo)
Sets the undo manager for this action to the one given. |
void |
update()
Checks if we can undo an event or not and sets this action enabled appropriately. |
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 |
Field Detail |
protected javax.swing.undo.UndoManager undo
Constructor Detail |
public UndoAction()
public UndoAction(javax.swing.undo.UndoManager undo)
undo
- undo manager that tells us if we can
be performed or notMethod Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
e
- action eventpublic void setManager(javax.swing.undo.UndoManager undo)
undo
- undo manager that tells us if we can
be performed or notpublic void update()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |