Class SuperDatePicker

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vaadin.flow.component.datepicker.DatePicker

        com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n, com.vaadin.flow.component.datepicker.DatePicker.InvalidChangeEvent<T extends com.vaadin.flow.component.datepicker.GeneratedVaadinDatePicker<T,​?>>, com.vaadin.flow.component.datepicker.DatePicker.OpenedChangeEvent<T extends com.vaadin.flow.component.datepicker.GeneratedVaadinDatePicker<T,​?>>
      • Nested classes/interfaces inherited from class com.vaadin.flow.component.datepicker.GeneratedVaadinDatePicker

        com.vaadin.flow.component.datepicker.GeneratedVaadinDatePicker.ChangeEvent<R extends com.vaadin.flow.component.datepicker.GeneratedVaadinDatePicker<R,​?>>
      • 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.shared.HasClientValidation

        com.vaadin.flow.component.shared.HasClientValidation.ClientValidatedEvent
      • 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<?>>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.vaadin.flow.shared.Registration addTextSelectionListener​(TextSelectionListener<SuperDatePicker> listener)
      Adds the listener.
      DatePattern getDatePattern()
      Returns current date pattern.
      String getFormattedValue()
      Returns the current value formatted with current locale or pattern.
      SuperDatePickerI18n getSuperDatePickerI18n()  
      boolean isReceivingSelectionEventsFromClient()
      Check if client will inform server on selection change.
      protected void onAttach​(com.vaadin.flow.component.AttachEvent attachEvent)  
      protected void onDetach​(com.vaadin.flow.component.DetachEvent detachEvent)  
      void select​(int from, int to)
      Selects text starting from index from (inclusive) and ending at index to (exclusive).
      void selectAll()
      Selects entire text in the component.
      void selectNone()
      Removes the current selection and selects no text.
      void setDatePattern​(DatePattern datePattern)
      Sets new date pattern to use when displaying and parsing dates.
      void setI18n​(com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n i18n)  
      void setLocale​(Locale locale)
      Sets new locale for this object.
      void setReceivingSelectionEventsFromClient​(boolean receivingSelectionEventsFromClient)
      Configures sending events by the client-side component.
      • Methods inherited from class com.vaadin.flow.component.datepicker.DatePicker

        addInvalidChangeListener, addOpenedChangeListener, addThemeVariants, addValidationStatusChangeListener, close, getDefaultValidator, getErrorMessage, getI18n, getInitialPosition, getLabel, getLocale, getMax, getMin, getName, getPlaceholder, isAutoOpen, isFeatureFlagEnabled, isInvalid, isOpened, isRequired, isWeekNumbersVisible, open, removeThemeVariants, setAutoOpen, setErrorMessage, setInitialPosition, setInvalid, setLabel, setMax, setMin, setName, setOpened, setPlaceholder, setRequired, setRequiredIndicatorVisible, setValue, setWeekNumbersVisible, validate
      • Methods inherited from class com.vaadin.flow.component.datepicker.GeneratedVaadinDatePicker

        addChangeListener, addToPrefix, checkValidity, getErrorMessageString, getI18nJsonObject, getInitialPositionString, getLabelString, getMaxAsStringString, getMinAsStringString, getNameString, getPlaceholderString, isAutofocusBoolean, isDisabledBoolean, isInvalidBoolean, isOpenedBoolean, isReadonlyBoolean, isRequiredBoolean, isShowWeekNumbersBoolean, remove, removeAll, setAutofocus, setDisabled, setI18n, setInitialPosition, setMaxAsString, setMinAsString, setReadonly, setShowWeekNumbers, 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, valueEquals
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
      • 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.shared.HasAllowedCharPattern

        getAllowedCharPattern, setAllowedCharPattern
      • Methods inherited from interface com.vaadin.flow.component.shared.HasClearButton

        isClearButtonVisible, setClearButtonVisible
      • Methods inherited from interface com.vaadin.flow.component.shared.HasClientValidation

        addClientValidatedEventListener
      • 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.HasHelper

        getHelperComponent, getHelperText, setHelperComponent, setHelperText
      • Methods inherited from interface com.vaadin.flow.component.HasLabel

        getLabel, setLabel
      • Methods inherited from interface com.vaadin.flow.component.HasSize

        getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
      • 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.HasTheme

        addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
      • Methods inherited from interface com.vaadin.flow.component.shared.HasTooltip

        getTooltip, setTooltipText
      • Methods inherited from interface com.vaadin.flow.component.HasValue

        addValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, setValue
      • Methods inherited from interface com.vaadin.flow.component.HasValueAndElement

        isReadOnly, isRequiredIndicatorVisible, setReadOnly
    • Constructor Detail

      • SuperDatePicker

        public SuperDatePicker()
      • SuperDatePicker

        public SuperDatePicker​(Locale locale)
      • SuperDatePicker

        public SuperDatePicker​(LocalDate initialDate)
      • SuperDatePicker

        public SuperDatePicker​(String label)
      • SuperDatePicker

        public SuperDatePicker​(String label,
                               LocalDate initialDate)
      • SuperDatePicker

        public SuperDatePicker​(com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datepicker.DatePicker,​LocalDate>> listener)
      • SuperDatePicker

        public SuperDatePicker​(String label,
                               com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datepicker.DatePicker,​LocalDate>> listener)
      • SuperDatePicker

        public SuperDatePicker​(LocalDate initialDate,
                               com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datepicker.DatePicker,​LocalDate>> listener)
      • SuperDatePicker

        public SuperDatePicker​(String label,
                               LocalDate initialDate,
                               com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datepicker.DatePicker,​LocalDate>> listener)
      • SuperDatePicker

        public SuperDatePicker​(LocalDate initialDate,
                               Locale locale)
    • Method Detail

      • setLocale

        public final void setLocale​(Locale locale)
        Description copied from interface: HasLocale
        Sets new locale for this object.
        Specified by:
        setLocale in interface HasLocale
        Overrides:
        setLocale in class com.vaadin.flow.component.datepicker.DatePicker
        Parameters:
        locale - Locale to use. Should not be null.
      • setDatePattern

        public void setDatePattern​(DatePattern datePattern)
        Description copied from interface: HasDatePattern
        Sets new date pattern to use when displaying and parsing dates. It may reset the value currently displayed in the component.
        Specified by:
        setDatePattern in interface HasDatePattern
        Parameters:
        datePattern - A pattern to use. Can be null, which will reset the pattern to whatever is supported by default.
      • onAttach

        protected void onAttach​(com.vaadin.flow.component.AttachEvent attachEvent)
        Overrides:
        onAttach in class com.vaadin.flow.component.datepicker.DatePicker
      • onDetach

        protected void onDetach​(com.vaadin.flow.component.DetachEvent detachEvent)
        Overrides:
        onDetach in class com.vaadin.flow.component.Component
      • setReceivingSelectionEventsFromClient

        public void setReceivingSelectionEventsFromClient​(boolean receivingSelectionEventsFromClient)
        Description copied from interface: CanReceiveSelectionEventsFromClient
        Configures sending events by the client-side component. Note: this feature is by default turned off.
        Specified by:
        setReceivingSelectionEventsFromClient in interface CanReceiveSelectionEventsFromClient
        Parameters:
        receivingSelectionEventsFromClient - When false, selecting text in client-side component will not send an event to server-side component. When true, it will.
      • getFormattedValue

        public String getFormattedValue()
        Returns the current value formatted with current locale or pattern.
        Returns:
        Current date, formatted. Will return null if the current date is null.
      • selectAll

        public void selectAll()
        Description copied from interface: CanSelectText
        Selects entire text in the component.
        Specified by:
        selectAll in interface CanSelectText
      • selectNone

        public void selectNone()
        Description copied from interface: CanSelectText
        Removes the current selection and selects no text.
        Specified by:
        selectNone in interface CanSelectText
      • select

        public void select​(int from,
                           int to)
        Description copied from interface: CanSelectText
        Selects text starting from index from (inclusive) and ending at index to (exclusive).
        Specified by:
        select in interface CanSelectText
        Parameters:
        from - Starting index (inclusive).
        to - Ending index (exclusive).
      • setI18n

        public void setI18n​(com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n i18n)
        Overrides:
        setI18n in class com.vaadin.flow.component.datepicker.DatePicker