|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.commands.DocumentCommand
com.tensegrity.skeleton.commands.CancelCommand
Used to leave a mode which was usually entered by a toggle command.
Toggle commands should register themselves as a CancelCommand
with an object of this class.
CancelCommand is
always registered by GUIItem.COMMAND_CANCEL.
| Constructor Summary | |
CancelCommand(ApplicationFrame applicationFrame)
Constructor |
|
| Method Summary | |
void |
addCancelable(Command cancelable)
Adds the command as cancelable. |
void |
perform(java.lang.Object args)
Calls the last registered cancelable command. |
void |
removeCancelable(Command cancelable)
Removes one instance of the previously added cancelable command. |
| Methods inherited from class com.tensegrity.skeleton.commands.DocumentCommand |
getDocument, getGraphApplication, newGraphDocumentFromFactory |
| Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand |
getApplicationFrame, getTitle |
| Methods inherited from class com.tensegrity.generic.command.BaseCommand |
getDescription, getId, getPerformDescription, isEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CancelCommand(ApplicationFrame applicationFrame)
applicationFrame - The applicationframe used to pass
to the super constructor| Method Detail |
public void perform(java.lang.Object args)
perform in interface Commandperform in class CommonBaseCommandargs - IgnoredCommand.perform(java.lang.Object)public void addCancelable(Command cancelable)
cancelable - The command to addpublic void removeCancelable(Command cancelable)
cancelable - The command to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||