public abstract class Command
extends java.lang.Object
A command can be executed and undone. Each of these operations also provide an string that should be displayed to the user upon their completion.
In general, commands should always be executed by a CommandRunner
.
Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
abstract void |
execute() |
java.lang.Integer |
getExecuteStringId() |
java.lang.Integer |
getUndoStringId() |
abstract void |
undo() |