Class GeneratedVaadinNumberField<R extends GeneratedVaadinNumberField<R,T>,T>
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.AbstractField<C,T>
-
- com.vaadin.flow.component.AbstractSinglePropertyField<R,T>
-
- com.vaadin.flow.component.textfield.GeneratedVaadinTextField<R,T>
-
- com.vaadin.flow.component.textfield.GeneratedVaadinNumberField<R,T>
-
- All Implemented Interfaces:
AttachNotifier
,BlurNotifier<R>
,DetachNotifier
,Focusable<R>
,FocusNotifier<R>
,HasElement
,HasEnabled
,HasStyle
,HasValue<AbstractField.ComponentValueChangeEvent<R,T>,T>
,HasValueAndElement<AbstractField.ComponentValueChangeEvent<R,T>,T>
,Serializable
- Direct Known Subclasses:
AbstractNumberField
@Deprecated @Tag("vaadin-number-field") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="23.5.8") @NpmPackage(value="@vaadin/number-field",version="23.5.8") @NpmPackage(value="@vaadin/vaadin-text-field",version="23.5.8") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/number-field/src/vaadin-number-field.js") public abstract class GeneratedVaadinNumberField<R extends GeneratedVaadinNumberField<R,T>,T> extends GeneratedVaadinTextField<R,T> implements HasStyle
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
<vaadin-number-field>
is a Polymer 2 element for number field control in forms.<vaadin-number-field label="Number"> </vaadin-number-field>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.flow.component.textfield.GeneratedVaadinTextField
GeneratedVaadinTextField.ChangeEvent<R extends GeneratedVaadinTextField<R,?>>, GeneratedVaadinTextField.InvalidChangeEvent<R extends GeneratedVaadinTextField<R,?>>
-
Nested classes/interfaces inherited from class com.vaadin.flow.component.AbstractField
AbstractField.ComponentValueChangeEvent<C extends Component,V>
-
Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier
BlurNotifier.BlurEvent<C extends Component>
-
Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier
FocusNotifier.FocusEvent<C extends Component>
-
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue
HasValue.ValueChangeEvent<V>, HasValue.ValueChangeListener<E extends HasValue.ValueChangeEvent<?>>
-
-
Constructor Summary
Constructors Constructor Description GeneratedVaadinNumberField()
Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinNumberField(T initialValue, T defaultValue, boolean acceptNullValues)
Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinNumberField(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableBiFunction<R,P,T> presentationToModel, SerializableBiFunction<R,T,P> modelToPresentation)
Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinNumberField(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)
Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinNumberField(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation, boolean isInitialValueOptional)
Deprecated.since v23.3, generated classes will be removed in v24.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
checkValidity()
Deprecated.since v23.3, generated classes will be removed in v24.protected double
getMaxDouble()
Deprecated.since v23.3, generated classes will be removed in v24.protected double
getMinDouble()
Deprecated.since v23.3, generated classes will be removed in v24.protected double
getStepDouble()
Deprecated.since v23.3, generated classes will be removed in v24.protected boolean
hasControlsBoolean()
Deprecated.since 23.3.protected void
setHasControls(boolean hasControls)
Deprecated.since 23.3.protected void
setMax(double max)
Deprecated.since v23.3, generated classes will be removed in v24.protected void
setMin(double min)
Deprecated.since v23.3, generated classes will be removed in v24.protected void
setStep(double step)
Deprecated.since v23.3, generated classes will be removed in v24.-
Methods inherited from class com.vaadin.flow.component.textfield.GeneratedVaadinTextField
addChangeListener, addInvalidChangeListener, addToInput, addToPrefix, addToSuffix, getAutocapitalizeString, getAutocompleteString, getAutocorrectString, getErrorMessageString, getLabelString, getListString, getMaxlengthDouble, getMinlengthDouble, getNameString, getPatternString, getPlaceholderString, getTitleString, isAutofocusBoolean, isAutoselectBoolean, isDisabledBoolean, isInvalidBoolean, isPreventInvalidInputBoolean, isReadonlyBoolean, isRequiredBoolean, remove, removeAll, setAutocapitalize, setAutocomplete, setAutocorrect, setAutofocus, setAutoselect, setDisabled, setErrorMessage, setInvalid, setLabel, setList, setMaxlength, setMinlength, setName, setPattern, setPlaceholder, setPreventInvalidInput, setReadonly, setRequired, setTitle, validate
-
Methods inherited from class com.vaadin.flow.component.AbstractSinglePropertyField
getSynchronizationRegistration, hasValidValue, setPresentationValue, setSynchronizedEvent
-
Methods inherited from class com.vaadin.flow.component.AbstractField
addValueChangeListener, getEmptyValue, getValue, isEmpty, setModelValue, setValue, valueEquals
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
-
Methods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListener
-
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
Methods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndex
-
Methods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListener
-
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
-
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Methods inherited from interface com.vaadin.flow.component.HasValue
clear, getOptionalValue
-
Methods inherited from interface com.vaadin.flow.component.HasValueAndElement
isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible
-
-
-
-
Constructor Detail
-
GeneratedVaadinNumberField
@Deprecated public GeneratedVaadinNumberField(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation, boolean isInitialValueOptional)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinNumberField component with the given arguments.If
isInitialValueOptional
istrue
then the initial value is used only if element has no"value"
property value, otherwise element"value"
property is ignored and the initial value is set.- Type Parameters:
P
- the property type- Parameters:
initialValue
- the initial value to set to the valuedefaultValue
- the default value to use if the value isn't definedelementPropertyType
- the type of the element propertypresentationToModel
- a function that converts a string value to a model valuemodelToPresentation
- a function that converts a model value to a string valueisInitialValueOptional
- ifisInitialValueOptional
istrue
then the initial value is used only if element has no"value"
property value, otherwise element"value"
property is ignored and the initial value is set
-
GeneratedVaadinNumberField
@Deprecated public GeneratedVaadinNumberField(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinNumberField component with the given arguments.- Type Parameters:
P
- the property type- Parameters:
initialValue
- the initial value to set to the valuedefaultValue
- the default value to use if the value isn't definedelementPropertyType
- the type of the element propertypresentationToModel
- a function that converts a string value to a model valuemodelToPresentation
- a function that converts a model value to a string value
-
GeneratedVaadinNumberField
@Deprecated public GeneratedVaadinNumberField(T initialValue, T defaultValue, boolean acceptNullValues)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinNumberField component with the given arguments.- Parameters:
initialValue
- the initial value to set to the valuedefaultValue
- the default value to use if the value isn't definedacceptNullValues
- whethernull
is accepted as a model value
-
GeneratedVaadinNumberField
@Deprecated public GeneratedVaadinNumberField(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableBiFunction<R,P,T> presentationToModel, SerializableBiFunction<R,T,P> modelToPresentation)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinNumberField component with the given arguments.- Type Parameters:
P
- the property type- Parameters:
initialValue
- the initial value to set to the valuedefaultValue
- the default value to use if the value isn't definedelementPropertyType
- the type of the element propertypresentationToModel
- a function that accepts this component and a property value and returns a model valuemodelToPresentation
- a function that accepts this component and a model value and returns a property value
-
GeneratedVaadinNumberField
@Deprecated public GeneratedVaadinNumberField()
Deprecated.since v23.3, generated classes will be removed in v24.Default constructor.
-
-
Method Detail
-
hasControlsBoolean
@Deprecated protected boolean hasControlsBoolean()
Deprecated.since 23.3. UseAbstractNumberField.isStepButtonsVisible()
instead.Description copied from corresponding location in WebComponent:
Set to true to display value increase/decrease controls.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
- Returns:
- the
hasControls
property from the webcomponent
-
setHasControls
@Deprecated protected void setHasControls(boolean hasControls)
Deprecated.since 23.3. UseAbstractNumberField.setStepButtonsVisible(boolean)
instead.Description copied from corresponding location in WebComponent:
Set to true to display value increase/decrease controls.
- Parameters:
hasControls
- the boolean value to set
-
getMinDouble
@Deprecated protected double getMinDouble()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The minimum value of the field.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
- Returns:
- the
min
property from the webcomponent
-
setMin
@Deprecated protected void setMin(double min)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The minimum value of the field.
- Parameters:
min
- the double value to set
-
getMaxDouble
@Deprecated protected double getMaxDouble()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The maximum value of the field.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
- Returns:
- the
max
property from the webcomponent
-
setMax
@Deprecated protected void setMax(double max)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The maximum value of the field.
- Parameters:
max
- the double value to set
-
getStepDouble
@Deprecated protected double getStepDouble()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Specifies the allowed number intervals of the field.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
- Returns:
- the
step
property from the webcomponent
-
setStep
@Deprecated protected void setStep(double step)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Specifies the allowed number intervals of the field.
- Parameters:
step
- the double value to set
-
checkValidity
@Deprecated protected void checkValidity()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from class:GeneratedVaadinTextField
Description copied from corresponding location in WebComponent:
Returns true if the current input value satisfies all constraints (if any)
This function is not supported by Flow because it returns a
boolean
. Functions with return types different than void are not supported at this moment.- Overrides:
checkValidity
in classGeneratedVaadinTextField<R extends GeneratedVaadinNumberField<R,T>,T>
-
-