Class DialogInput.NumberRange.Builder

java.lang.Object
fr.fidorial.dialog.DialogInput.NumberRange.Builder
Enclosing class:
DialogInput.NumberRange

public static final class DialogInput.NumberRange.Builder extends Object
Fluent builder for DialogInput.NumberRange.
Since:
0.1.0
  • Method Details

    • label

      @Contract("_ -> this") public DialogInput.NumberRange.Builder label(ComponentLike label)
      Parameters:
      label - the label displayed to the left of the slider
      Returns:
      this builder
      Since:
      0.1.0
    • labelFormat

      @Contract("_ -> this") public DialogInput.NumberRange.Builder labelFormat(String labelFormat)
      Parameters:
      labelFormat - the translation key building the label
      Returns:
      this builder
      Since:
      0.1.0
    • width

      @Contract("_ -> this") public DialogInput.NumberRange.Builder width(int width)
      Parameters:
      width - the width of the slider
      Returns:
      this builder
      Since:
      0.1.0
    • step

      @Contract("_ -> this") public DialogInput.NumberRange.Builder step(float step)
      Parameters:
      step - the increment between two accepted values
      Returns:
      this builder
      Since:
      0.1.0
    • initial

      @Contract("_ -> this") public DialogInput.NumberRange.Builder initial(float initial)
      Parameters:
      initial - the value the slider starts on
      Returns:
      this builder
      Since:
      0.1.0
    • build

      @Contract("-> new") public DialogInput.NumberRange build()
      Returns the built input control.
      Returns:
      the built input control
      Since:
      0.1.0