Class DialogInput.NumberRange.Builder
java.lang.Object
fr.fidorial.dialog.DialogInput.NumberRange.Builder
- Enclosing class:
DialogInput.NumberRange
Fluent builder for
DialogInput.NumberRange.- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns the built input control.initial(float initial) label(ComponentLike label) labelFormat(String labelFormat) step(float step) width(int width)
-
Method Details
-
label
- Parameters:
label- the label displayed to the left of the slider- Returns:
- this builder
- Since:
- 0.1.0
-
labelFormat
- Parameters:
labelFormat- the translation key building the label- Returns:
- this builder
- Since:
- 0.1.0
-
width
- Parameters:
width- the width of the slider- Returns:
- this builder
- Since:
- 0.1.0
-
step
- Parameters:
step- the increment between two accepted values- Returns:
- this builder
- Since:
- 0.1.0
-
initial
- Parameters:
initial- the value the slider starts on- Returns:
- this builder
- Since:
- 0.1.0
-
build
Returns the built input control.- Returns:
- the built input control
- Since:
- 0.1.0
-