|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.util.AbstractCommand
AbstractCommand is an abstract Command that is executable and only requires the execute() method to be overridden.
| Constructor Summary | |
AbstractCommand()
Default Constructor. |
|
| Method Summary | |
abstract Object |
clone()
Commands are clonable. |
abstract void |
execute(Object arg)
This does nothing. |
String |
getText()
Return the text. |
boolean |
isExecutable()
Return true, this Command is executable. |
boolean |
isUndoable()
Return false, this Command is not Undoable. |
void |
setText(String txt)
Set the text of the AbstractCommand. |
void |
undo()
This does nothing. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractCommand()
| Method Detail |
public abstract Object clone()
throws CloneNotSupportedException
CommandCommand object after invoking it, if it
wishes to store the command on an undo history or
otherwise maintain a reference to the Command object.
The clone should preserve the undo information so
that the cloned command stored on an undo history
may be undone.clone in interface Commandclone in class Objectcom.sas.util.CommandCloneNotSupportedException - if
the command cannot be cloned.public boolean isExecutable()
isExecutable in interface Commandpublic boolean isUndoable()
isUndoable in interface Commandpublic void undo()
undo in interface Commandcom.sas.util.CommandSimpleCommand.execute(Object)public abstract void execute(Object arg)
execute in interface SimpleCommandcom.sas.util.SimpleCommandarg - an argument which the caller wishes
to pass to the command. The arg may be null if no information
is needed.public String getText()
getText in interface StringDataInterfacepublic void setText(String txt)
setText in interface StringDataInterfacetxt - the text
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||