Class JavaFXApplicationWithSplash

java.lang.Object
javafx.application.Application
it.tidalwave.ui.javafx.JavaFXApplicationWithSplash
Direct Known Subclasses:
AbstractJavaFXSpringApplication

public abstract class JavaFXApplicationWithSplash extends javafx.application.Application
Author:
Fabrizio Giudici
  • Nested Class Summary Link icon

    Nested classes/interfaces inherited from class javafx.application.Application Link icon

    javafx.application.Application.Parameters
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    static final it.tidalwave.util.Key<Boolean>
    Whether the application should start at full screen.
    static final it.tidalwave.util.Key<Boolean>
    Whether the application should always stay at full screen.
    static final it.tidalwave.util.Key<Double>
    A property representing the initial main window size as a percentual of the screen size.
    static final it.tidalwave.util.Key<Boolean>
    Whether the application should start maximized.
    static final it.tidalwave.util.Key<javafx.util.Duration>
    The minimum duration of the splash screen.
    protected String
     

    Fields inherited from class javafx.application.Application Link icon

    STYLESHEET_CASPIAN, STYLESHEET_MODENA
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    protected abstract NodeAndDelegate<?>
     
    protected javafx.scene.Scene
    createScene(javafx.scene.Parent parent)
     
    protected Executor
     
    void
    protected abstract void
     
    protected void
    Invoked when the main Stage is being closed.
    protected void
    onStageCreated(javafx.stage.Stage stage, NodeAndDelegate<?> applicationNad)
     
    void
    start(javafx.stage.Stage stage)

    Methods inherited from class javafx.application.Application Link icon

    getHostServices, getParameters, getUserAgentStylesheet, launch, launch, notifyPreloader, setUserAgentStylesheet, stop

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • K_INITIAL_SIZE Link icon

      public static final it.tidalwave.util.Key<Double> K_INITIAL_SIZE
      A property representing the initial main window size as a percentual of the screen size.
    • K_MAXIMIZED Link icon

      public static final it.tidalwave.util.Key<Boolean> K_MAXIMIZED
      Whether the application should start maximized.
    • K_FULL_SCREEN Link icon

      public static final it.tidalwave.util.Key<Boolean> K_FULL_SCREEN
      Whether the application should start at full screen.
    • K_FULL_SCREEN_LOCKED Link icon

      public static final it.tidalwave.util.Key<Boolean> K_FULL_SCREEN_LOCKED
      Whether the application should always stay at full screen.
    • K_MIN_SPLASH_DURATION Link icon

      public static final it.tidalwave.util.Key<javafx.util.Duration> K_MIN_SPLASH_DURATION
      The minimum duration of the splash screen.
    • applicationFxml Link icon

      protected String applicationFxml
    • splashFxml Link icon

      protected String splashFxml
  • Constructor Details Link icon

    • JavaFXApplicationWithSplash Link icon

      public JavaFXApplicationWithSplash()
  • Method Details Link icon

    • init Link icon

      public void init()
      Overrides:
      init in class javafx.application.Application
    • start Link icon

      public void start(@Nonnull javafx.stage.Stage stage)
      Specified by:
      start in class javafx.application.Application
    • onStageCreated Link icon

      protected void onStageCreated(@Nonnull javafx.stage.Stage stage, @Nonnull NodeAndDelegate<?> applicationNad)
    • createParent Link icon

      @Nonnull protected abstract NodeAndDelegate<?> createParent() throws IOException
      Throws:
      IOException
    • initializeInBackground Link icon

      protected abstract void initializeInBackground()
    • onClosing Link icon

      protected void onClosing()
      Invoked when the main Stage is being closed.
    • getExecutor Link icon

      @Nonnull protected Executor getExecutor()
    • createScene Link icon

      protected javafx.scene.Scene createScene(@Nonnull javafx.scene.Parent parent)