Class SplashScreen

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class SplashScreen
    extends Window
    This is the class that displays a splash screen and in the background it will create QuickSetup object. This class tries to minimize the time to be displayed. So it does the loading of the setup class in runtime once we already have displayed the splash screen. This is why the quickSetup variable is of type Object. This class can be reused by simply overwriting the methods constructApplication() and displayApplication().
    See Also:
    Serialized Form
    • Constructor Detail

      • SplashScreen

        protected SplashScreen()
        Protected constructor to force to use the main method.
    • Method Detail

      • main

        public static void main​(Supplier<TempLogFile> tempLogFile,
                                String[] args)
        The main method for this class. It can be called from the event thread and outside the event thread.
        Parameters:
        tempLogFile - supplies the temporary log file where messages will be logged
        args - arguments to be passed to the method QuickSetup.initialize
      • display

        protected void display​(String[] args)
        The method used to display the splash screen. It will also call create the application associated with this SplashScreen and display it. It can be called from the event thread and outside the event thread.
        Parameters:
        args - arguments to be passed to the method QuickSetup.initialize
      • constructApplication

        protected void constructApplication​(String[] args)
        This methods constructs the objects before displaying them. This method assumes that is being called outside the event thread. This method can be overwritten by subclasses to construct other objects different than the Quick Setup.
        Parameters:
        args - arguments passed in the main of this class.