|
||||||||||
| 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.xal.smf.application.AcceleratorDocument
|
+--gov.sns.xal.smf.application.demo.DemoDocument
DemoDocument is a custom AcceleratorDocument for the demo application. Each document instance manages a single plain text document. The document manages the data that is displayed in the window. In this example we display information about the accelerator or the selected sequence as appropriate based on the most recent user action.
| Field Summary | |
protected javax.swing.text.PlainDocument |
textDocument
The document for the text pane in the main window. |
| Fields inherited from class gov.sns.xal.smf.application.AcceleratorDocument |
accelerator, acceleratorFilePath, selectedSequence, selectedSequenceList |
| 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 | |
DemoDocument()
Create a new empty document |
|
DemoDocument(java.net.URL url)
Create a new document loaded from the URL file |
|
| Method Summary | |
void |
acceleratorChanged()
Handle the accelerator changed event by displaying the elements of the accelerator in the main window. |
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. |
void |
selectedSequenceChanged()
Handle the selected sequence changed event by displaying the elements of the selected sequence in the main window. |
| Methods inherited from class gov.sns.xal.smf.application.AcceleratorDocument |
acceleratorFilePathChanged, getAccelerator, getAcceleratorFilePath, getAcceleratorWindow, getSelectedSequence, getSelectedSequenceList, loadDefaultAccelerator, setAccelerator, setAcceleratorFilePath, setSelectedSequence, setSelectedSequenceList |
| 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 DemoDocument()
public DemoDocument(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.public void acceleratorChanged()
acceleratorChanged in class AcceleratorDocumentpublic void selectedSequenceChanged()
selectedSequenceChanged in class AcceleratorDocument
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||