Module FXDialogs

Class ExceptionDialog.Builder

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

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

    • Builder

      public Builder()
      creates initial layout
  • Method Details

    • setDialogMessage

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

      public ExceptionDialog.Builder setException(@NotNull @NotNull Throwable exception)
      sets exceptions to the text area
      Parameters:
      exception - Throwable
      Returns:
      Builder
    • addButtons

      public ExceptionDialog.Builder addButtons(@NotNull @NotNull javafx.scene.control.ButtonType... buttonTypes)
      adds buttons to the dialog pane
      Parameters:
      buttonTypes - buttons
      Returns:
      Builder
    • setStyles

      public ExceptionDialog.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 ExceptionDialog create()
      creates ExceptionDialog
      Returns:
      ExceptionDialog