@Tag(value="super-long-field") public class SuperLongField extends AbstractSuperNumberField<Long,SuperLongField>
Long 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 |
|---|
SuperLongField()
Constructs the field with zero as default value, default
Locale and an empty label. |
SuperLongField(Locale locale)
Constructs the field with zero as default value and an empty label.
|
SuperLongField(Long defaultValue,
String label)
Constructs the field with given default value and label, and with default
Locale. |
SuperLongField(Long defaultValue,
String label,
Locale locale)
Constructs the field.
|
SuperLongField(String label)
Constructs the field with zero as default value and default
Locale. |
SuperLongField(String label,
Locale locale)
Constructs the field with zero as default value.
|
| Modifier and Type | Method and Description |
|---|---|
protected Long |
parseRawValue(String rawValue,
DecimalFormat format)
Parses (somewhat) raw value from the text field into a proper typed value.
|
void |
setDecimalFormat(DecimalFormat format)
Sets the format definition used to displaying the value.
|
addTextSelectionListener, addThemeVariants, blur, buildAllowedCharPattern, buildRegularExpression, focus, generateModelValue, getDecimalSeparatorAlternatives, getErrorMessage, getGroupingSeparatorAlternatives, getHelperComponent, getHelperText, getLabel, getLabelPosition, getLocale, getNegativeSignAlternatives, getPlaceholder, getPrefixComponent, getRawValue, getRegexp, getSuffixComponent, getTextInputMode, getTooltipText, getValueChangeMode, getValueChangeTimeout, isAutoselect, isClearButtonVisible, isFocused, isGroupingSeparatorHiddenOnFocus, isHelperAbove, isIntegerPartOptional, isInvalid, isNegativeValueAllowed, isNullValueAllowed, isOverlappingAlternatives, isPreventingInvalidInput, isReadOnly, isReceivingSelectionEventsFromClient, isRequired, isRequiredIndicatorVisible, removeThemeVariants, select, selectAll, selectNone, setAutoselect, setClearButtonVisible, setDecimalSeparatorAlternatives, setErrorMessage, setGroupingSeparatorAlternatives, setGroupingSeparatorHiddenOnFocus, setHelperAbove, setHelperAbove, setHelperBelow, setHelperComponent, setHelperText, setId, setIntegerPartOptional, setInvalid, setLabel, setLabelPosition, setLocale, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setNegativeSignAlternatives, setNegativeValueAllowed, setNullValueAllowed, setOverlappingAlternatives, setPlaceholder, setPrefixComponent, setPresentationValue, setPreventingInvalidInput, setReadOnly, setReceivingSelectionEventsFromClient, setRequired, setRequiredIndicatorVisible, setSuffixComponent, setTextInputMode, setTooltipText, setValueChangeMode, setValueChangeTimeout, updateFieldValue, updateRegularExpression, updateRegularExpression, updateTextInputMode, withAutoselect, withDecimalSeparatorAlternatives, withDecimalSeparatorAlternatives, withGroupingSeparatorAlternatives, withGroupingSeparatorAlternatives, withGroupingSeparatorHiddenOnFocus, withMaximumIntegerDigits, withNegativeSignAlternatives, withNegativeSignAlternatives, withNegativeValueAllowed, withoutOverlappingAlternatives, withOverlappingAlternatives, withOverlappingAlternatives, 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, waitwithoutReceivingSelectionEventsFromClient, withReceivingSelectionEventsFromClientaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNamewithLocalewithLabelwithPlaceholderwithValuewithIdwithNullValueAllowed, withNullValueAllowed, withoutNullValueAllowedaddValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, setValuewithHelperComponent, withHelperTextwithHelperAbove, withHelperAbove, withHelperBelowwithClearButtonVisible, withClearButtonVisible, withoutClearButtonVisiblewithoutRequired, withRequired, withRequiredwithLabelPositionwithTooltipTextwithTextInputModewithoutPreventingInvalidInput, withPreventingInvalidInput, withPreventingInvalidInputgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullpublic SuperLongField()
Locale and an empty label.public SuperLongField(Locale locale)
locale - Locale to use for formatting.public SuperLongField(String label)
Locale.label - Label that accompanies the field.public SuperLongField(String label, Locale locale)
label - Label that accompanies the field.locale - Locale to use for formatting.public SuperLongField(Long defaultValue, String label)
Locale.defaultValue - Default value.label - Label that accompanies the field.protected Long parseRawValue(String rawValue, DecimalFormat format) throws ParseException
AbstractSuperNumberFieldparseRawValue in class AbstractSuperNumberField<Long,SuperLongField>rawValue - Value from text field.format - Format to use.ParseException - When parsing goes wrong.public void setDecimalFormat(DecimalFormat format)
AbstractSuperNumberFieldsetDecimalFormat in class AbstractSuperNumberField<Long,SuperLongField>format - DecimalFormat to use. When null, NumberFormat.getNumberInstance() will be used.Copyright © 2024 Miki. All rights reserved.