Class PickerValueChangeModeSupport
java.lang.Object
org.vaadin.firitin.components.internal.PickerValueChangeModeSupport
- All Implemented Interfaces:
Serializable
Internal helper that brings
ValueChangeMode support to date and time
pickers (vaadin-date-picker, vaadin-time-picker and vaadin-date-time-picker
that contains both).
The web components only commit their value when the user presses enter or
leaves the field. With e.g. ValueChangeMode.LAZY, this helper commits
the typed text while the user is still typing, but only if the text is
"complete": it parses with the current i18n settings and formats back to
exactly the same text. Thus partial input, like "1.2.20" while typing a year,
is never re-formatted under the user's cursor, but committed on blur/enter as
before. Clearing the text commits an empty value.
ValueChangeMode.ON_CHANGE and ValueChangeMode.ON_BLUR keep the
default behaviour of the web components.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.data.value.ValueChangeModeintvoidsetValueChangeMode(com.vaadin.flow.data.value.ValueChangeMode valueChangeMode) voidsetValueChangeTimeout(int valueChangeTimeout)
-
Constructor Details
-
PickerValueChangeModeSupport
public PickerValueChangeModeSupport(com.vaadin.flow.component.Component component)
-
-
Method Details
-
getValueChangeMode
public com.vaadin.flow.data.value.ValueChangeMode getValueChangeMode() -
setValueChangeMode
public void setValueChangeMode(com.vaadin.flow.data.value.ValueChangeMode valueChangeMode) -
getValueChangeTimeout
public int getValueChangeTimeout() -
setValueChangeTimeout
public void setValueChangeTimeout(int valueChangeTimeout)
-