T - Number typeC - Concrete configurator typepublic 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>
InputConfigurator.BaseInputConfigurator<T>ComponentConfigurator.BaseComponentConfiguratorFULL_SIZE| Modifier and Type | Method and Description |
|---|---|
C |
allowNegative(boolean allowNegative)
Sets whether to allow negative numbers.
|
default C |
autoselect()
Automatically select the input value when the input component gains focus.
|
C |
autoselect(boolean autoselect)
Set whether to automatically select the input value when the input component gains focus.
|
C |
clearButtonVisible(boolean clearButtonVisible)
Set whether to show a clear button which can be used to clear the input value.
|
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.
|
withValuereadOnly, readOnly, required, required, withValueChangeListenerelementConfiguration, hidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNamedisabled, enabledwithInputListenerwithKeyDownListener, withKeyDownListener, withKeyPressListener, withKeyPressListener, withKeyUpListener, withKeyUpListenervalueChangeModeautocompletefullHeight, fullSize, fullWidth, height, height, heightUndefined, maxHeight, maxWidth, minHeight, minWidth, sizeUndefined, width, width, widthUndefinedstyleName, styleNamesautofocustabIndex, withBlurListener, withFocusListener, withFocusShortcut, withFocusShortcutKeyprefixComponent, suffixComponentwithCompositionEndListener, withCompositionStartListener, withCompositionUpdateListenerplaceholder, placeholder, placeholderlabel, label, labeldescription, description, description, title, title, titlepattern, preventInvalidInput, preventInvalidInputwithThemeVariantsdeferLocalization, withDeferredLocalizationisDeferredLocalizationEnabledC 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 setC 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 setC 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 setC allowNegative(boolean allowNegative)
Default is true.
allowNegative - true to allow negative numbers, false otherwiseC minDecimals(int minDecimals)
minDecimals - the minimum decimal digits, -1 for no limitC maxDecimals(int maxDecimals)
maxDecimals - the maximum decimal digits, -1 for no limitC autoselect(boolean autoselect)
autoselect - true to automatically select the input value when the input component gains focus,
false otherwisedefault C autoselect()
C clearButtonVisible(boolean clearButtonVisible)
clearButtonVisible - true to show the clear button, false to hide itCopyright © 2019 The Holon Platform. All rights reserved.