public class FrameApplication extends Application implements XalDocumentListener
_applicationAdaptor, _commander, _noticeProxy, _openDocuments, NO_OPTION, YES_OPTION| Modifier | Constructor and Description |
|---|---|
protected |
FrameApplication(ApplicationAdaptor adaptor)
Constructor
|
protected |
FrameApplication(ApplicationAdaptor adaptor,
java.net.URL[] urls)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeAllDocuments()
Handle the "Close All" action by closing all open documents and opening a new empty document.
|
void |
documentHasClosed(XalDocument document)
Implement XalDocumentListener.
|
void |
documentWillClose(XalDocument document)
Implement XalDocumentListener.
|
void |
hasChangesChanged(XalDocument document,
boolean newHasChangesStatus)
Implement XalDocumentListener.
|
static void |
launch(ApplicationAdaptor adaptor,
java.net.URL[] urls)
Handle the launching of the application by creating the application instance
and performing application initialization.
|
protected void |
newDocument()
Create and open a new empty document.
|
protected void |
newDocument(java.lang.String type)
Create and open a new empty document of the specified type.
|
void |
produceDocument(xal.extension.application.XalAbstractDocument document,
boolean makeVisible)
Add a new document to this application and if makeVisible is true, show it
|
protected void |
revertToSaved(xal.extension.application.XalAbstractDocument document)
Handle the "Revert To Saved" action by reverting the specified document
to that of its source file.
|
protected void |
setup(java.net.URL[] urls)
Initialize the Application and open the documents specified by the URL array.
|
void |
titleChanged(XalDocument document,
java.lang.String newTitle)
Implement XalDocumentListener.
|
addApplicationListener, canOpenDocuments, cascadeWindowsAbout, closeDocument, displayApplicationError, displayConfirmDialog, displayError, displayError, displayError, displayWarning, displayWarning, displayWarning, getActiveWindow, getAdaptor, getApp, getApplicationAdaptor, getCommander, getDefaultDocumentFolder, getDefaultDocumentFolderURL, getDocuments, getDocumentsCopy, getLaunchTime, getNextDocumentOpenLocation, getOpenFileChooser, getSaveFileChooser, hideAllWindows, launch, launch, makeCommander, makeFileChoosers, newDocumentFromTemplate, openDocument, openDocument, openDocumentVersion, openFile, openFiles, openURL, produceDocument, quit, registerApplicationStatusService, registerEvents, removeApplicationListener, saveAllDocuments, saveAsDocument, saveDocument, saveDocumentToFile, setNextDocumentOpenLocation, setOpenFileChooser, setSaveFileChooser, setupConsole, showAboutBox, showAllWindows, showOpenFileChooser, showSaveFileChooser, showsWelcomeDialogAtLaunch, showWelcomeDialog, updateNextDocumentOpenLocationprotected FrameApplication(ApplicationAdaptor adaptor)
adaptor - The application adaptor used for customization.protected FrameApplication(ApplicationAdaptor adaptor, java.net.URL[] urls)
adaptor - The application adaptor used for customization.urls - An array of document URLs to open upon startup.protected void setup(java.net.URL[] urls)
setup in class Applicationurls - An array of document URLs to open.public void produceDocument(xal.extension.application.XalAbstractDocument document,
boolean makeVisible)
produceDocument in class Applicationdocument - the document to producemakeVisible - make the document visibleprotected void newDocument()
newDocument in class Applicationprotected void newDocument(java.lang.String type)
newDocument in class Applicationtype - the type of document to create.protected void revertToSaved(xal.extension.application.XalAbstractDocument document)
revertToSaved in class Applicationdocument - The document to revert.protected void closeAllDocuments()
closeAllDocuments in class Applicationpublic void titleChanged(XalDocument document, java.lang.String newTitle)
titleChanged in interface XalDocumentListenerdocument - The document whose title changed.newTitle - The new document title.public void hasChangesChanged(XalDocument document, boolean newHasChangesStatus)
hasChangesChanged in interface XalDocumentListenerdocument - The document whose change status changednewHasChangesStatus - The new "hasChanges" status of the document.public void documentWillClose(XalDocument document)
documentWillClose in interface XalDocumentListenerdocument - The document that will close.public void documentHasClosed(XalDocument document)
documentHasClosed in interface XalDocumentListenerdocument - The document that has closed.public static void launch(ApplicationAdaptor adaptor, java.net.URL[] urls)
adaptor - The custom application adaptor.urls - The URLs of documents to open upon launching the application