Class NumericFieldDescription.Init<T extends NumericFieldDescription.Init<T>>

Direct Known Subclasses:
NumericFieldDescription.Builder, SliderDescription.Init
Enclosing class:
NumericFieldDescription

protected abstract static class NumericFieldDescription.Init<T extends NumericFieldDescription.Init<T>> extends EditFieldDescription.Init<T>
Helper class for NumericFieldDescription.Builder.
  • Constructor Details

    • Init

      protected Init()
  • Method Details

    • build

      public NumericFieldDescription build()
      Description copied from class: DescriptionBase.Init
      Returns the built description instance (builder pattern).
      Overrides:
      build in class EditFieldDescription.Init<T extends NumericFieldDescription.Init<T>>
      Returns:
      The built description instance (builder pattern).
    • numericValue

      public T numericValue(Double numericValue)
      Initializes the current value in the number field.
      Parameters:
      numericValue - the current value in the number field.
      Returns:
      the description instance with the update state (builder pattern).
    • defaultNumericValue

      public T defaultNumericValue(Double defaultNumericValue)
      Initializes the initial value of the object, which is set when the object is reset.
      Parameters:
      defaultNumericValue - the initial value of the object, which is set when the object is reset.
      Returns:
      the description instance with the update state (builder pattern).
    • min

      public T min(Double min)
      Initializes the minimum value that can be entered in the field.
      Parameters:
      min - the minimum value that can be entered in the field.
      Returns:
      the description instance with the update state (builder pattern).
    • max

      public T max(Double max)
      Initializes the maximum value that can be entered in the field.
      Parameters:
      max - the maximum value that can be entered in the field.
      Returns:
      the description instance with the update state (builder pattern).