Interface NumberField.Builder<T extends Number>

    • Method Detail

      • nullable

        NumberField.Builder<T> nullable​(boolean nullable)
        Specifies whether the ComponentValue created by this builder is nullable, default true. Note that setting this to false does not prevent the field from containing no value.
        Parameters:
        nullable - if false then the ComponentValue returns 0 when the field contains no value
        Returns:
        this builder instance
      • valueRange

        NumberField.Builder<T> valueRange​(Number minimumValue,
                                          Number maximumValue)
        Parameters:
        minimumValue - the minimum value
        maximumValue - the maximum value
        Returns:
        this builder instance
      • minimumValue

        NumberField.Builder<T> minimumValue​(Number minimumValue)
        Parameters:
        minimumValue - the minimum numerical value
        Returns:
        this builder instance
      • maximumValue

        NumberField.Builder<T> maximumValue​(Number maximumValue)
        Parameters:
        maximumValue - the maximum numerical value
        Returns:
        this builder instance
      • groupingSeparator

        NumberField.Builder<T> groupingSeparator​(char groupingSeparator)
        Parameters:
        groupingSeparator - the grouping separator
        Returns:
        this builder instance
      • maximumFractionDigits

        NumberField.Builder<T> maximumFractionDigits​(int maximumFractionDigits)
        Parameters:
        maximumFractionDigits - the maximum fraction digits
        Returns:
        this builder instance
      • decimalSeparator

        NumberField.Builder<T> decimalSeparator​(char decimalSeparator)
        Set the decimal separator for this field
        Parameters:
        decimalSeparator - the decimal separator
        Returns:
        this builder instance
        Throws:
        IllegalArgumentException - in case the decimal separator is the same as the grouping separator