public abstract class AbstractUndoableCommand extends java.lang.Object implements UndoableCommand
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name
The command name.
|
| Constructor and Description |
|---|
AbstractUndoableCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes this command.
|
java.lang.String |
getName()
Gets the command name.
|
void |
redo()
Performs redo for this command.
|
void |
setName(java.lang.String name)
Sets the command name.
|
boolean |
shouldExecute()
Tests if the command can be executed.
|
void |
undo()
Performs undo for this command.
|
public void execute()
UndoableCommandexecute in interface UndoableCommandpublic void undo()
UndoableCommandundo in interface UndoableCommandpublic void redo()
UndoableCommandredo in interface UndoableCommandpublic java.lang.String getName()
UndoableCommandgetName in interface UndoableCommandpublic void setName(java.lang.String name)
name - Name to setpublic boolean shouldExecute()
UndoableCommandshouldExecute in interface UndoableCommandCopyright ? 2009 Apache Software Foundation. All Rights Reserved.