Class GeneratedVaadinDatePicker<R extends GeneratedVaadinDatePicker<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.datepicker.GeneratedVaadinDatePicker<R,T>
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.BlurNotifier<R>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.Focusable<R>,com.vaadin.flow.component.FocusNotifier<R>,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<R,T>,T>,com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<R,T>,T>,Serializable
- Direct Known Subclasses:
DatePicker
@Deprecated @Tag("vaadin-date-picker") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="23.6.2") @NpmPackage(value="@vaadin/date-picker",version="23.6.2") @NpmPackage(value="@vaadin/vaadin-date-picker",version="23.6.2") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/date-picker/src/vaadin-date-picker.js") public abstract class GeneratedVaadinDatePicker<R extends GeneratedVaadinDatePicker<R,T>,T> extends com.vaadin.flow.component.AbstractSinglePropertyField<R,T> implements com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.Focusable<R>
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
<vaadin-date-picker>is a date selection field which includes a scrollable month calendar view. <vaadin-date-picker label="Birthday"></vaadin-date-picker>datePicker.value = '2016-03-02';When the selectedvalueis changed, avalue-changedevent is triggered.Styling
The following shadow DOM parts are available for styling:
Part name Description Theme for Element text-fieldInput element vaadin-date-picker clear-buttonClear button vaadin-date-picker toggle-buttonToggle button vaadin-date-picker overlay-contentThe overlay element vaadin-date-picker overlay-headerFullscreen mode header vaadin-date-picker-overlay-content labelFullscreen mode value/label vaadin-date-picker-overlay-content clear-buttonFullscreen mode clear button vaadin-date-picker-overlay-content toggle-buttonFullscreen mode toggle button vaadin-date-picker-overlay-content years-toggle-buttonFullscreen mode years scroller toggle vaadin-date-picker-overlay-content monthsMonths scroller vaadin-date-picker-overlay-content yearsYears scroller vaadin-date-picker-overlay-content toolbarFooter bar with buttons vaadin-date-picker-overlay-content today-buttonToday button vaadin-date-picker-overlay-content cancel-buttonCancel button vaadin-date-picker-overlay-content monthMonth calendar vaadin-date-picker-overlay-content year-numberYear number vaadin-date-picker-overlay-content year-separatorYear separator vaadin-date-picker-overlay-content month-headerMonth title vaadin-month-calendar weekdaysWeekday container vaadin-month-calendar weekdayWeekday element vaadin-month-calendar week-numbersWeek numbers container vaadin-month-calendar week-numberWeek number element vaadin-month-calendar dateDate element vaadin-month-calendar See ThemableMixin – how to apply styles for shadow parts
The following state attributes are available for styling:
Attribute Description Part name invalidSet when the element is invalid :host openedSet when the date selector overlay is opened :host readonlySet when the element is readonly :host disabledSet when the element is disabled :host todaySet on the date corresponding to the current day date focusedSet on the focused date date disabledSet on the date out of the allowed range date selectedSet on the selected date date If you want to replace the default input field with a custom implementation, you should use the
<vaadin-date-picker-light>element.In addition to
<vaadin-date-picker>itself, the following internal components are themable:<vaadin-date-picker-text-field><vaadin-date-picker-overlay><vaadin-date-picker-overlay-content><vaadin-month-calendar>
Note: the
themeattribute value set on<vaadin-date-picker>is propagated to the internal themable components listed above.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeneratedVaadinDatePicker.ChangeEvent<R extends GeneratedVaadinDatePicker<R,?>>Deprecated.since v23.3, generated classes will be removed in v24.static classGeneratedVaadinDatePicker.InvalidChangeEvent<R extends GeneratedVaadinDatePicker<R,?>>Deprecated.since v23.3, generated classes will be removed in v24.static classGeneratedVaadinDatePicker.OpenedChangeEvent<R extends GeneratedVaadinDatePicker<R,?>>Deprecated.since v23.3, generated classes will be removed in v24.-
Nested classes/interfaces inherited from class com.vaadin.flow.component.AbstractField
com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C extends com.vaadin.flow.component.Component,V extends Object>
-
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.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 extends Object>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>>
-
-
Constructor Summary
Constructors Constructor Description GeneratedVaadinDatePicker()Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinDatePicker(T initialValue, T defaultValue, boolean acceptNullValues)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinDatePicker(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableBiFunction<R,P,T> presentationToModel, com.vaadin.flow.function.SerializableBiFunction<R,T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinDatePicker(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableFunction<P,T> presentationToModel, com.vaadin.flow.function.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 com.vaadin.flow.shared.RegistrationaddChangeListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinDatePicker.ChangeEvent<R>> listener)Deprecated.since v23.3, generated classes will be removed in v24.protected com.vaadin.flow.shared.RegistrationaddInvalidChangeListener(com.vaadin.flow.component.ComponentEventListener<DatePicker.InvalidChangeEvent<DatePicker>> listener)Deprecated.since v23.3, generated classes will be removed in v24.protected com.vaadin.flow.shared.RegistrationaddOpenedChangeListener(com.vaadin.flow.component.ComponentEventListener<DatePicker.OpenedChangeEvent<DatePicker>> listener)Deprecated.since v23.3, generated classes will be removed in v24.protected voidaddToPrefix(com.vaadin.flow.component.Component... components)Deprecated.since v23.3, generated classes will be removed in v24.protected voidcheckValidity(String value)Deprecated.since v23.3, generated classes will be removed in v24.protected voidclose()Deprecated.since v23.3, generated classes will be removed in v24.protected StringgetErrorMessageString()Deprecated.since v23.3, generated classes will be removed in v24.protected elemental.json.JsonObjectgetI18nJsonObject()Deprecated.since v23.3, generated classes will be removed in v24.protected StringgetInitialPositionString()Deprecated.since v23.3, generated classes will be removed in v24.protected StringgetLabelString()Deprecated.since v23.3, generated classes will be removed in v24.protected StringgetMaxAsStringString()Deprecated.since v23.3, generated classes will be removed in v24.protected StringgetMinAsStringString()Deprecated.since v23.3, generated classes will be removed in v24.protected StringgetNameString()Deprecated.since v23.3, generated classes will be removed in v24.protected StringgetPlaceholderString()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisAutofocusBoolean()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisDisabledBoolean()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisInvalidBoolean()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisOpenedBoolean()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisReadonlyBoolean()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisRequiredBoolean()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisShowWeekNumbersBoolean()Deprecated.since v23.3, generated classes will be removed in v24.protected voidopen()Deprecated.since v23.3, generated classes will be removed in v24.protected voidremove(com.vaadin.flow.component.Component... components)Deprecated.since v23.3, generated classes will be removed in v24.protected voidremoveAll()Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetAutofocus(boolean autofocus)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetDisabled(boolean disabled)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetErrorMessage(String errorMessage)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetI18n(elemental.json.JsonObject i18n)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetInitialPosition(String initialPosition)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetInvalid(boolean invalid)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetLabel(String label)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetMaxAsString(String maxAsString)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetMinAsString(String minAsString)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetName(String name)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetOpened(boolean opened)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetPlaceholder(String placeholder)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetReadonly(boolean readonly)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetRequired(boolean required)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetShowWeekNumbers(boolean showWeekNumbers)Deprecated.since v23.3, generated classes will be removed in v24.protected voidvalidate(String value)Deprecated.since v23.3, generated classes will be removed in v24.-
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.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndex
-
-
-
-
Constructor Detail
-
GeneratedVaadinDatePicker
@Deprecated public GeneratedVaadinDatePicker(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableFunction<P,T> presentationToModel, com.vaadin.flow.function.SerializableFunction<T,P> modelToPresentation, boolean isInitialValueOptional)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinDatePicker 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 valueisInitialValueOptional- ifisInitialValueOptionalistruethen 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
-
GeneratedVaadinDatePicker
@Deprecated public GeneratedVaadinDatePicker(T initialValue, T defaultValue, boolean acceptNullValues)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinDatePicker 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- whethernullis accepted as a model value
-
GeneratedVaadinDatePicker
@Deprecated public GeneratedVaadinDatePicker(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableBiFunction<R,P,T> presentationToModel, com.vaadin.flow.function.SerializableBiFunction<R,T,P> modelToPresentation)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinDatePicker 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
-
GeneratedVaadinDatePicker
@Deprecated public GeneratedVaadinDatePicker()
Deprecated.since v23.3, generated classes will be removed in v24.Default constructor.
-
-
Method Detail
-
isAutofocusBoolean
@Deprecated protected boolean isAutofocusBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Specify that this control should have input focus when the page loads.
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
autofocusproperty from the webcomponent
-
setAutofocus
@Deprecated protected void setAutofocus(boolean autofocus)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Specify that this control should have input focus when the page loads.
- Parameters:
autofocus- the boolean value to set
-
isDisabledBoolean
@Deprecated protected boolean isDisabledBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Set to true to disable this element.
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
disabledproperty from the webcomponent
-
setDisabled
@Deprecated protected void setDisabled(boolean disabled)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Set to true to disable this element.
- Parameters:
disabled- the boolean value to set
-
isRequiredBoolean
@Deprecated protected boolean isRequiredBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Set to true to mark the input as required.
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
requiredproperty from the webcomponent
-
setRequired
@Deprecated protected void setRequired(boolean required)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Set to true to mark the input as required.
- Parameters:
required- the boolean value to set
-
getNameString
@Deprecated protected String getNameString()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The name of this element.
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
nameproperty from the webcomponent
-
setName
@Deprecated protected void setName(String name)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The name of this element.
- Parameters:
name- the String value to set
-
getInitialPositionString
@Deprecated protected String getInitialPositionString()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Date which should be visible when there is no value selected.
The same date formats as for the
valueproperty are supported.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
initialPositionproperty from the webcomponent
-
setInitialPosition
@Deprecated protected void setInitialPosition(String initialPosition)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Date which should be visible when there is no value selected.
The same date formats as for the
valueproperty are supported.- Parameters:
initialPosition- the String value to set
-
getLabelString
@Deprecated protected String getLabelString()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The label for this element.
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
labelproperty from the webcomponent
-
setLabel
@Deprecated protected void setLabel(String label)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The label for this element.
- Parameters:
label- the String value to set
-
isOpenedBoolean
@Deprecated @Synchronize(property="opened", value="opened-changed") protected boolean isOpenedBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Set true to open the date selector overlay.
This property is synchronized automatically from client side when a 'opened-changed' event happens.
- Returns:
- the
openedproperty from the webcomponent
-
setOpened
@Deprecated protected void setOpened(boolean opened)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Set true to open the date selector overlay.
- Parameters:
opened- the boolean value to set
-
isShowWeekNumbersBoolean
@Deprecated protected boolean isShowWeekNumbersBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Set true to display ISO-8601 week numbers in the calendar. Notice that displaying week numbers is only supported when
i18n.firstDayOfWeekis 1 (Monday).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
showWeekNumbersproperty from the webcomponent
-
setShowWeekNumbers
@Deprecated protected void setShowWeekNumbers(boolean showWeekNumbers)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Set true to display ISO-8601 week numbers in the calendar. Notice that displaying week numbers is only supported when
i18n.firstDayOfWeekis 1 (Monday).- Parameters:
showWeekNumbers- the boolean value to set
-
getI18nJsonObject
@Deprecated protected elemental.json.JsonObject getI18nJsonObject()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The object used to localize this component. To change the default localization, replace the entire i18n object or just the property you want to modify.
The object has the following JSON structure and default values:
{ // An array with the full names of months starting // with January. monthNames: [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ], // An array of weekday names starting with Sunday. Used // in screen reader announcements. weekdays: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ], // An array of short weekday names starting with Sunday. // Displayed in the calendar. weekdaysShort: [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ], // An integer indicating the first day of the week // (0 = Sunday, 1 = Monday, etc.). firstDayOfWeek: 0, // Used in screen reader announcements along with week // numbers, if they are displayed. week: 'Week', // Translation of the Calendar icon button title. calendar: 'Calendar', // Translation of the Clear icon button title. clear: 'Clear', // Translation of the Today shortcut button text. today: 'Today', // Translation of the Cancel button text. cancel: 'Cancel', // A function to format given Object as date string. Object is in the format { day: ..., month: ..., year: ... } // Note: The argument month is 0-based. This means that January = 0 and December = 11. formatDate: d => { // returns a string representation of the given // object in 'MM/DD/YYYY' -format }, // A function to parse the given text to an Object in the format { day: ..., month: ..., year: ... }. // Must properly parse (at least) text formatted by formatDate. // Setting the property to null will disable keyboard input feature. // Note: The argument month is 0-based. This means that January = 0 and December = 11. parseDate: text => { // Parses a string in 'MM/DD/YY', 'MM/DD' or 'DD' -format to // an Object in the format { day: ..., month: ..., year: ... }. } // A function to format given monthName abd fullYear integer as calendar title string. formatTitle: (monthName, fullYear) => { return monthName + ' ' + fullYear; } }<p>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
i18nproperty from the webcomponent
-
setI18n
@Deprecated protected void setI18n(elemental.json.JsonObject i18n)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The object used to localize this component. To change the default localization, replace the entire i18n object or just the property you want to modify.
The object has the following JSON structure and default values:
{ // An array with the full names of months starting // with January. monthNames: [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ], // An array of weekday names starting with Sunday. Used // in screen reader announcements. weekdays: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ], // An array of short weekday names starting with Sunday. // Displayed in the calendar. weekdaysShort: [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ], // An integer indicating the first day of the week // (0 = Sunday, 1 = Monday, etc.). firstDayOfWeek: 0, // Used in screen reader announcements along with week // numbers, if they are displayed. week: 'Week', // Translation of the Calendar icon button title. calendar: 'Calendar', // Translation of the Clear icon button title. clear: 'Clear', // Translation of the Today shortcut button text. today: 'Today', // Translation of the Cancel button text. cancel: 'Cancel', // A function to format given Object as date string. Object is in the format { day: ..., month: ..., year: ... } // Note: The argument month is 0-based. This means that January = 0 and December = 11. formatDate: d => { // returns a string representation of the given // object in 'MM/DD/YYYY' -format }, // A function to parse the given text to an Object in the format { day: ..., month: ..., year: ... }. // Must properly parse (at least) text formatted by formatDate. // Setting the property to null will disable keyboard input feature. // Note: The argument month is 0-based. This means that January = 0 and December = 11. parseDate: text => { // Parses a string in 'MM/DD/YY', 'MM/DD' or 'DD' -format to // an Object in the format { day: ..., month: ..., year: ... }. } // A function to format given monthName and fullYear integer as calendar title string. formatTitle: (monthName, fullYear) => { return monthName + ' ' + fullYear; } }- Parameters:
i18n- the JsonObject value to set
-
getMinAsStringString
@Deprecated protected String getMinAsStringString()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The earliest date that can be selected. All earlier dates will be disabled.
Supported date formats:
- ISO 8601
"YYYY-MM-DD"(default) - 6-digit extended ISO 8601
"+YYYYYY-MM-DD","-YYYYYY-MM-DD"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
minproperty from the webcomponent
- ISO 8601
-
setMinAsString
@Deprecated protected void setMinAsString(String minAsString)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The earliest date that can be selected. All earlier dates will be disabled.
Supported date formats:
- ISO 8601
"YYYY-MM-DD"(default) - 6-digit extended ISO 8601
"+YYYYYY-MM-DD","-YYYYYY-MM-DD"
- Parameters:
minAsString- the String value to set
- ISO 8601
-
getMaxAsStringString
@Deprecated protected String getMaxAsStringString()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The latest date that can be selected. All later dates will be disabled.
Supported date formats:
- ISO 8601
"YYYY-MM-DD"(default) - 6-digit extended ISO 8601
"+YYYYYY-MM-DD","-YYYYYY-MM-DD"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
maxproperty from the webcomponent
- ISO 8601
-
setMaxAsString
@Deprecated protected void setMaxAsString(String maxAsString)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The latest date that can be selected. All later dates will be disabled.
Supported date formats:
- ISO 8601
"YYYY-MM-DD"(default) - 6-digit extended ISO 8601
"+YYYYYY-MM-DD","-YYYYYY-MM-DD"
- Parameters:
maxAsString- the String value to set
- ISO 8601
-
getErrorMessageString
@Deprecated protected String getErrorMessageString()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The error message to display when the input is invalid.
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
errorMessageproperty from the webcomponent
-
setErrorMessage
@Deprecated protected void setErrorMessage(String errorMessage)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The error message to display when the input is invalid.
- Parameters:
errorMessage- the String value to set
-
getPlaceholderString
@Deprecated protected String getPlaceholderString()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
A placeholder string in addition to the label. If this is set, the label will always float.
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
placeholderproperty from the webcomponent
-
setPlaceholder
@Deprecated protected void setPlaceholder(String placeholder)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
A placeholder string in addition to the label. If this is set, the label will always float.
- Parameters:
placeholder- the String value to set
-
isReadonlyBoolean
@Deprecated protected boolean isReadonlyBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Set to true to make this element read-only.
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
readonlyproperty from the webcomponent
-
setReadonly
@Deprecated protected void setReadonly(boolean readonly)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Set to true to make this element read-only.
- Parameters:
readonly- the boolean value to set
-
isInvalidBoolean
@Deprecated protected boolean isInvalidBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
This property is set to true when the control value invalid.
- Returns:
- the
invalidproperty from the webcomponent
-
setInvalid
@Deprecated protected void setInvalid(boolean invalid)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
This property is set to true when the control value invalid.
- Parameters:
invalid- the boolean value to set
-
open
@Deprecated protected void open()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Opens the dropdown.
-
close
@Deprecated protected void close()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Closes the dropdown.
-
validate
@Deprecated @NotSupported protected void validate(String value)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Returns true if
valueis valid, and sets theinvalidflag appropriately.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.- Parameters:
value- Value to validate. Optional, defaults to user's input value.
-
checkValidity
@Deprecated @NotSupported protected void checkValidity(String value)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Returns true if the current input value satisfies all constraints (if any)
Override the
checkValiditymethod for custom validations.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.- Parameters:
value- Value to validate. Optional, defaults to the selected date.
-
addChangeListener
@Deprecated protected com.vaadin.flow.shared.Registration addChangeListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinDatePicker.ChangeEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forchangeevents fired by the webcomponent.- Parameters:
listener- the listener- Returns:
- a
Registrationfor removing the event listener
-
addInvalidChangeListener
@Deprecated protected com.vaadin.flow.shared.Registration addInvalidChangeListener(com.vaadin.flow.component.ComponentEventListener<DatePicker.InvalidChangeEvent<DatePicker>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forinvalid-changedevents fired by the webcomponent.- Parameters:
listener- the listener- Returns:
- a
Registrationfor removing the event listener
-
addOpenedChangeListener
@Deprecated protected com.vaadin.flow.shared.Registration addOpenedChangeListener(com.vaadin.flow.component.ComponentEventListener<DatePicker.OpenedChangeEvent<DatePicker>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener foropened-changedevents fired by the webcomponent.- Parameters:
listener- the listener- Returns:
- a
Registrationfor removing the event listener
-
addToPrefix
@Deprecated protected void addToPrefix(com.vaadin.flow.component.Component... components)
Deprecated.since v23.3, generated classes will be removed in v24.Adds the given components as children of this component at the slot 'prefix'.- Parameters:
components- The components to add.- See Also:
- MDN page about slots, Spec website about slots
-
remove
@Deprecated protected void remove(com.vaadin.flow.component.Component... components)
Deprecated.since v23.3, generated classes will be removed in v24.Removes the given child components from this component.- Parameters:
components- The components to remove.- Throws:
IllegalArgumentException- if any of the components is not a child of this component.
-
removeAll
@Deprecated protected void removeAll()
Deprecated.since v23.3, generated classes will be removed in v24.Removes all contents from this component, this includes child components, text content as well as child elements that have been added directly to this component using theElementAPI.
-
-