Class Main


  • public class Main
    extends javafx.application.Application
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javafx.application.Application

        javafx.application.Application.Parameters
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.google.inject.Injector injector
      JavaFX insists on creating the main application with its own reflection code, so we can't create with the Guice and do automatic field injection.
      • Fields inherited from class javafx.application.Application

        STYLESHEET_CASPIAN, STYLESHEET_MODENA
    • Constructor Summary

      Constructors 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init()  
      void onUnexpectedThrowableEvent​(UnexpectedThrowableEvent event)  
      void start​(javafx.stage.Stage stage)  
      void stop()  
      • Methods inherited from class javafx.application.Application

        getHostServices, getParameters, getUserAgentStylesheet, launch, launch, notifyPreloader, setUserAgentStylesheet
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • injector

        protected com.google.inject.Injector injector
        JavaFX insists on creating the main application with its own reflection code, so we can't create with the Guice and do automatic field injection. However, we can inject it after the fact.
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • init

        public void init()
                  throws java.io.IOException
        Overrides:
        init in class javafx.application.Application
        Throws:
        java.io.IOException
      • start

        public void start​(javafx.stage.Stage stage)
                   throws java.io.IOException
        Specified by:
        start in class javafx.application.Application
        Throws:
        java.io.IOException
      • stop

        public void stop()
        Overrides:
        stop in class javafx.application.Application