|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.enspire.gemini.commands.CommandExecutorImpl
public class CommandExecutorImpl
The basic implementation of CommandExecutor
. Keeps executed
commands in a List
.
Constructor Summary | |
---|---|
CommandExecutorImpl()
|
Method Summary | |
---|---|
void |
execute(Command command)
Executes the given command. |
void |
undo()
Undoes all commands that have been executed up to now (does not include already undoed commands). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandExecutorImpl()
Method Detail |
---|
public void execute(Command command)
CommandExecutor
execute
in interface CommandExecutor
command
- the command that is to be executed.CommandExecutor.execute(com.enspire.gemini.commands.Command)
public void undo()
CommandExecutor
undo
in interface CommandExecutor
CommandExecutor.undo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |