|
|||||||||||
| 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.swt.commands.SwtCommonBaseCommand
com.tensegrity.skeleton.swt.commands.SwtDocumentCommand
This class, to be used within applications in a SWT context, is the base
class for all Commands related to the
currently selected Document.
Note that instances of SwtDocumentCommand are disabled when no
Document is selected.
The getDocument() method is provided in order to retrieve the
currently selected Document.
| Constructor Summary | |
SwtDocumentCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Creates an instance of SwtDocumentCommand. |
|
| Method Summary | |
protected Document |
getDocument()
This method returns the currently active Document or
null. |
boolean |
isEnabled()
Returns false if getDocument() returns
null, true otherwise. |
| Methods inherited from class com.tensegrity.skeleton.swt.commands.SwtCommonBaseCommand |
getGraphApplication, newGraphDocumentFromFactory |
| Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand |
getApplicationFrame, getTitle, perform |
| Methods inherited from class com.tensegrity.generic.command.BaseCommand |
getDescription, getId, getPerformDescription, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwtDocumentCommand(ApplicationFrame applicationFrame,
java.lang.String command)
SwtDocumentCommand.
applicationFrame - Application context of this command.command - the ID of this command.| Method Detail |
protected Document getDocument()
Document or
null.
Document or null.public boolean isEnabled()
false if getDocument() returns
null, true otherwise.
isEnabled in interface CommandisEnabled in class BaseCommandfalse if getDocument() returns
null, true otherwise.Command.isEnabled()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||