com.vaadin.flow.component.

Interface HasValue.ValueChangeEvent<V>

Type Parameters:

V - the value type

All Superinterfaces:

Serializable

All Known Implementing Classes:

AbstractField.ComponentValueChangeEvent, MultiSelectionEvent, SingleSelectionEvent

Enclosing interface:

HasValue<E extends HasValue.ValueChangeEvent<V>,V>

public static interface HasValue.ValueChangeEvent<V> extends Serializable

An event fired when the value of a HasValue changes.

  • Method Summary

    Modifier and Type
    Method
    Description
     

    Returns the value of the source before this value change event occurred.

    Returns the new value that triggered this value change event.

    boolean

    Checks if this event originated from the client side.

  • Method Details

    • getHasValue

      HasValue<?,V> getHasValue()
    • isFromClient

      boolean isFromClient()

      Checks if this event originated from the client side.

      Returns:

      true if the event originated from the client side, false otherwise

    • getOldValue

      V getOldValue()

      Returns the value of the source before this value change event occurred.

      Returns:

      the value previously held by the source of this event

    • getValue

      V getValue()

      Returns the new value that triggered this value change event.

      Returns:

      the new value