|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractAction com.anthonyeden.lib.gui.UndoAction
A UI action for undo.
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(javax.swing.undo.UndoManager undoManager)
Construct a new RedoAction which uses the given UndoManager for managing undos and redos. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an ActionEvent occurs. |
void |
executeUndo()
Execute the undo. |
void |
setRedoAction(RedoAction redoAction)
Set the redo action. |
void |
updateUndoState()
Update the undo state in the UndoManager. |
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 |
public UndoAction(javax.swing.undo.UndoManager undoManager)
undoManager
- The UndoManagerMethod Detail |
public void setRedoAction(RedoAction redoAction)
redoAction
- The redo actionpublic void executeUndo()
public void actionPerformed(java.awt.event.ActionEvent e)
e
- The ActionEventpublic void updateUndoState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |