gov.sns.xal.smf.application
Class AcceleratorApplication

java.lang.Object
  |
  +--gov.sns.application.Application
        |
        +--gov.sns.xal.smf.application.AcceleratorApplication
All Implemented Interfaces:
XalDocumentListener

public class AcceleratorApplication
extends Application

AcceleratorApplication is the subclass of Application that is required for accelerator based applications.


Field Summary
protected  RecentFileTracker _acceleratorTracker
           
protected  javax.swing.JFileChooser acceleratorFileChooser
           
 
Fields inherited from class gov.sns.application.Application
NO_OPTION, YES_OPTION
 
Constructor Summary
AcceleratorApplication(ApplicationAdaptor adaptor, java.net.URL[] urls)
          Creates a new instance of AcceleratorApplication
 
Method Summary
static AcceleratorApplication getAcceleratorApp()
          Get the accelerator application for this session
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()
          Handle the "New" action by creating a new document.
 
Methods inherited from class gov.sns.application.Application
addApplicationListener, cascadeWindowsAbout, closeAllDocuments, closeDocument, displayApplicationError, displayConfirmDialog, displayError, displayError, displayError, displayWarning, displayWarning, displayWarning, documentHasClosed, documentWillClose, getActiveWindow, getAdaptor, getApp, getApplicationAdaptor, getCommander, getDocuments, getOpenFileChooser, getSaveFileChooser, hasChangesChanged, hideAllWindows, makeFileChoosers, openDocument, openDocument, openFile, openFiles, openURL, produceDocument, produceDocument, quit, registerApplicationStatusService, registerEvents, removeApplicationListener, revertToSaved, saveAllDocuments, saveAsDocument, saveDocument, saveDocumentToFile, setOpenFileChooser, setSaveFileChooser, setupConsole, showAllWindows, titleChanged, updateFileChooserFolder, updateFileChooserFolder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

acceleratorFileChooser

protected javax.swing.JFileChooser acceleratorFileChooser

_acceleratorTracker

protected RecentFileTracker _acceleratorTracker
Constructor Detail

AcceleratorApplication

public AcceleratorApplication(ApplicationAdaptor adaptor,
                              java.net.URL[] urls)
Creates a new instance of AcceleratorApplication

Method Detail

makeCommander

protected Commander makeCommander()
Make an application commander

Overrides:
makeCommander in class Application
Returns:
the commander that loads default and custom actions.

getAcceleratorApp

public static AcceleratorApplication getAcceleratorApp()
Get the accelerator application for this session

Returns:
the accelerator application for this session

launch

public static void launch(ApplicationAdaptor adaptor)
Handle the launching of the application by creating the application instance and performing application initialization.

Parameters:
adaptor - The custom application adaptor.

launch

public static void launch(ApplicationAdaptor adaptor,
                          java.net.URL[] urls)
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

protected void newDocument()
Handle the "New" action by creating a new document.

Overrides:
newDocument in class Application