Class DialogActionButton.Builder
java.lang.Object
fr.fidorial.dialog.DialogActionButton.Builder
- Enclosing class:
DialogActionButton
Fluent builder for
DialogActionButton.- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionaction(@Nullable DialogAction action) build()Returns the built button.label(ComponentLike label) tooltip(@Nullable ComponentLike tooltip) width(int width)
-
Method Details
-
label
- Parameters:
label- the text on the button- Returns:
- this builder
- Since:
- 0.1.0
-
tooltip
- Parameters:
tooltip- the text shown while the button is hovered- Returns:
- this builder
- Since:
- 0.1.0
-
width
- Parameters:
width- the width of the button- Returns:
- this builder
- Since:
- 0.1.0
-
action
- Parameters:
action- what pressing the button does, ornullto only dismiss the dialog- Returns:
- this builder
- Since:
- 0.1.0
-
build
Returns the built button.- Returns:
- the built button
- Since:
- 0.1.0
-