Class VTimePicker
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.AbstractField<com.vaadin.flow.component.timepicker.TimePicker,LocalTime>
com.vaadin.flow.component.AbstractSinglePropertyField<com.vaadin.flow.component.timepicker.TimePicker,LocalTime>
com.vaadin.flow.component.timepicker.TimePicker
org.vaadin.firitin.components.timepicker.VTimePicker
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.timepicker.TimePicker>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.Focusable<com.vaadin.flow.component.timepicker.TimePicker>,com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.timepicker.TimePicker>,com.vaadin.flow.component.HasAriaDescription,com.vaadin.flow.component.HasAriaLabel,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasHelper,com.vaadin.flow.component.HasLabel,com.vaadin.flow.component.HasPlaceholder,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.HasValidation,com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.timepicker.TimePicker,,LocalTime>, LocalTime> com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.timepicker.TimePicker,,LocalTime>, LocalTime> com.vaadin.flow.component.orderedlayout.ThemableLayout,com.vaadin.flow.component.shared.HasAllowedCharPattern,com.vaadin.flow.component.shared.HasAutoOpen,com.vaadin.flow.component.shared.HasClearButton,com.vaadin.flow.component.shared.HasPrefix,com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.timepicker.TimePickerVariant>,com.vaadin.flow.component.shared.HasTooltip,com.vaadin.flow.component.shared.HasValidationProperties,com.vaadin.flow.component.shared.InputField<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.timepicker.TimePicker,,LocalTime>, LocalTime> com.vaadin.flow.data.binder.HasValidator<LocalTime>,com.vaadin.flow.data.value.HasValueChangeMode,Serializable,FluentAttachNotifier<VTimePicker>,FluentBlurNotifier<com.vaadin.flow.component.timepicker.TimePicker,,VTimePicker> FluentComponent<VTimePicker>,FluentDetachNotifier<VTimePicker>,FluentFocusable<com.vaadin.flow.component.timepicker.TimePicker,,VTimePicker> FluentFocusNotifier<com.vaadin.flow.component.timepicker.TimePicker,,VTimePicker> FluentHasEnabled<VTimePicker>,FluentHasHelper<VTimePicker>,FluentHasSize<VTimePicker>,FluentHasValidation<VTimePicker>,FluentHasValueAndElement<VTimePicker,,com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.timepicker.TimePicker, LocalTime>, LocalTime> FluentThemableLayout<VDateTimePicker>,FluentHasLabel<VTimePicker>,HasPadding<VDateTimePicker>
public class VTimePicker
extends com.vaadin.flow.component.timepicker.TimePicker
implements FluentHasSize<VTimePicker>, FluentHasValidation<VTimePicker>, FluentHasEnabled<VTimePicker>, FluentComponent<VTimePicker>, FluentThemableLayout<VDateTimePicker>, FluentHasValueAndElement<VTimePicker,com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.timepicker.TimePicker,LocalTime>,LocalTime>, FluentHasLabel<VTimePicker>, FluentFocusable<com.vaadin.flow.component.timepicker.TimePicker,VTimePicker>, FluentHasHelper<VTimePicker>, com.vaadin.flow.data.value.HasValueChangeMode
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.timepicker.TimePicker
com.vaadin.flow.component.timepicker.TimePicker.InvalidChangeEvent, com.vaadin.flow.component.timepicker.TimePicker.TimePickerI18nNested classes/interfaces inherited from class com.vaadin.flow.component.AbstractField
com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C extends com.vaadin.flow.component.Component,V> Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier
com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>Nested classes/interfaces inherited from interface com.vaadin.flow.component.Focusable
com.vaadin.flow.component.Focusable.FocusJsNested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier
com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component>Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue
com.vaadin.flow.component.HasValue.ValueChangeEvent<V>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>> -
Field Summary
Fields inherited from interface com.vaadin.flow.data.value.HasValueChangeMode
DEFAULT_CHANGE_TIMEOUT -
Constructor Summary
ConstructorsConstructorDescriptionVTimePicker(com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.timepicker.TimePicker, LocalTime>> listener) VTimePicker(String label) VTimePicker(String label, LocalTime time) VTimePicker(LocalTime time) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.data.value.ValueChangeModeReturns the value change mode.intvoidsetValueChangeMode(com.vaadin.flow.data.value.ValueChangeMode valueChangeMode) Sets the value change mode.voidsetValueChangeTimeout(int valueChangeTimeout) withClearButtonVisible(boolean clearButtonVisible) withErrorMessage(String errorMessage) withInvalid(boolean invalid) withInvalidChangeListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.timepicker.TimePicker.InvalidChangeEvent> listener) withLocale(Locale locale) withMaxTime(LocalTime max) withMinTime(LocalTime min) withPlaceholder(String placeholder) withRequired(boolean required) withRequiredIndicatorVisible(boolean requiredIndicatorVisible) withValueChangeMode(com.vaadin.flow.data.value.ValueChangeMode valueChangeMode) withValueChangeTimeout(int valueChangeTimeout) Methods inherited from class com.vaadin.flow.component.timepicker.TimePicker
addInvalidChangeListener, addValidationStatusChangeListener, bindMax, bindMin, getAriaDescribedBy, getAriaLabel, getAriaLabelledBy, getDefaultValidator, getI18n, getLabel, getLocale, getMax, getMin, getStep, getSupportedAvailableLocales, isInputUnparsable, isInputValuePresent, isRequired, isRequiredIndicatorVisible, onAttach, setAriaDescribedBy, setAriaLabel, setAriaLabelledBy, setErrorMessage, setI18n, setLabel, setLocale, setManualValidation, setMax, setMin, setModelValue, setRequired, setRequiredIndicatorVisible, setStep, setValue, validateMethods inherited from class com.vaadin.flow.component.AbstractSinglePropertyField
getSynchronizationRegistration, hasValidValue, setPresentationValue, setSynchronizedEventMethods inherited from class com.vaadin.flow.component.AbstractField
addValueChangeListener, bindValue, getEmptyValue, getValue, isEmpty, valueEqualsMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, getUIOrThrow, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible, whenAttachedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentAttachNotifier
withAttachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentBlurNotifier
withBlurListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentComponent
navigate, setId, setVisible, withId, withVisibleMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentDetachNotifier
withDetachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentFocusable
withTabIndexMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentFocusNotifier
withFocusListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasEnabled
withEnabledMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasHelper
withHelperComponent, withHelperTextMethods inherited from interface org.vaadin.firitin.fluency.ui.internal.FluentHasLabel
withLabelMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasSize
addResizeListener, withFullHeight, withFullWidth, withHeight, withMaxHeight, withMaxSize, withMaxWidth, withMinHeight, withMinSize, withMinWidth, withSize, withSizeFull, withSizeUndefined, withWidthMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasValueAndElement
withReadOnly, withValue, withValueChangeListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentThemableLayout
withBoxSizing, withMargin, withPadding, withSpacingMethods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, focus, getTabIndex, setTabIndexMethods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListenerMethods inherited from interface com.vaadin.flow.component.shared.HasAllowedCharPattern
getAllowedCharPattern, setAllowedCharPatternMethods inherited from interface com.vaadin.flow.component.HasAriaDescription
setAriaDescribedByMethods inherited from interface com.vaadin.flow.component.HasAriaLabel
setAriaLabelledByMethods inherited from interface com.vaadin.flow.component.shared.HasAutoOpen
isAutoOpen, setAutoOpenMethods inherited from interface com.vaadin.flow.component.shared.HasClearButton
bindClearButtonVisible, isClearButtonVisible, setClearButtonVisibleMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
bindEnabled, isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasHelper
bindHelperText, getHelperComponent, getHelperText, setHelperComponent, setHelperTextMethods inherited from interface com.vaadin.flow.component.HasLabel
getLabel, setLabelMethods inherited from interface org.vaadin.firitin.util.style.HasPadding
setPadding, setPadding, setPadding, withPadding, withPadding, withPaddingMethods inherited from interface com.vaadin.flow.component.HasPlaceholder
bindPlaceholder, getPlaceholder, setPlaceholderMethods inherited from interface com.vaadin.flow.component.shared.HasPrefix
getPrefixComponent, setPrefixComponentMethods inherited from interface com.vaadin.flow.component.HasSize
bindHeight, bindWidth, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, bindThemeName, bindThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, bindThemeVariant, bindThemeVariants, removeThemeVariants, setThemeVariant, setThemeVariants, setThemeVariantsMethods inherited from interface com.vaadin.flow.component.shared.HasTooltip
getTooltip, setTooltipMarkdown, setTooltipTextMethods inherited from interface com.vaadin.flow.component.HasValidation
setManualValidationMethods inherited from interface com.vaadin.flow.component.shared.HasValidationProperties
getErrorMessage, isInvalid, setInvalidMethods inherited from interface com.vaadin.flow.component.HasValue
addValueChangeListener, bindValue, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, setValueMethods inherited from interface com.vaadin.flow.component.HasValueAndElement
bindReadOnly, bindRequiredIndicatorVisible, isReadOnly, setReadOnlyMethods inherited from interface com.vaadin.flow.component.orderedlayout.ThemableLayout
getBoxSizing, getSpacing, getThemeList, isMargin, isPadding, isSpacing, isWrap, setBoxSizing, setMargin, setPadding, setSpacing, setSpacing, setSpacing, setWrap
-
Constructor Details
-
VTimePicker
public VTimePicker() -
VTimePicker
-
VTimePicker
-
VTimePicker
-
VTimePicker
public VTimePicker(com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.timepicker.TimePicker, LocalTime>> listener)
-
-
Method Details
-
withErrorMessage
- Specified by:
withErrorMessagein interfaceFluentHasValidation<VTimePicker>
-
withInvalid
- Specified by:
withInvalidin interfaceFluentHasValidation<VTimePicker>
-
withPlaceholder
-
withRequired
-
withStep
-
withInvalidChangeListener
public VTimePicker withInvalidChangeListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.timepicker.TimePicker.InvalidChangeEvent> listener) -
withLocale
-
withMinTime
-
withMaxTime
-
withClearButtonVisible
-
withRequiredIndicatorVisible
- Specified by:
withRequiredIndicatorVisiblein interfaceFluentHasValueAndElement<VTimePicker,com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.timepicker.TimePicker, LocalTime>, LocalTime>
-
getValueChangeMode
public com.vaadin.flow.data.value.ValueChangeMode getValueChangeMode()Returns the value change mode. Defaults toValueChangeMode.LAZYin Viritin, so that value change events are fired while the user types (when the typed text is a complete, valid value), like with VTextField.- Specified by:
getValueChangeModein interfacecom.vaadin.flow.data.value.HasValueChangeMode- Returns:
- the value change mode
-
setValueChangeMode
public void setValueChangeMode(com.vaadin.flow.data.value.ValueChangeMode valueChangeMode) Sets the value change mode.ValueChangeMode.ON_CHANGEandValueChangeMode.ON_BLURrestore the default behaviour of the web component (value committed on enter or blur). WithValueChangeMode.LAZY,ValueChangeMode.TIMEOUTandValueChangeMode.EAGERthe value is committed also while typing, if the typed text is a complete value (it parses and formats back to the exact same text).- Specified by:
setValueChangeModein interfacecom.vaadin.flow.data.value.HasValueChangeMode- Parameters:
valueChangeMode- the new value change mode
-
setValueChangeTimeout
public void setValueChangeTimeout(int valueChangeTimeout) - Specified by:
setValueChangeTimeoutin interfacecom.vaadin.flow.data.value.HasValueChangeMode
-
getValueChangeTimeout
public int getValueChangeTimeout()- Specified by:
getValueChangeTimeoutin interfacecom.vaadin.flow.data.value.HasValueChangeMode
-
withValueChangeMode
-
withValueChangeTimeout
-