java.lang.Object
com.amirali.fxdialogs.ExceptionDialog.Builder
- Enclosing class:
- ExceptionDialog
ExceptionDialog builder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddButtons
(@NotNull javafx.scene.control.ButtonType... buttonTypes) adds buttons to the dialog panecreate()
creates ExceptionDialogsetDialogMessage
(@NotNull String message) sets message of the ExceptionDialogsetException
(@NotNull Throwable exception) sets exceptions to the text areaadds styles to style list and that list will be added to the scene
-
Constructor Details
-
Builder
public Builder()creates initial layout
-
-
Method Details
-
setDialogMessage
sets message of the ExceptionDialog- Parameters:
message
- message of the ExceptionDialog- Returns:
- Builder
-
setException
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
adds styles to style list and that list will be added to the scene- Parameters:
styles
- dialog styles- Returns:
- Builder
-
create
creates ExceptionDialog- Returns:
- ExceptionDialog
-