public interface NumberInputBuilder<T extends Number> extends InputBuilder<T,ValueHolder.ValueChangeEvent<T>,Input<T>,NumberInputBuilder<T>>, InputValueConfigurator<T,ValueHolder.ValueChangeEvent<T>,NumberInputBuilder<T>>, HasEnabledConfigurator<NumberInputBuilder<T>>, InputNotifierConfigurator<NumberInputBuilder<T>>, KeyNotifierConfigurator<NumberInputBuilder<T>>, HasValueChangeModeConfigurator<NumberInputBuilder<T>>, HasAutocompleteConfigurator<NumberInputBuilder<T>>, HasSizeConfigurator<NumberInputBuilder<T>>, HasStyleConfigurator<NumberInputBuilder<T>>, HasAutofocusConfigurator<NumberInputBuilder<T>>, FocusableConfigurator<com.vaadin.flow.component.Component,NumberInputBuilder<T>>, HasPrefixAndSuffixConfigurator<NumberInputBuilder<T>>, CompositionNotifierConfigurator<NumberInputBuilder<T>>, HasPlaceholderConfigurator<NumberInputBuilder<T>>, HasLabelConfigurator<NumberInputBuilder<T>>, HasTitleConfigurator<NumberInputBuilder<T>>, HasPatternConfigurator<NumberInputBuilder<T>>, HasThemeVariantConfigurator<com.vaadin.flow.component.textfield.TextFieldVariant,NumberInputBuilder<T>>, DeferrableLocalizationConfigurator<NumberInputBuilder<T>>
InputConfigurator.BaseInputConfigurator<T>ComponentConfigurator.BaseComponentConfiguratorFULL_SIZE| Modifier and Type | Method and Description |
|---|---|
NumberInputBuilder<T> |
allowNegative(boolean allowNegative)
Sets whether to allow negative numbers.
|
static <T extends Number> |
create(Class<T> numberType)
Get a new
NumberInputBuilder to create a numeric type Input. |
NumberInputBuilder<T> |
locale(Locale locale)
Set the
Locale to use to represent and convert number values. |
NumberInputBuilder<T> |
maxDecimals(int maxDecimals)
Sets the maximum number of digits allowed in the fraction portion of a number.
|
NumberInputBuilder<T> |
minDecimals(int minDecimals)
Sets the minimum number of digits allowed in the fraction portion of a number.
|
NumberInputBuilder<T> |
numberFormat(NumberFormat numberFormat)
Sets the
NumberFormat to use to represent and convert number values. |
NumberInputBuilder<T> |
numberFormatPattern(String numberFormatPattern)
Sets the number format pattern to use to represent and convert number values.
|
build, validatablewithValuereadOnly, readOnly, required, required, withValueChangeListenerhidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNamedisabled, enabledwithInputListenerwithKeyDownListener, withKeyDownListener, withKeyPressListener, withKeyPressListener, withKeyUpListener, withKeyUpListenervalueChangeModeautocompletefullHeight, fullSize, fullWidth, height, height, heightUndefined, sizeUndefined, width, width, widthUndefinedstyleName, styleNamesautofocustabIndex, withBlurListener, withFocusListenerprefixComponent, suffixComponentwithCompositionEndListener, withCompositionStartListener, withCompositionUpdateListenerplaceholder, placeholder, placeholderlabel, label, labeldescription, description, description, title, title, titlepattern, preventInvalidInput, preventInvalidInputwithThemeVariantsdeferLocalization, withDeferredLocalizationisDeferredLocalizationEnabledNumberInputBuilder<T> locale(Locale locale)
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.
locale - the Locale to setNumberInputBuilder<T> numberFormat(NumberFormat numberFormat)
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).
numberFormat - the NumberFormat to setNumberInputBuilder<T> numberFormatPattern(String numberFormatPattern)
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).
numberFormatPattern - the number format pattern to setNumberInputBuilder<T> allowNegative(boolean allowNegative)
Default is true.
allowNegative - true to allow negative numbers, false otherwiseNumberInputBuilder<T> minDecimals(int minDecimals)
minDecimals - the minimum decimal digits, -1 for no limitNumberInputBuilder<T> maxDecimals(int maxDecimals)
maxDecimals - the maximum decimal digits, -1 for no limitstatic <T extends Number> NumberInputBuilder<T> create(Class<T> numberType)
NumberInputBuilder to create a numeric type Input.T - Number typenumberType - Number class (not null)NumberInputBuilderCopyright © 2019 The Holon Platform. All rights reserved.