Package it.tidalwave.ui.javafx
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
Modifier and TypeFieldDescriptionprotected 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract NodeAndDelegate
<?> protected javafx.scene.Scene
createScene
(javafx.scene.Parent parent) protected Executor
void
init()
protected abstract void
protected void
Invoked when the mainStage
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
-
Field Details
-
K_INITIAL_SIZE
A property representing the initial main window size as a percentual of the screen size. -
K_MAXIMIZED
Whether the application should start maximized. -
K_FULL_SCREEN
Whether the application should start at full screen. -
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_DURATIONThe minimum duration of the splash screen. -
applicationFxml
-
splashFxml
-
-
Constructor Details
-
JavaFXApplicationWithSplash
public JavaFXApplicationWithSplash()
-
-
Method Details
-
init
public void init()- Overrides:
init
in classjavafx.application.Application
-
start
public void start(@Nonnull javafx.stage.Stage stage) - Specified by:
start
in classjavafx.application.Application
-
onStageCreated
protected void onStageCreated(@Nonnull javafx.stage.Stage stage, @Nonnull NodeAndDelegate<?> applicationNad) -
createParent
- Throws:
IOException
-
initializeInBackground
protected abstract void initializeInBackground() -
onClosing
protected void onClosing()Invoked when the mainStage
is being closed. -
getExecutor
-
createScene
protected javafx.scene.Scene createScene(@Nonnull javafx.scene.Parent parent)
-