Class AcceleratorApplication

All Implemented Interfaces:
XalDocumentListener

public class AcceleratorApplication extends FrameApplication
AcceleratorApplication is the subclass of Application that is required for accelerator based applications.
Author:
tap
  • Constructor Details

    • AcceleratorApplication

      public AcceleratorApplication(ApplicationAdaptor adaptor, URL[] urls)
      Creates a new instance of AcceleratorApplication
  • Method Details

    • setup

      protected void setup(URL[] urls)
      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 class FrameApplication
      Parameters:
      urls - An array of document URLs to open.
    • makeCommander

      protected Commander makeCommander()
      Make an application commander
      Overrides:
      makeCommander in class Application
      Returns:
      the commander that loads default and custom actions.
    • getAcceleratorFileChooser

      public JFileChooser getAcceleratorFileChooser()
      Get the file chooser used for opening accelerator input files.
      Returns:
      The file chooser used for opening accelerator input files.
    • 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, 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(String type)
      Create and open a new empty document of the specified type.
      Overrides:
      newDocument in class FrameApplication
      Parameters:
      type - the type of document to create.