public interface ICommand
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
boolean |
isMergeable(ICommand newCommand)
Checks if this command is mergeable (in the undo list) with the passed
command
|
void |
merge(ICommand newCommand)
Merges this command with the passed command so that this command
represents both
|
boolean |
perform()
Performs this command
|
void |
undo()
Called to undo the changes of the command that have been done through
perform
|
java.lang.String getName()
boolean perform()
void undo()
boolean isMergeable(ICommand newCommand)
newCommand
- the command to check mergabilityvoid merge(ICommand newCommand)
newCommand
- the command to merge into this