Class ApplicationAdaptor

java.lang.Object
xal.extension.application.AbstractApplicationAdaptor
xal.extension.application.ApplicationAdaptor
All Implemented Interfaces:
ApplicationListener

public abstract class ApplicationAdaptor extends AbstractApplicationAdaptor
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 Details

  • Constructor Details

    • ApplicationAdaptor

      public ApplicationAdaptor()
  • Method Details

    • newEmptyDocument

      public abstract 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
    • newEmptyDocument

      public XalDocument newEmptyDocument(String type)
      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

      public abstract XalDocument newDocument(URL url)
      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

      public final xal.extension.application.XalAbstractDocument generateEmptyDocument(String type)
      Generate a new empty document.
      Specified by:
      generateEmptyDocument in class AbstractApplicationAdaptor
      Parameters:
      type - the type of document to create.
      Returns:
      an instance of the custom subclass of XalAbstractDocument
    • editPreferences

      public void editPreferences(XalDocument document)
      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.