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

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

    javafx.application.Application.Parameters
  • Field Summary

    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

    STYLESHEET_CASPIAN, STYLESHEET_MODENA
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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

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

    Methods inherited from class java.lang.Object

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

    • K_INITIAL_SIZE

      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

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

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

      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

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

      protected String applicationFxml
    • splashFxml

      protected String splashFxml
  • Constructor Details

    • JavaFXApplicationWithSplash

      public JavaFXApplicationWithSplash()
  • Method Details

    • init

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

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

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

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

      protected abstract void initializeInBackground()
    • onClosing

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

      @Nonnull protected Executor getExecutor()
    • createScene

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