|
||||||||||
| 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.application.demo.Main
Main is a demo concrete subclass of ApplicationAdaptor. This demo application is a simple plain text editor that demonstrates how to build a simple application using the application framework.
| Field Summary |
| Fields inherited from class gov.sns.application.ApplicationAdaptor |
docURLs |
| Constructor Summary | |
Main()
Constructor |
|
| Method Summary | |
void |
applicationFinishedLaunching()
Capture the application launched event and print it. |
java.lang.String |
applicationName()
Specifies the name of my application. |
protected void |
customizeCommands(Commander commander)
Register actions for the Special menu items. |
void |
editPreferences(XalDocument document)
Implement a preference panel for the document in this case. |
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. |
protected void |
updateActions()
Update the action enable states. |
java.lang.String[] |
writableDocumentTypes()
Returns the text file suffixes of files this application can write. |
| Methods inherited from class gov.sns.application.ApplicationAdaptor |
applicationWillQuit, documentClosed, documentCreated, getApplicationHelpPath, getApplicationInfoPath, getDocURLs, getMenuDefinitionPath, getPathToResource, getResourcesPath, setOptions, usesConsole |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Main()
| 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 void editPreferences(XalDocument document)
editPreferences in class ApplicationAdaptordocument - The document whose preferences are being changed. Subclass may ignore.protected void customizeCommands(Commander commander)
customizeCommands in class ApplicationAdaptorcommander - The commander with which to register the custom commands.Commander.registerAction(Action)protected void updateActions()
public 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 | |||||||||