Interface NumberRangeDialogInput.Builder

Enclosing interface:
NumberRangeDialogInput

@NonExtendable public static interface NumberRangeDialogInput.Builder
  • Method Details

    • width

      @Contract(value="_ -> this", mutates="this") NumberRangeDialogInput.Builder width(@org.jetbrains.annotations.Range(from=1L, to=1024L) int width)
      Sets the width of the input.
      Parameters:
      width - the width
      Returns:
      this builder
    • labelFormat

      @Contract(value="_ -> this", mutates="this") NumberRangeDialogInput.Builder labelFormat(String labelFormat)
      Sets the format for the label.

      Example: "%s: %s" or "options.generic_value"

      Parameters:
      labelFormat - the label format
      Returns:
      this builder
    • initial

      @Contract(value="_ -> this", mutates="this") NumberRangeDialogInput.Builder initial(@Nullable Float initial)
      Sets the initial value for the input.
      Parameters:
      initial - the initial value, or null if not set
      Returns:
      this builder
    • step

      @Contract(value="_ -> this", mutates="this") NumberRangeDialogInput.Builder step(@Positive @Nullable Float step)
      Sets the step of the range.
      Parameters:
      step - the step size, or null if not set
      Returns:
      this builder
    • build

      @Contract(pure=true, value="-> new") NumberRangeDialogInput build()
      Builds the instance with the configured values.
      Returns:
      a new instance