@JsModule(value="./super-date-time-picker.js")
@Tag(value="super-date-time-picker")
@CssImport(value="./styles/label-positions-custom-field.css",
themeFor="vaadin-date-time-picker-custom-field")
public class SuperDateTimePicker
extends com.vaadin.flow.component.datetimepicker.DateTimePicker
implements WithLabelPositionableMixin<SuperDateTimePicker>, WithLocaleMixin<SuperDateTimePicker>, WithLabelMixin<SuperDateTimePicker>, WithDatePatternMixin<SuperDateTimePicker>, WithIdMixin<SuperDateTimePicker>, WithValueMixin<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datetimepicker.DateTimePicker,LocalDateTime>,LocalDateTime,SuperDateTimePicker>, WithHelperMixin<SuperDateTimePicker>, WithHelperPositionableMixin<SuperDateTimePicker>
DateTimePicker that handles I18N also on the client side.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<?>>com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>LABEL_POSITION_ATTRIBUTE, LABEL_POSITION_DETAILS_ATTRIBUTEHELPER_ABOVE_THEME_VARIANT| Constructor and Description |
|---|
SuperDateTimePicker() |
SuperDateTimePicker(com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datetimepicker.DateTimePicker,LocalDateTime>> listener) |
SuperDateTimePicker(LocalDateTime initialDateTime) |
SuperDateTimePicker(LocalDateTime initialDateTime,
com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datetimepicker.DateTimePicker,LocalDateTime>> listener) |
SuperDateTimePicker(LocalDateTime initialDateTime,
Locale locale) |
SuperDateTimePicker(Locale locale) |
SuperDateTimePicker(String label) |
SuperDateTimePicker(String label,
com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datetimepicker.DateTimePicker,LocalDateTime>> listener) |
SuperDateTimePicker(String label,
LocalDateTime initialDateTime) |
SuperDateTimePicker(String label,
LocalDateTime initialDateTime,
com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datetimepicker.DateTimePicker,LocalDateTime>> listener) |
| Modifier and Type | Method and Description |
|---|---|
DatePattern |
getDatePattern()
Returns current date pattern.
|
Optional<com.vaadin.flow.component.datepicker.DatePicker> |
getInternalDatePicker()
Exposes an internal
DatePicker, if it was successfully obtained through reflection. |
Optional<com.vaadin.flow.component.timepicker.TimePicker> |
getInternalTimePicker()
Exposes an internal
TimePicker, if it was successfully obtained through reflection. |
SuperDatePickerI18n |
getSuperDatePickerI18n()
Returns the current instance of the
SuperDatePickerI18n associated with this object. |
void |
setDatePattern(DatePattern pattern)
Sets new date pattern to use when displaying and parsing dates.
|
void |
setDatePickerI18n(com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n i18n) |
void |
setLabelPosition(LabelPosition position)
Sets the label position to a new one.
|
void |
setLocale(Locale locale)
Sets new locale for this object.
|
addThemeName, addThemeNames, addValidationStatusChangeListener, getDatePickerI18n, getDatePlaceholder, getDefaultValidator, getErrorMessage, getLabel, getLocale, getMax, getMin, getStep, getTimePlaceholder, isAutoOpen, isEnforcedFieldValidationEnabled, isInvalid, isWeekNumbersVisible, onAttach, removeThemeName, removeThemeNames, setAutoOpen, setDatePlaceholder, setErrorMessage, setInvalid, setLabel, setMax, setMin, setReadOnly, setRequiredIndicatorVisible, setStep, setThemeName, setThemeName, setTimePlaceholder, setValue, setWeekNumbersVisible, validategetSynchronizationRegistration, hasValidValue, setPresentationValue, setSynchronizedEventaddValueChangeListener, getEmptyValue, getValue, isEmpty, setModelValue, valueEqualsaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithLabelPositiongetLabelPositionwithLocalewithLabelwithDatePatternwithIdwithValueaddValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible, setValuewithHelperComponent, withHelperTextgetHelperComponent, getHelperText, setHelperComponent, setHelperTextwithHelperAbove, withHelperAbove, withHelperBelowisHelperAbove, setHelperAbove, setHelperAbove, setHelperBelowaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNamegetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullgetThemeName, getThemeNames, hasThemeNameaddFocusShortcut, blur, focus, getTabIndex, setTabIndexaddClientValidatedEventListenerpublic SuperDateTimePicker()
public SuperDateTimePicker(Locale locale)
public SuperDateTimePicker(String label)
public SuperDateTimePicker(String label, LocalDateTime initialDateTime)
public SuperDateTimePicker(LocalDateTime initialDateTime)
public SuperDateTimePicker(com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datetimepicker.DateTimePicker,LocalDateTime>> listener)
public SuperDateTimePicker(String label, com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datetimepicker.DateTimePicker,LocalDateTime>> listener)
public SuperDateTimePicker(LocalDateTime initialDateTime, com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datetimepicker.DateTimePicker,LocalDateTime>> listener)
public SuperDateTimePicker(String label, LocalDateTime initialDateTime, com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datetimepicker.DateTimePicker,LocalDateTime>> listener)
public SuperDateTimePicker(LocalDateTime initialDateTime, Locale locale)
public void setLocale(Locale locale)
HasLocalepublic Optional<com.vaadin.flow.component.datepicker.DatePicker> getInternalDatePicker()
DatePicker, if it was successfully obtained through reflection.DatePicker used by this component, if possible.public Optional<com.vaadin.flow.component.timepicker.TimePicker> getInternalTimePicker()
TimePicker, if it was successfully obtained through reflection.TimePicker used by this component, if possible.public void setDatePattern(DatePattern pattern)
HasDatePatternsetDatePattern in interface HasDatePatternpattern - A pattern to use. Can be null, which will reset the pattern to whatever is supported by default.public DatePattern getDatePattern()
HasDatePatterngetDatePattern in interface HasDatePatternDatePattern. May be null.public SuperDatePickerI18n getSuperDatePickerI18n()
SuperDatePickerI18n associated with this object.null instance.public void setDatePickerI18n(com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n i18n)
setDatePickerI18n in class com.vaadin.flow.component.datetimepicker.DateTimePickerpublic void setLabelPosition(LabelPosition position)
HasLabelPositionablesetLabelPosition in interface HasLabelPositionableposition - A position to use. Setting null will reset it to the default setting.Copyright © 2024 Miki. All rights reserved.