|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.joseluismartin.cmd.DefaultCommand
public class DefaultCommand
Simple base command to extends that do nothing
| Constructor Summary | |
|---|---|
DefaultCommand()
|
|
| Method Summary | |
|---|---|
boolean |
execute(Object data)
Execute the command |
String |
getName()
|
void |
onFault(Object data)
Handle fault on command chain. |
void |
setName(String name)
|
void |
undo()
Undo the command, do nothig by default. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCommand()
| Method Detail |
|---|
public boolean execute(Object data)
execute in interface Commanddata - generic command data
public void onFault(Object data)
onFault in interface Commanddata - generic command datapublic String getName()
getName in interface Commandpublic void setName(String name)
name - the name to setpublic void undo()
undo in interface Command
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||