Package xal.extension.application
Class ApplicationAdaptor
java.lang.Object
xal.extension.application.AbstractApplicationAdaptor
xal.extension.application.ApplicationAdaptor
- All Implemented Interfaces:
ApplicationListener
ApplicationAdaptor is the abstract superclass of the custom applicaton
adaptors each of which acts as a delegate for its corresponding application.
It contains hooks for handling application events. It also provides
application wide information about the application.
- Author:
- t6p
-
Field Summary
FieldsFields inherited from class xal.extension.application.AbstractApplicationAdaptor
docURLs, GUI_BRICKS_RESOURCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoideditPreferences(XalDocument document) Override this method to show your application's preference panel.final xal.extension.application.XalAbstractDocumentgenerateEmptyDocument(String type) Generate a new empty document.abstract XalDocumentnewDocument(URL url) Subclasses should implement this method to return an instance of their custom subclass of XalDocument loaded from the specified URL.abstract XalDocumentSubclasses should implement this method to return an instance of their custom subclass of XalDocument.newEmptyDocument(String type) Subclasses should implement this method to return an instance of their custom subclass of XalDocument.Methods inherited from class xal.extension.application.AbstractApplicationAdaptor
applicationFinishedLaunching, applicationName, applicationWillOpenInitialDocuments, applicationWillQuit, canOpenDocuments, customizeCommands, documentClosed, documentCreated, getDefaultDocumentFolder, getDefaultDocumentFolderURL, getDefaultWindowReference, getDocURLs, getResourceURL, getUserPreferencesNode, readableDocumentTypes, setOptions, setResourcesLocation, setResourcesParentDirectory, setResourcesParentDirectoryWithPath, showsWelcomeDialogAtLaunch, usesConsole, writableDocumentTypes
-
Field Details
-
WILDCARD_FILE_EXTENSION
wildcard file extension- See Also:
-
-
Constructor Details
-
ApplicationAdaptor
public ApplicationAdaptor()
-
-
Method Details
-
newEmptyDocument
Subclasses should implement this method to return an instance of their custom subclass of XalDocument.- Returns:
- An instance of the custom subclass of XalDocument
-
newEmptyDocument
Subclasses should implement this method to return an instance of their custom subclass of XalDocument.- Returns:
- An instance of the custom subclass of XalDocument
-
newDocument
Subclasses should implement this method to return an instance of their custom subclass of XalDocument loaded from the specified URL.- Returns:
- An instance of the custom subclass of XalDocument
-
generateEmptyDocument
Generate a new empty document.- Specified by:
generateEmptyDocumentin classAbstractApplicationAdaptor- Parameters:
type- the type of document to create.- Returns:
- an instance of the custom subclass of XalAbstractDocument
-
editPreferences
Override this method to show your application's preference panel. The preference panel may optionally be document specific or application wide depending on the application's specific implementation. The default implementaion displays a warning dialog box that now preference panel exists.- Parameters:
document- The document whose preferences are being changed. Subclass may ignore.
-