Module FXDialogs

Class SplashScreen.Builder

java.lang.Object
com.amirali.fxdialogs.SplashScreen.Builder
Enclosing class:
SplashScreen

public static class SplashScreen.Builder extends Object
SplashScreen builder
  • Constructor Details

    • Builder

      public Builder(@NotNull @NotNull javafx.util.Duration duration, @NotNull @NotNull javafx.stage.Stage primaryStage)
      initial SplashScreen
      Parameters:
      duration - duration of the SplashScreen
      primaryStage - primary stage
      Throws:
      IllegalStateException - Cannot show the SplashScreen once primaryStage has been set visible
  • Method Details

    • setStyles

      public SplashScreen.Builder setStyles(String... styles)
      adds styles to style list and that list will be added to the scene
      Parameters:
      styles - SplashScreen styles
      Returns:
      Builder
    • setLayout

      public SplashScreen.Builder setLayout(@NotNull @NotNull javafx.scene.Parent container)
      sets container layout of the SplashScreen
      Parameters:
      container - Parent
      Returns:
      Builder
    • setScene

      public SplashScreen.Builder setScene(@NotNull @NotNull javafx.scene.Scene scene)
      sets scene of the SplashScreen
      Parameters:
      scene - SplashScreen scene
      Returns:
      Builder
    • setCallBack

      public SplashScreen.Builder setCallBack(@NotNull @NotNull SplashScreenCallBack callBack)
      sets callBack for SplashScreen events
      Parameters:
      callBack - SplashScreenCallBack
      Returns:
      Builder
    • create

      public SplashScreen create()
      creates SplashScreen
      Returns:
      SplashScreenWindow