Package xal.extension.application.smf
Class AcceleratorApplication
java.lang.Object
xal.extension.application.Application
xal.extension.application.FrameApplication
xal.extension.application.smf.AcceleratorApplication
- All Implemented Interfaces:
XalDocumentListener
AcceleratorApplication is the subclass of Application that is required for
accelerator based applications.
- Author:
- tap
-
Field Summary
Fields inherited from class xal.extension.application.Application
applicationAdaptor, commander, NO_OPTION, noticeProxy, openDocuments, YES_OPTION
-
Constructor Summary
ConstructorsConstructorDescriptionAcceleratorApplication
(ApplicationAdaptor adaptor, URL[] urls) Creates a new instance of AcceleratorApplication -
Method Summary
Modifier and TypeMethodDescriptionstatic AcceleratorApplication
Get the accelerator application for this sessionGet the file chooser used for opening accelerator input files.static void
launch
(ApplicationAdaptor adaptor) Handle the launching of the application by creating the application instance and performing application initialization.static void
launch
(ApplicationAdaptor adaptor, URL[] urls) Handle the launching of the application by creating the application instance and performing application initialization.protected Commander
Make an application commanderprotected void
newDocument
(String type) Create and open a new empty document of the specified type.protected void
Initialize the Application and open the documents specified by the URL array.Methods inherited from class xal.extension.application.FrameApplication
closeAllDocuments, documentHasClosed, documentWillClose, hasChangesChanged, newDocument, produceDocument, revertToSaved, titleChanged
Methods inherited from class xal.extension.application.Application
addApplicationListener, authorizeWithRBAC, canOpenDocuments, cascadeWindowsAbout, changeRBACUser, closeDocument, displayApplicationError, displayConfirmDialog, displayError, displayError, displayError, displayWarning, displayWarning, displayWarning, getActiveWindow, getAdaptor, getApp, getApplicationAdaptor, getCommander, getDefaultDocumentFolder, getDefaultDocumentFolderURL, getDocuments, getDocumentsCopy, getLaunchTime, getNextDocumentOpenLocation, getOpenFileChooser, getRbacLogin, getRbacSubject, getSaveFileChooser, hideAllWindows, launch, launch, 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, updateNextDocumentOpenLocation
-
Constructor Details
-
AcceleratorApplication
Creates a new instance of AcceleratorApplication
-
-
Method Details
-
setup
Initialize the Application and open the documents specified by the URL array. Overrides the inherited version to perform initializations that should occur prior to opening files.- Overrides:
setup
in classFrameApplication
- Parameters:
urls
- An array of document URLs to open.
-
makeCommander
Make an application commander- Overrides:
makeCommander
in classApplication
- Returns:
- the commander that loads default and custom actions.
-
getAcceleratorFileChooser
Get the file chooser used for opening accelerator input files.- Returns:
- The file chooser used for opening accelerator input files.
-
getAcceleratorApp
Get the accelerator application for this session- Returns:
- the accelerator application for this session
-
launch
Handle the launching of the application by creating the application instance and performing application initialization.- Parameters:
adaptor
- The custom application adaptor.
-
launch
Handle the launching of the application by creating the application instance and performing application initialization.- Parameters:
adaptor
- The custom application adaptor.urls
- The URLs of documents to open upon launching the application
-
newDocument
Create and open a new empty document of the specified type.- Overrides:
newDocument
in classFrameApplication
- Parameters:
type
- the type of document to create.
-