@Tag(value="super-double-field") public class SuperDoubleField extends AbstractSuperFloatingPointField<Double,SuperDoubleField>
Double values that are properly formatted.com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C extends com.vaadin.flow.component.Component,V>com.vaadin.flow.component.HasValue.ValueChangeEvent<V>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>>DEFAULT_CHANGE_TIMEOUTHELPER_ABOVE_THEME_VARIANTLABEL_POSITION_ATTRIBUTE, LABEL_POSITION_DETAILS_ATTRIBUTE| Constructor and Description |
|---|
SuperDoubleField()
Constructs the field with an empty label, zero as default value and with default
Locale. |
SuperDoubleField(Double defaultValue,
String label)
Constructs the field with given default value and label, and with default
Locale. |
SuperDoubleField(Double defaultValue,
String label,
Locale locale,
int maxFractionDigits)
Constructs the field.
|
SuperDoubleField(Locale locale)
Constructs the field with an empty label and zero as default value.
|
SuperDoubleField(Locale locale,
int maxFractionDigits)
Constructs the field with an empty label and zero as default value.
|
SuperDoubleField(String label)
Constructs the field with default
Locale and zero as default value. |
SuperDoubleField(String label,
Locale locale)
Constructs the field with zero as the default value.
|
SuperDoubleField(String label,
Locale locale,
int maxFractionDigits)
Constructs the field with zero as the default value..
|
| Modifier and Type | Method and Description |
|---|---|
protected Double |
parseRawValue(String rawValue,
DecimalFormat format)
Parses (somewhat) raw value from the text field into a proper typed value.
|
isIntegerPartOptional, setIntegerPartOptional, setMaximumFractionDigits, setMinimumFractionDigits, withIntegerPartOptional, withIntegerPartOptional, withIntegerPartRequired, withMaximumFractionDigits, withMinimumFractionDigitsaddTextSelectionListener, addThemeVariants, blur, buildRegularExpression, escapeDot, focus, generateModelValue, getErrorMessage, getHelperComponent, getHelperText, getLabel, getLabelPosition, getLocale, getPlaceholder, getPrefixComponent, getRawValue, getRegexp, getSuffixComponent, getTooltipText, getValueChangeMode, getValueChangeTimeout, isAutoselect, isClearButtonVisible, isFocused, isGroupingSeparatorHiddenOnFocus, isHelperAbove, isInvalid, isNegativeValueAllowed, isNullValueAllowed, isReadOnly, isReceivingSelectionEventsFromClient, isRequired, isRequiredIndicatorVisible, removeThemeVariants, select, selectAll, selectNone, setAutoselect, setClearButtonVisible, setDecimalFormat, setErrorMessage, setGroupingSeparatorHiddenOnFocus, setHelperAbove, setHelperAbove, setHelperBelow, setHelperComponent, setHelperText, setId, setInvalid, setLabel, setLabelPosition, setLocale, setMaximumIntegerDigits, setNegativeValueAllowed, setNullValueAllowed, setPlaceholder, setPrefixComponent, setPresentationValue, setReadOnly, setReceivingSelectionEventsFromClient, setRequired, setRequiredIndicatorVisible, setSuffixComponent, setTooltipText, setValueChangeMode, setValueChangeTimeout, updateFieldValue, updateRegularExpression, updateRegularExpression, withAutoselect, withGroupingSeparatorHiddenOnFocus, withMaximumIntegerDigits, withNegativeValueAllowed, withReceivingSelectionEventsFromClientadd, remove, updateValueaddValueChangeListener, getEmptyValue, getValue, isEmpty, setModelValue, setValue, valueEqualsaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNamewithLocalewithLabelwithPlaceholderwithValuewithIdwithNullValueAllowedaddValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, setValuewithHelperComponent, withHelperTextwithHelperAbove, withHelperAbove, withHelperBelowwithClearButtonVisiblewithoutRequired, withRequired, withRequiredwithLabelPositionwithTooltipTextgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullpublic SuperDoubleField()
Locale.public SuperDoubleField(Locale locale)
locale - Locale to use for formatting.public SuperDoubleField(Locale locale, int maxFractionDigits)
locale - Locale to use for formatting.maxFractionDigits - Maximum number of fraction digits allowed (overwrites setting found in locale.public SuperDoubleField(String label)
Locale and zero as default value.label - Label accompanying the field.public SuperDoubleField(String label, Locale locale)
label - Label accompanying the field.locale - Locale to use for formatting.public SuperDoubleField(Double defaultValue, String label)
Locale.defaultValue - Default value.label - Label that accompanies the field.public SuperDoubleField(String label, Locale locale, int maxFractionDigits)
label - Label accompanying the field.locale - Locale to use for formatting.maxFractionDigits - Maximum number of fraction digits allowed (overwrites setting found in locale.public SuperDoubleField(Double defaultValue, String label, Locale locale, int maxFractionDigits)
defaultValue - Default value.label - Label accompanying the field.locale - Locale to use for formatting.maxFractionDigits - Maximum number of fraction digits allowed (overwrites setting found in locale.protected Double parseRawValue(String rawValue, DecimalFormat format) throws ParseException
AbstractSuperNumberFieldparseRawValue in class AbstractSuperNumberField<Double,SuperDoubleField>rawValue - Value from text field.format - Format to use.ParseException - When parsing goes wrong.Copyright © 2023 Miki. All rights reserved.