Package io.jmix.ui.component
Class HasValue.ValueChangeEvent<V>
java.lang.Object
java.util.EventObject
io.jmix.ui.component.HasValue.ValueChangeEvent<V>
- All Implemented Interfaces:
HasUserOriginated
,Serializable
Describes value change event.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionValueChangeEvent
(HasValue component, V prevValue, V value) ValueChangeEvent
(Object source, V prevValue, V value, boolean userOriginated) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
boolean
Returns whether this event was triggered by user interaction or programmatically.Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ValueChangeEvent
-
ValueChangeEvent
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
-
getComponent
- Returns:
- component
-
getPrevValue
- Returns:
- previous value
-
getValue
- Returns:
- current value
-
isUserOriginated
public boolean isUserOriginated()Description copied from interface:HasUserOriginated
Returns whether this event was triggered by user interaction or programmatically.- Specified by:
isUserOriginated
in interfaceHasUserOriginated
- Returns:
true
if this event originates by user interaction,false
otherwise.
-