com.holonplatform.vaadin.flow.components.builders

## Interface NumberInputConfigurator<T extends Number,C extends NumberInputConfigurator<T,C>>

- Type Parameters:
    `T` - Number type
    `C` - Concrete configurator type
  All Superinterfaces:
    ComponentConfigurator<C>, CompositionNotifierConfigurator<C>, DeferrableLocalizationConfigurator<C>, FocusableConfigurator<com.vaadin.flow.component.Component,C>, HasAutocompleteConfigurator<C>, HasAutofocusConfigurator<C>, HasDeferrableLocalization, HasElementConfigurator<C>, HasEnabledConfigurator<C>, HasLabelConfigurator<C>, HasPatternConfigurator<C>, HasPlaceholderConfigurator<C>, HasPrefixAndSuffixConfigurator<C>, HasSizeConfigurator<C>, HasStyleConfigurator<C>, HasThemeVariantConfigurator<com.vaadin.flow.component.textfield.TextFieldVariant,C>, HasTitleConfigurator<C>, HasValueChangeModeConfigurator<C>, InputConfigurator<T,ValueHolder.ValueChangeEvent<T>,C>, InputNotifierConfigurator<C>, InputValueConfigurator<T,ValueHolder.ValueChangeEvent<T>,C>, KeyNotifierConfigurator<C>
  All Known Subinterfaces:
    NumberInputBuilder<T>, ValidatableNumberInputBuilder<T>

      public interface NumberInputConfigurator<T extends Number,C extends NumberInputConfigurator<T,C>>
      extends InputValueConfigurator<T,ValueHolder.ValueChangeEvent<T>,C>, HasEnabledConfigurator<C>, InputNotifierConfigurator<C>, KeyNotifierConfigurator<C>, HasValueChangeModeConfigurator<C>, HasAutocompleteConfigurator<C>, HasSizeConfigurator<C>, HasStyleConfigurator<C>, HasAutofocusConfigurator<C>, FocusableConfigurator<com.vaadin.flow.component.Component,C>, HasPrefixAndSuffixConfigurator<C>, CompositionNotifierConfigurator<C>, HasPlaceholderConfigurator<C>, HasLabelConfigurator<C>, HasTitleConfigurator<C>, HasPatternConfigurator<C>, HasThemeVariantConfigurator<com.vaadin.flow.component.textfield.TextFieldVariant,C>, DeferrableLocalizationConfigurator<C>

  `Number` type `Input` components configurator.
  Since:
    5.2.2

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.holonplatform.vaadin.flow.components.builders.InputConfigurator

      `InputConfigurator.BaseInputConfigurator<T>`

    - ### Nested classes/interfaces inherited from interface com.holonplatform.vaadin.flow.components.builders.ComponentConfigurator

      `ComponentConfigurator.BaseComponentConfigurator`

  - ### Field Summary

    - ### Fields inherited from interface com.holonplatform.vaadin.flow.components.builders.HasSizeConfigurator

      `FULL_SIZE`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `C` | `allowNegative(boolean allowNegative)` Sets whether to allow negative numbers.
    `C` | `locale(Locale locale)` Set the `Locale` to use to represent and convert number values.
    `C` | `maxDecimals(int maxDecimals)` Sets the maximum number of digits allowed in the fraction portion of a number.
    `C` | `minDecimals(int minDecimals)` Sets the minimum number of digits allowed in the fraction portion of a number.
    `C` | `numberFormat(NumberFormat numberFormat)` Sets the `NumberFormat` to use to represent and convert number values.
    `C` | `numberFormatPattern(String numberFormatPattern)` Sets the number format pattern to use to represent and convert number values.

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.InputValueConfigurator

      `withValue`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.InputConfigurator

      `readOnly, readOnly, required, required, withValueChangeListener`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.ComponentConfigurator

      `hidden, id, visible, withAttachListener, withDetachListener`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasElementConfigurator

      `withEventListener, withEventListener, withThemeName`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasEnabledConfigurator

      `disabled, enabled`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.InputNotifierConfigurator

      `withInputListener`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.KeyNotifierConfigurator

      `withKeyDownListener, withKeyDownListener, withKeyPressListener, withKeyPressListener, withKeyUpListener, withKeyUpListener`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasValueChangeModeConfigurator

      `valueChangeMode`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasAutocompleteConfigurator

      `autocomplete`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasSizeConfigurator

      `fullHeight, fullSize, fullWidth, height, height, heightUndefined, sizeUndefined, width, width, widthUndefined`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasStyleConfigurator

      `styleName, styleNames`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasAutofocusConfigurator

      `autofocus`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.FocusableConfigurator

      `tabIndex, withBlurListener, withFocusListener`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasPrefixAndSuffixConfigurator

      `prefixComponent, suffixComponent`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.CompositionNotifierConfigurator

      `withCompositionEndListener, withCompositionStartListener, withCompositionUpdateListener`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasPlaceholderConfigurator

      `placeholder, placeholder, placeholder`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasLabelConfigurator

      `label, label, label`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasTitleConfigurator

      `description, description, description, title, title, title`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasPatternConfigurator

      `pattern, preventInvalidInput, preventInvalidInput`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasThemeVariantConfigurator

      `withThemeVariants`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.DeferrableLocalizationConfigurator

      `deferLocalization, withDeferredLocalization`

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasDeferrableLocalization

      `isDeferredLocalizationEnabled`

- - ### Method Detail

    - #### locale

          C locale(Locale locale)

      Set the `Locale` to use to represent and convert number values.

      The provided `Locale` will be always used to obtain the `NumberFormat` to represent and convert the values, regardless of the current `Locale`.

      Parameters:
        `locale` - the `Locale` to set
      Returns:
        this

    - #### numberFormat

          C numberFormat(NumberFormat numberFormat)

      Sets the `NumberFormat` to use to represent and convert number values.

      The provided `NumberFormat` will be always used, regardless of the current `Locale` or the `Locale` configured through `locale(Locale)`.

      Parameters:
        `numberFormat` - the `NumberFormat` to set
      Returns:
        this

    - #### numberFormatPattern

          C numberFormatPattern(String numberFormatPattern)

      Sets the number format pattern to use to represent and convert number values.

      The pattern style must be consistent with the `DecimalFormat` pattern conventions.

      The grouping and decimals separator symbols used will be obtained from the current `Locale` o from the `Locale` configured through `locale(Locale)`.

      Parameters:
        `numberFormatPattern` - the number format pattern to set
      Returns:
        this

    - #### allowNegative

          C allowNegative(boolean allowNegative)

      Sets whether to allow negative numbers.

      Default is `true`.

      Parameters:
        `allowNegative` - `true` to allow negative numbers, `false` otherwise
      Returns:
        this

    - #### minDecimals

          C minDecimals(int minDecimals)

      Sets the minimum number of digits allowed in the fraction portion of a number.
      Parameters:
        `minDecimals` - the minimum decimal digits, `-1` for no limit
      Returns:
        this

    - #### maxDecimals

          C maxDecimals(int maxDecimals)

      Sets the maximum number of digits allowed in the fraction portion of a number.
      Parameters:
        `maxDecimals` - the maximum decimal digits, `-1` for no limit
      Returns:
        this

Copyright © 2019 The Holon Platform. All rights reserved.