|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.swing.commands.AbstractCommand
dsto.dfc.swing.commands.AbstractMutableCommand
dsto.dfc.swing.undo.AbstractUndoableCommand
dsto.dfc.swing.undo.CmdUndo
public class CmdUndo
Command to invoke a single undo () on the MonitoredUndoManager.
| Field Summary | |
|---|---|
static Icon |
ICON
|
| Fields inherited from class dsto.dfc.swing.undo.AbstractUndoableCommand |
|---|
cursorUpdatePolicy, exceptionHandler, name, undoManager |
| Fields inherited from class dsto.dfc.swing.commands.AbstractMutableCommand |
|---|
listeners |
| Fields inherited from class dsto.dfc.swing.commands.AbstractCommand |
|---|
displayName, icon |
| Fields inherited from interface dsto.dfc.swing.icons.Iconic |
|---|
NULL_ICON |
| Constructor Summary | |
|---|---|
CmdUndo(MonitoredUndoManager undoManager)
|
|
| Method Summary | |
|---|---|
void |
execute(UndoableEdit edit)
Implement this method with the command's behaviour. |
KeyStroke |
getAccelerator()
The keyboard accelerator is Ctrl-Z. |
String |
getDescription()
A short description of the command, suitable for a tooltip or use in a status panel. |
Icon |
getIcon()
The small (16x16) icon for the object. |
char |
getMnemonic()
Get a character shortcut for the command (eg for use on a menu). |
UndoableEdit |
selectedEdit()
Returns the undo cursor. |
void |
skip()
Implement this command to determine how to skip an edit which causes an exception. |
void |
updateEnabled()
This checks that the selected edit is in the MonitoredUndoManager's
undo list. |
| Methods inherited from class dsto.dfc.swing.undo.AbstractUndoableCommand |
|---|
execute, getGroupInView, getName, handleNonExecutableEdit, isInteractive, listenForEnablingEvents, listenForEnablingEvents, pause, retry, stopListeningForEnablingEvents |
| Methods inherited from class dsto.dfc.swing.commands.AbstractMutableCommand |
|---|
addPropertyChangeListener, clone, isEnabled, removePropertyChangeListener, setEnabled, setIcon |
| Methods inherited from class dsto.dfc.swing.commands.AbstractCommand |
|---|
actionPerformed, canReplace, getDefaultDisplayName, getDisplayName, getLargeIcon, getLogString, setDisplayName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Icon ICON
| Constructor Detail |
|---|
public CmdUndo(MonitoredUndoManager undoManager)
| Method Detail |
|---|
public void execute(UndoableEdit edit)
AbstractUndoableCommand
execute in class AbstractUndoableCommandpublic char getMnemonic()
Command
getMnemonic in interface CommandgetMnemonic in class AbstractCommandpublic Icon getIcon()
Iconic
getIcon in interface IconicgetIcon in class AbstractCommandpublic UndoableEdit selectedEdit()
selectedEdit in class AbstractUndoableCommandpublic String getDescription()
Command
getDescription in interface CommandgetDescription in class AbstractCommandpublic void updateEnabled()
MonitoredUndoManager's
undo list.
updateEnabled in class AbstractUndoableCommandpublic void skip()
AbstractUndoableCommand
skip in interface EditExceptionPolicyskip in class AbstractUndoableCommandpublic KeyStroke getAccelerator()
getAccelerator in interface CommandgetAccelerator in class AbstractCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||