Package mars.venus.actions.edit
Class EditUndoAction
java.lang.Object
javax.swing.AbstractAction
mars.venus.actions.VenusAction
mars.venus.actions.edit.EditUndoAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Action for the Edit -> Undo menu item.
- See Also:
-
Field Summary
Fields inherited from class mars.venus.actions.VenusAction
gui, shortcutFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Adapted from TextComponentDemo.java in the Java Tutorial "Text Component Features".voidupdate()Automatically update whether this action is enabled or disabled based on the status of theUndoManager.Methods inherited from class mars.venus.actions.VenusAction
getGUI, getName, getShortcut, registerShortcutMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
EditUndoAction
-
-
Method Details
-
actionPerformed
Adapted from TextComponentDemo.java in the Java Tutorial "Text Component Features".- Specified by:
actionPerformedin interfaceActionListener- Specified by:
actionPerformedin classVenusAction
-
update
public void update()Automatically update whether this action is enabled or disabled based on the status of theUndoManager.- Overrides:
updatein classVenusAction
-