Package com.vaadin.ui

Class InlineDateField

    • Constructor Detail

      • InlineDateField

        public InlineDateField()
        Constructs an empty InlineDateField with no caption.
      • InlineDateField

        public InlineDateField​(java.lang.String caption,
                               java.time.LocalDate value)
        Constructs a new InlineDateField with the given caption and initial text contents.
        Parameters:
        caption - the caption String for the editor.
        value - the LocalDate value.
      • InlineDateField

        public InlineDateField​(java.lang.String caption)
        Constructs an empty InlineDateField with caption.
        Parameters:
        caption - the caption of the datefield.
      • InlineDateField

        public InlineDateField​(HasValue.ValueChangeListener<java.time.LocalDate> valueChangeListener)
        Constructs a new InlineDateField with a value change listener.

        The listener is called when the value of this InlineDateField is changed either by the user or programmatically.

        Parameters:
        valueChangeListener - the value change listener, not null
      • InlineDateField

        public InlineDateField​(java.lang.String caption,
                               HasValue.ValueChangeListener<java.time.LocalDate> valueChangeListener)
        Constructs a new InlineDateField with the given caption and a value change listener.

        The listener is called when the value of this InlineDateField is changed either by the user or programmatically.

        Parameters:
        caption - the caption for the field
        valueChangeListener - the value change listener, not null
      • InlineDateField

        public InlineDateField​(java.lang.String caption,
                               java.time.LocalDate value,
                               HasValue.ValueChangeListener<java.time.LocalDate> valueChangeListener)
        Constructs a new InlineDateField with the given caption, initial text contents and a value change listener.

        The listener is called when the value of this InlineDateField is changed either by the user or programmatically.

        Parameters:
        caption - the caption for the field
        value - the value for the field, not null
        valueChangeListener - the value change listener, not null
    • Method Detail

      • getState

        protected com.vaadin.shared.ui.datefield.InlineDateFieldState getState()
        Description copied from class: AbstractComponent
        Returns the shared state bean with information to be sent from the server to the client. Subclasses should override this method and set any relevant fields of the state returned by super.getState().
        Overrides:
        getState in class AbstractLocalDateField
        Returns:
        updated component shared state
      • getState

        protected com.vaadin.shared.ui.datefield.InlineDateFieldState getState​(boolean markAsDirty)
        Description copied from class: AbstractClientConnector
        Returns the shared state for this connector.
        Overrides:
        getState in class AbstractLocalDateField
        Parameters:
        markAsDirty - true if the connector should automatically be marked dirty, false otherwise
        Returns:
        The shared state for this connector. Never null.
        See Also:
        AbstractClientConnector.getState()