Package org.minifx.fxcommons
Class SingleSceneSpringJavaFxApplication
- java.lang.Object
-
- javafx.application.Application
-
- org.minifx.fxcommons.SingleSceneSpringJavaFxApplication
-
@Component public class SingleSceneSpringJavaFxApplication extends javafx.application.ApplicationEntry point for JavaFx applications that make use of Spring IOC for dependency injection. In order to use this class callapplicationLauncher()in order to get the static builder initializer. UseSingleSceneSpringJavaFxApplication.FxLauncher.launch(String...)in order to start the JavaFx application. Once started, a Spring context is created and aScenebean is created. Use thePerspectivebeans to build your application. In order to customize the JavaFxStage, use theSingleSceneSpringJavaFxApplication.FxLauncher.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSingleSceneSpringJavaFxApplication.FxLauncher
-
Field Summary
Fields Modifier and Type Field Description static java.util.function.Consumer<javafx.stage.WindowEvent>EXIT_ON_CLOSE
-
Constructor Summary
Constructors Constructor Description SingleSceneSpringJavaFxApplication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SingleSceneSpringJavaFxApplication.FxLauncherapplicationLauncher()Returns the static builder ofSingleSceneSpringJavaFxApplication.voidstart(javafx.stage.Stage primaryStage)
-
-
-
Method Detail
-
start
public void start(javafx.stage.Stage primaryStage) throws java.lang.Exception- Specified by:
startin classjavafx.application.Application- Throws:
java.lang.Exception
-
applicationLauncher
public static SingleSceneSpringJavaFxApplication.FxLauncher applicationLauncher()
Returns the static builder ofSingleSceneSpringJavaFxApplication. Use this method to configure and launch aSingleSceneSpringJavaFxApplication.- Returns:
- the single instance of the application launcher
-
-