|
|||||||||||
| 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.GraphDocumentCommand
com.tensegrity.skeleton.commands.SaveVisualGraphCommand
com.tensegrity.skeleton.commands.SaveAsCommand
Saves the currently active document as a new File.
This class uses a GraphFileChooserDialog to allow users to save
the document in a new directory of choice.
| Constructor Summary | |
SaveAsCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Creates a new SaveAsCommand. |
|
| Method Summary | |
protected GraphFileChooserOption[] |
buildOptions()
Returns a map with additional options to be placed to the bottom of the dialog when saving a file. |
boolean |
isEnabled()
Overridden to disable save command in applets |
void |
perform(java.lang.Object args)
Will show a dialog to set the destination and the format to save the graph to. |
| Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand |
getGraphDocument, getVisualGraphView |
| 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, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SaveAsCommand(ApplicationFrame applicationFrame,
java.lang.String command)
SaveAsCommand.
applicationFrame - Application context for this command.command - the ID of this command.| Method Detail |
public boolean isEnabled()
isEnabled in interface CommandisEnabled in class SaveVisualGraphCommandpublic void perform(java.lang.Object args)
perform in interface Commandperform in class CommonBaseCommandargs - IgnoredCommand.perform(java.lang.Object)protected GraphFileChooserOption[] buildOptions()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||