|
|||||||||||
| 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.CloseCommand
This Command closes the active document. If the document
has been since modified, users may be asked to save it before it is
closed.
This class uses the
DocumentCommand.getDocument()
to retrieve its document.
| Constructor Summary | |
CloseCommand(ApplicationFrame applicationFrame,
java.lang.String command)
The CloseCommand for a ApplicationFrame. |
|
| Method Summary | |
int |
closeDocument(Document document)
Closes the given document. |
protected void |
doSaveConfirmedAction(Document document)
This method is invoked when the user confirmed the save dialog upon closing a dirty document. |
boolean |
isCloseConfirmed()
Returns true, if the close operation has been confirmed by the user |
boolean |
isEnabled()
Returns true if this command is enabled. |
void |
perform(java.lang.Object args)
Updates the StatusBar with this commands title string. |
void |
setEnabled(boolean b)
Specifies whether this command is enabled or not. |
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CloseCommand(ApplicationFrame applicationFrame,
java.lang.String command)
CloseCommand for a ApplicationFrame.
applicationFrame - Application context for this command.command - the ID of this command.| Method Detail |
public void perform(java.lang.Object args)
CommonBaseCommand
perform in interface Commandperform in class CommonBaseCommandCommand.perform(java.lang.Object)public boolean isEnabled()
Commandtrue if this command is enabled.
isEnabled in interface CommandisEnabled in class BaseCommandpublic void setEnabled(boolean b)
Command
setEnabled in interface CommandsetEnabled in class BaseCommandpublic int closeDocument(Document document)
GraphDocument. If the document is modified users may save it
before activating the close.
document - the document instance to close.
protected void doSaveConfirmedAction(Document document)
document - The document to savepublic boolean isCloseConfirmed()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||