|
|||||||||||
| 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.AbstractOpenCommand
Designed as the base class for all Command classes that deal
with the opening of documents. This class specifies a validation method
that subclasses may override.
| Constructor Summary | |
AbstractOpenCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Constructor specifying the ApplicationFrame, a name for this
Command and the name of the HelpSet to use. |
|
| Method Summary | |
protected abstract boolean |
doValidateDocument(GraphDocument document)
Utility method which subclasses can overwrite in order to control the document creation. |
boolean |
isEnabled()
Returns true if this command is enabled. |
| Methods inherited from class com.tensegrity.skeleton.commands.DocumentCommand |
getDocument, 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 AbstractOpenCommand(ApplicationFrame applicationFrame,
java.lang.String command)
ApplicationFrame, a name for this
Command and the name of the HelpSet to use.
applicationFrame - the ApplicationFrame.command - a unique name for this Command.| Method Detail |
protected abstract boolean doValidateDocument(GraphDocument document)
GraphDocument is created and before it is added
to the MDI component.
document -
GraphDocument is considered as
valid, false otherwise.public boolean isEnabled()
Commandtrue if this command is enabled.
isEnabled in interface CommandisEnabled in class BaseCommand
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||