public class AcceleratorApplication extends FrameApplication
_applicationAdaptor, _commander, _noticeProxy, _openDocuments, NO_OPTION, YES_OPTION
Constructor and Description |
---|
AcceleratorApplication(ApplicationAdaptor adaptor,
java.net.URL[] urls)
Creates a new instance of AcceleratorApplication
|
Modifier and Type | Method and Description |
---|---|
static AcceleratorApplication |
getAcceleratorApp()
Get the accelerator application for this session
|
javax.swing.JFileChooser |
getAcceleratorFileChooser()
Get 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,
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(java.lang.String type)
Create and open a new empty document of the specified type.
|
protected void |
setup(java.net.URL[] urls)
Initialize the Application and open the documents specified by the URL array.
|
closeAllDocuments, documentHasClosed, documentWillClose, hasChangesChanged, newDocument, produceDocument, revertToSaved, titleChanged
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, 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
public AcceleratorApplication(ApplicationAdaptor adaptor, java.net.URL[] urls)
protected void setup(java.net.URL[] urls)
setup
in class FrameApplication
urls
- An array of document URLs to open.protected Commander makeCommander()
makeCommander
in class Application
public javax.swing.JFileChooser getAcceleratorFileChooser()
public static AcceleratorApplication getAcceleratorApp()
public static void launch(ApplicationAdaptor adaptor)
adaptor
- The custom application adaptor.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 applicationprotected void newDocument(java.lang.String type)
newDocument
in class FrameApplication
type
- the type of document to create.