|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.Command
com.pietschy.command.ActionCommand
com.pietschy.command.undo.AbstractUndoCommand
com.pietschy.command.undo.UndoCommand
public class UndoCommand
Causes the last edit of the current UndoContext to be undone.
| Field Summary |
|---|
| Fields inherited from class com.pietschy.command.ActionCommand |
|---|
PARAMETER_ACTION_EVENT, PARAMETER_INVOKER, PARAMETER_INVOKER_WINDOW, PARAMETER_MODIFIERS |
| Fields inherited from class com.pietschy.command.Command |
|---|
internalLog, PROPERTY_ENABLED, PROPERTY_VISIBLE |
| Constructor Summary | |
|---|---|
UndoCommand()
Creates a new anonymous instance. |
|
UndoCommand(java.lang.String id)
Creates an instance with the specified id. |
|
| Method Summary | |
|---|---|
protected void |
handleExecute()
Invokes UndoContext.undo(). |
protected void |
updateState()
Invoked on changes to the CommandContainer heirarchy to update the
state of this command. |
| Methods inherited from class com.pietschy.command.undo.AbstractUndoCommand |
|---|
bindToContainer, containerStateChanged, getUndoContext, setUndoContext, unbindFromContainer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.pietschy.command.ActionCommandExecutor |
|---|
addPropertyChangeListener, addPropertyChangeListener, isEnabled, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface com.pietschy.command.Identifiable |
|---|
getId |
| Constructor Detail |
|---|
public UndoCommand()
public UndoCommand(java.lang.String id)
id - the command id.| Method Detail |
|---|
protected void updateState()
CommandContainer heirarchy to update the
state of this command. The command will enable if the UndoContext is
non null and UndoManager.canUndo() returns true.
updateState in class AbstractUndoCommandprotected void handleExecute()
UndoContext.undo().
handleExecute in class ActionCommand
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||