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 aHasValue
changes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HasValue<?,V>
getHasValue()
V
getOldValue()
Returns the value of the source before this value change event occurred.V
getValue()
Returns the new value that triggered this value change event.boolean
isFromClient()
Checks if this event originated from the client side.
-
-
-
Method Detail
-
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
-
-