Module FXDialogs

Class ProgressDialog.Builder

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

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

    • Builder

      public Builder()
      creates initial layout
  • Method Details

    • setProgressType

      public ProgressDialog.Builder setProgressType(@NotNull @NotNull ProgressDialog.ProgressBarType type)
      sets progress type of the ProgressDialog that can be Bar or Indicator
      Parameters:
      type - progress type
      Returns:
      Builder
    • setProgress

      public ProgressDialog.Builder setProgress(double value)
      sets progress of the ProgressDialog
      Parameters:
      value - new progress value
      Returns:
      Builder
    • setDialogTitle

      public ProgressDialog.Builder setDialogTitle(@NotNull @NotNull String title)
      sets title of the ProgressDialog
      Parameters:
      title - title of the ProgressDialog
      Returns:
      Builder
    • setDialogMessage

      public ProgressDialog.Builder setDialogMessage(@NotNull @NotNull String message)
      sets message of the ProgressDialog
      Parameters:
      message - message of the ProgressDialog
      Returns:
      Builder
    • setStyles

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

      public ProgressDialog create()
      creates ProgressDialog
      Returns:
      ProgressDialog