Package it.tidalwave.ui.javafx
Class AbstractJavaFXSpringApplication
java.lang.Object
javafx.application.Application
it.tidalwave.ui.javafx.JavaFXApplicationWithSplash
it.tidalwave.ui.javafx.AbstractJavaFXSpringApplication
- Direct Known Subclasses:
JavaFXSpringAnnotationApplication,JavaFXSpringApplication
A base class for all variants of JavaFX applications with Spring.
- Author:
- Fabrizio Giudici
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.application.Application
javafx.application.Application.Parameters -
Field Summary
Fields inherited from class it.tidalwave.ui.javafx.JavaFXApplicationWithSplash
applicationFxml, splashFxmlFields inherited from class javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.springframework.context.ConfigurableApplicationContextCreates the application context.protected NodeAndDelegate<?> protected voidprotected voidInvoked when the mainStageis being closed.protected final voidonStageCreated(javafx.stage.Stage stage, NodeAndDelegate<?> applicationNad) protected voidonStageCreated(org.springframework.context.ApplicationContext applicationContext) Invoked when theStageis created and theApplicationContexthas been initialized.Methods inherited from class it.tidalwave.ui.javafx.JavaFXApplicationWithSplash
createScene, getExecutor, init, startMethods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
Constructor Details
-
AbstractJavaFXSpringApplication
public AbstractJavaFXSpringApplication()
-
-
Method Details
-
createParent
- Specified by:
createParentin classJavaFXApplicationWithSplash- Throws:
IOException
-
initializeInBackground
protected void initializeInBackground()- Specified by:
initializeInBackgroundin classJavaFXApplicationWithSplash
-
createApplicationContext
@Nonnull protected abstract org.springframework.context.ConfigurableApplicationContext createApplicationContext()Creates the application context.- Returns:
- the application context
-
onStageCreated
protected final void onStageCreated(@Nonnull javafx.stage.Stage stage, @Nonnull NodeAndDelegate<?> applicationNad) - Overrides:
onStageCreatedin classJavaFXApplicationWithSplash
-
onStageCreated
protected void onStageCreated(@Nonnull org.springframework.context.ApplicationContext applicationContext) Invoked when theStageis created and theApplicationContexthas been initialized. Typically the main class overrides this, retrieves a reference to the main controller and boots it. This method is executed in a background thread.- Parameters:
applicationContext- the application context
-
onClosing
protected void onClosing()Invoked when the mainStageis being closed.- Overrides:
onClosingin classJavaFXApplicationWithSplash
-