java.lang.Object
com.amirali.fxdialogs.SplashScreen.Builder
- Enclosing class:
- SplashScreen
SplashScreen builder
-
Constructor Summary
ConstructorDescriptionBuilder
(@NotNull javafx.util.Duration duration, @NotNull javafx.stage.Stage primaryStage) initial SplashScreen -
Method Summary
Modifier and TypeMethodDescriptioncreate()
creates SplashScreensetCallBack
(@NotNull SplashScreenCallBack callBack) sets callBack for SplashScreen eventssetLayout
(@NotNull javafx.scene.Parent container) sets container layout of the SplashScreensetScene
(@NotNull javafx.scene.Scene scene) sets scene of the SplashScreenadds styles to style list and that list will be added to the scene
-
Constructor Details
-
Builder
public Builder(@NotNull @NotNull javafx.util.Duration duration, @NotNull @NotNull javafx.stage.Stage primaryStage) initial SplashScreen- Parameters:
duration
- duration of the SplashScreenprimaryStage
- primary stage- Throws:
IllegalStateException
- Cannot show the SplashScreen once primaryStage has been set visible
-
-
Method Details
-
setStyles
adds styles to style list and that list will be added to the scene- Parameters:
styles
- SplashScreen styles- Returns:
- Builder
-
setLayout
sets container layout of the SplashScreen- Parameters:
container
- Parent- Returns:
- Builder
-
setScene
sets scene of the SplashScreen- Parameters:
scene
- SplashScreen scene- Returns:
- Builder
-
setCallBack
sets callBack for SplashScreen events- Parameters:
callBack
- SplashScreenCallBack- Returns:
- Builder
-
create
creates SplashScreen- Returns:
- SplashScreenWindow
-