|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.sns.application.ApplicationAdaptor
|
+--gov.sns.xal.smf.application.demo.Demo
Demo is a demo concrete subclass of ApplicationAdaptor. This demo application is a simple accelerator viewer that demonstrates how to build a simple accelerator based application using the accelerator application framework.
| Field Summary |
| Fields inherited from class gov.sns.application.ApplicationAdaptor |
docURLs |
| Constructor Summary | |
Demo()
|
|
| Method Summary | |
void |
applicationFinishedLaunching()
Capture the application launched event and print it |
java.lang.String |
applicationName()
Specifies the name of my application. |
static void |
main(java.lang.String[] args)
The main method of the application. |
XalDocument |
newDocument(java.net.URL url)
Implement this method to return an instance of my custom document corresponding to the specified URL. |
XalDocument |
newEmptyDocument()
Implement this method to return an instance of my custom document. |
java.lang.String[] |
readableDocumentTypes()
Returns the text file suffixes of files this application can open. |
boolean |
usesConsole()
Specifies whether I want to send standard output and error to the console. |
java.lang.String[] |
writableDocumentTypes()
Returns the text file suffixes of files this application can write. |
| Methods inherited from class gov.sns.application.ApplicationAdaptor |
applicationWillQuit, customizeCommands, documentClosed, documentCreated, editPreferences, getApplicationHelpPath, getApplicationInfoPath, getDocURLs, getMenuDefinitionPath, getPathToResource, getResourcesPath, setOptions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Demo()
| Method Detail |
public java.lang.String[] readableDocumentTypes()
readableDocumentTypes in class ApplicationAdaptorpublic java.lang.String[] writableDocumentTypes()
writableDocumentTypes in class ApplicationAdaptorpublic XalDocument newEmptyDocument()
newEmptyDocument in class ApplicationAdaptorpublic XalDocument newDocument(java.net.URL url)
newDocument in class ApplicationAdaptorurl - The URL of the file to open.
public java.lang.String applicationName()
applicationName in class ApplicationAdaptorpublic boolean usesConsole()
usesConsole in class ApplicationAdaptorpublic void applicationFinishedLaunching()
applicationFinishedLaunching in class ApplicationAdaptorpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||