public class DesktopApplication extends Application implements XalInternalDocumentListener
_applicationAdaptor, _commander, _noticeProxy, _openDocuments, NO_OPTION, YES_OPTION| Modifier | Constructor and Description |
|---|---|
protected |
DesktopApplication(DesktopApplicationAdaptor adaptor)
Constructor
|
protected |
DesktopApplication(DesktopApplicationAdaptor adaptor,
java.net.URL[] urls)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
documentActivated(XalInternalDocument document)
Handle the document activated event.
|
void |
documentDeactivated(XalInternalDocument document)
Handle the document activated event.
|
void |
documentHasClosed(XalInternalDocument document)
When a document has closed, the application receives this event and removes the document from its open documents list.
|
void |
documentWillClose(XalInternalDocument document)
Handle document closing event.
|
void |
hasChangesChanged(XalInternalDocument document,
boolean newHasChangesStatus)
Handle document change event.
|
static void |
launch(DesktopApplicationAdaptor adaptor,
java.net.URL[] urls)
Handle the launching of the application by creating the application instance
and performing application initialization.
|
protected Commander |
makeCommander()
Make an application commander
|
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 |
setup(java.net.URL[] urls)
Initialize the Application and open the documents specified by the URL array.
|
void |
titleChanged(XalInternalDocument document,
java.lang.String newTitle)
Handle document title change event.
|
addApplicationListener, canOpenDocuments, cascadeWindowsAbout, closeAllDocuments, 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, makeFileChoosers, newDocumentFromTemplate, openDocument, openDocument, openDocumentVersion, openFile, openFiles, openURL, produceDocument, quit, registerApplicationStatusService, registerEvents, removeApplicationListener, revertToSaved, saveAllDocuments, saveAsDocument, saveDocument, saveDocumentToFile, setNextDocumentOpenLocation, setOpenFileChooser, setSaveFileChooser, setupConsole, showAboutBox, showAllWindows, showOpenFileChooser, showSaveFileChooser, showsWelcomeDialogAtLaunch, showWelcomeDialog, updateNextDocumentOpenLocationprotected DesktopApplication(DesktopApplicationAdaptor adaptor)
adaptor - The application adaptor used for customization.protected DesktopApplication(DesktopApplicationAdaptor 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.protected Commander makeCommander()
makeCommander in class Applicationpublic 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.public static void launch(DesktopApplicationAdaptor adaptor, java.net.URL[] urls)
adaptor - The custom application adaptor.urls - The URLs of documents to open upon launching the applicationpublic void titleChanged(XalInternalDocument document, java.lang.String newTitle)
titleChanged in interface XalInternalDocumentListenerdocument - The document whose title changed.newTitle - The new document title.public void hasChangesChanged(XalInternalDocument document, boolean newHasChangesStatus)
hasChangesChanged in interface XalInternalDocumentListenerdocument - The document whose change status changednewHasChangesStatus - The new "hasChanges" status of the document.public void documentWillClose(XalInternalDocument document)
documentWillClose in interface XalInternalDocumentListenerdocument - The document that will close.public void documentHasClosed(XalInternalDocument document)
documentHasClosed in interface XalInternalDocumentListenerdocument - The document that has closed.public void documentActivated(XalInternalDocument document)
documentActivated in interface XalInternalDocumentListenerdocument - the document that has been activated.public void documentDeactivated(XalInternalDocument document)
documentDeactivated in interface XalInternalDocumentListenerdocument - the document that has been activated.