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>
public static interface HasValue.ValueChangeEvent<V> extends Serializable
An event fired when the value of aHasValuechanges.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HasValue<?,V>getHasValue()VgetOldValue()Returns the value of the source before this value change event occurred.VgetValue()Returns the new value that triggered this value change event.booleanisFromClient()Checks if this event originated from the client side.
-
-
-
Method Detail
-
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
-
-