java.lang.Object
com.amirali.fxdialogs.ProgressDialog.Builder
- Enclosing class:
- ProgressDialog
ProgressDialog builder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
creates ProgressDialogsetDialogMessage
(@NotNull String message) sets message of the ProgressDialogsetDialogTitle
(@NotNull String title) sets title of the ProgressDialogsetProgress
(double value) sets progress of the ProgressDialogsetProgressType
(@NotNull ProgressDialog.ProgressBarType type) sets progress type of the ProgressDialog that can be Bar or Indicatoradds styles to style list and that list will be added to the scene
-
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
sets progress of the ProgressDialog- Parameters:
value
- new progress value- Returns:
- Builder
-
setDialogTitle
sets title of the ProgressDialog- Parameters:
title
- title of the ProgressDialog- Returns:
- Builder
-
setDialogMessage
sets message of the ProgressDialog- Parameters:
message
- message of the ProgressDialog- 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 ProgressDialog- Returns:
- ProgressDialog
-