Interface NumberRangeDialogInput

All Superinterfaces:
DialogInput

@NonExtendable public non-sealed interface NumberRangeDialogInput extends DialogInput
  • Method Details

    • width

      @Contract(pure=true) @Range(from=1L,to=1024L) int width()
      The width of the input.
      Returns:
      the width
    • label

      @Contract(pure=true) Component label()
      The label for the input.
      Returns:
      the label component
    • labelFormat

      @Contract(pure=true) String labelFormat()
      The format for the label, which can be a translation key or a format string.

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

      Returns:
      the label format
    • start

      @Contract(pure=true) float start()
      The start of the range.
      Returns:
      the start value
    • end

      @Contract(pure=true) float end()
      The end of the range.
      Returns:
      the end value
    • initial

      @Contract(pure=true) @Nullable Float initial()
      The initial value of the input, or null if not set.
      Returns:
      the initial value, or null
    • step

      @Contract(pure=true) @Positive @Nullable Float step()
      The step size for the input, or null if not set.
      Returns:
      the step size, or null