Class ScriptApplication

  • All Implemented Interfaces:
    Application

    public class ScriptApplication
    extends java.lang.Object
    implements Application
    Script application loader.

    This application will load a BXML file containing a Pivot component and its content hierarchy and display it. If the outermost component is a Window (or subclass of it) then the window will be displayed directly. Otherwise a default Window will be created and the component made its content.

    Note: A Sheet or Palette will get owned by the default window.

    • Constructor Detail

      • ScriptApplication

        public ScriptApplication​(java.lang.String srcArgument)
        Constructor for subclasses to preset the "SRC" argument for completely automatic application startup (mainly used for tests, demos, etc.).
        Parameters:
        srcArgument - The name of a source file that will be used if the --src=... argument is missing from the command line.
    • Method Detail

      • startup

        public void startup​(Display display,
                            Map<java.lang.String,​java.lang.String> properties)
                     throws java.lang.Exception
        Description copied from interface: Application
        Called when the application is starting up.
        Specified by:
        startup in interface Application
        Parameters:
        display - The display on which this application was started.
        properties - Initialization properties passed to the application.
        Throws:
        java.lang.Exception - if there is any problem during startup.
      • shutdown

        public boolean shutdown​(boolean optional)
        Description copied from interface: Application
        Called when the application is being shut down.
        Specified by:
        shutdown in interface Application
        Parameters:
        optional - If true, the shutdown may be cancelled by returning a value of true.
        Returns:
        true to cancel shutdown, false to proceed with shutdown (default).
      • main

        public static void main​(java.lang.String[] args)