Class Main

  • All Implemented Interfaces:
    xal.extension.application.ApplicationListener

    public class Main
    extends xal.extension.application.ApplicationAdaptor
    Application adaptor for the PV Histogram application.
    Author:
    t6p
    • Field Summary

      • Fields inherited from class xal.extension.application.ApplicationAdaptor

        WILDCARD_FILE_EXTENSION
      • Fields inherited from class xal.extension.application.AbstractApplicationAdaptor

        docURLs, GUI_BRICKS_RESOURCE
    • Constructor Summary

      Constructors 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String applicationName()
      Specifies the name of my application.
      static void main​(String[] args)
      The main method of the application.
      xal.extension.application.XalDocument newDocument​(URL url)
      Implement this method to return an instance of my custom document corresponding to the specified URL.
      xal.extension.application.XalDocument newEmptyDocument()
      Implement this method to return an instance of my custom document.
      String[] readableDocumentTypes()
      Returns the text file suffixes of files this application can open.
      String[] writableDocumentTypes()
      Returns the text file suffixes of files this application can write.
      • Methods inherited from class xal.extension.application.ApplicationAdaptor

        editPreferences, generateEmptyDocument, newEmptyDocument
      • Methods inherited from class xal.extension.application.AbstractApplicationAdaptor

        applicationFinishedLaunching, applicationWillOpenInitialDocuments, applicationWillQuit, canOpenDocuments, customizeCommands, documentClosed, documentCreated, getDefaultDocumentFolder, getDefaultDocumentFolderURL, getDefaultWindowReference, getDocURLs, getResourceURL, getUserPreferencesNode, setOptions, setResourcesLocation, setResourcesParentDirectory, setResourcesParentDirectoryWithPath, showsWelcomeDialogAtLaunch, usesConsole
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • readableDocumentTypes

        public String[] readableDocumentTypes()
        Returns the text file suffixes of files this application can open.
        Specified by:
        readableDocumentTypes in class xal.extension.application.AbstractApplicationAdaptor
        Returns:
        Suffixes of readable files
      • writableDocumentTypes

        public String[] writableDocumentTypes()
        Returns the text file suffixes of files this application can write.
        Specified by:
        writableDocumentTypes in class xal.extension.application.AbstractApplicationAdaptor
        Returns:
        Suffixes of writable files
      • newEmptyDocument

        public xal.extension.application.XalDocument newEmptyDocument()
        Implement this method to return an instance of my custom document.
        Specified by:
        newEmptyDocument in class xal.extension.application.ApplicationAdaptor
        Returns:
        An instance of my custom document.
      • newDocument

        public xal.extension.application.XalDocument newDocument​(URL url)
        Implement this method to return an instance of my custom document corresponding to the specified URL.
        Specified by:
        newDocument in class xal.extension.application.ApplicationAdaptor
        Parameters:
        url - The URL of the file to open.
        Returns:
        An instance of my custom document.
      • applicationName

        public String applicationName()
        Specifies the name of my application.
        Specified by:
        applicationName in class xal.extension.application.AbstractApplicationAdaptor
        Returns:
        Name of my application.
      • main

        public static void main​(String[] args)
        The main method of the application.