Interface ActionButton.Builder
- Enclosing interface:
ActionButton
A builder for creating ActionButton instances.
-
Method Summary
Modifier and TypeMethodDescriptionaction
(@Nullable DialogAction action) Sets the action associated with this button, or null if no action is desired.build()
Builds the ActionButton instance with the configured values.Sets the tooltip of the action button, or null if no tooltip is desired.width
(@org.jetbrains.annotations.Range(from=1L, to=1024L) int width) Sets the width of the action button.
-
Method Details
-
tooltip
@Contract(value="_ -> this", mutates="this") ActionButton.Builder tooltip(@Nullable Component tooltip) Sets the tooltip of the action button, or null if no tooltip is desired.- Parameters:
tooltip
- the tooltip of the button, or null- Returns:
- this builder
-
width
@Contract(value="_ -> this", mutates="this") ActionButton.Builder width(@org.jetbrains.annotations.Range(from=1L, to=1024L) int width) Sets the width of the action button.- Parameters:
width
- the width of the button- Returns:
- this builder
-
action
@Contract(value="_ -> this", mutates="this") ActionButton.Builder action(@Nullable DialogAction action) Sets the action associated with this button, or null if no action is desired.- Parameters:
action
- the action to perform when the button is clicked, or null- Returns:
- this builder
-
build
Builds the ActionButton instance with the configured values.- Returns:
- a new ActionButton instance
-