|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.sns.application.XalDocument
|
+--gov.sns.application.demo.MyDocument
MyDocument is a custom XalDocument for my application. Each document instance manages a single plain text document. The document manages the data that is displayed in the window.
| Field Summary | |
protected javax.swing.text.PlainDocument |
textDocument
The document for the text pane in the main window. |
| Fields inherited from class gov.sns.application.XalDocument |
documentListenerProxy, hasChanges, mainWindow, messageCenter, NO_OPTION, source, title, YES_OPTION |
| Fields inherited from interface java.awt.print.Pageable |
UNKNOWN_NUMBER_OF_PAGES |
| Constructor Summary | |
MyDocument()
Create a new empty document |
|
MyDocument(java.net.URL url)
Create a new document loaded from the URL file |
|
| Method Summary | |
void |
makeMainWindow()
Make a main window by instantiating the my custom window. |
void |
saveDocumentAs(java.net.URL url)
Save the document to the specified URL. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.swing.text.PlainDocument textDocument
| Constructor Detail |
public MyDocument()
public MyDocument(java.net.URL url)
url - The URL of the file to load into the new document.| Method Detail |
public void makeMainWindow()
makeMainWindow in class XalDocumentpublic void saveDocumentAs(java.net.URL url)
saveDocumentAs in class XalDocumenturl - The URL to which the document should be saved.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||