Package com.vaadin.ui

Class InlineDateTimeField

    • Constructor Detail

      • InlineDateTimeField

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

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

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

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

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

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

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

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

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

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

        The listener is called when the value of this InlineDateTimeField 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.InlineDateTimeFieldState 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 AbstractLocalDateTimeField
        Returns:
        updated component shared state
      • getState

        protected com.vaadin.shared.ui.datefield.InlineDateTimeFieldState getState​(boolean markAsDirty)
        Description copied from class: AbstractClientConnector
        Returns the shared state for this connector.
        Overrides:
        getState in class AbstractLocalDateTimeField
        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()