Package 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>
An event fired when the value of a
HasValue changes.-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the source before this value change event occurred.getValue()Returns the new value that triggered this value change event.booleanChecks if this event originated from the client side.
-
Method Details
-
getHasValue
-
isFromClient
boolean isFromClient()Checks if this event originated from the client side.- Returns:
trueif the event originated from the client side,falseotherwise
-
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
-