Interface NumberSpinnerBuilder<T extends Number>

All Superinterfaces:
ComponentBuilder<T,JSpinner,NumberSpinnerBuilder<T>>, SpinnerBuilder<T,NumberSpinnerBuilder<T>>

public interface NumberSpinnerBuilder<T extends Number> extends SpinnerBuilder<T,NumberSpinnerBuilder<T>>
A builder for number based JSpinner
  • Method Details

    • minimum

      NumberSpinnerBuilder<T> minimum(T minimum)
      Parameters:
      minimum - the minimum value
      Returns:
      this builder instance
    • maximum

      NumberSpinnerBuilder<T> maximum(T maximum)
      Parameters:
      maximum - the maximum value
      Returns:
      this builder instance
    • stepSize

      NumberSpinnerBuilder<T> stepSize(T stepSize)
      Parameters:
      stepSize - the step size
      Returns:
      this builder instance
    • groupingUsed

      NumberSpinnerBuilder<T> groupingUsed(boolean groupingUsed)
      Parameters:
      groupingUsed - true if number format grouping should be used
      Returns:
      this builder instance
    • decimalFormatPattern

      NumberSpinnerBuilder<T> decimalFormatPattern(String decimalFormatPattern)
      Parameters:
      decimalFormatPattern - the decimal format pattern
      Returns:
      this builder instance
    • commitOnValidEdit

      NumberSpinnerBuilder<T> commitOnValidEdit(boolean commitOnValidEdit)
      Parameters:
      commitOnValidEdit - true if the spinner should commit on a valid edit
      Returns:
      this builder instance
      See Also:
    • builder

      static <T extends Number> NumberSpinnerBuilder<T> builder(SpinnerNumberModel spinnerNumberModel, Class<T> valueClass)
      Type Parameters:
      T - the number type
      Parameters:
      spinnerNumberModel - the spinner model
      valueClass - the value class
      Returns:
      a new NumberSpinnerBuilder instance
    • builder

      static <T extends Number> NumberSpinnerBuilder<T> builder(SpinnerNumberModel spinnerNumberModel, Class<T> valueClass, Value<T> linkedValue)
      Type Parameters:
      T - the number type
      Parameters:
      spinnerNumberModel - the spinner model
      valueClass - the value class
      linkedValue - the value to link to
      Returns:
      a new NumberSpinnerBuilder instance