Class HasValue.ValueChangeEvent<V>

java.lang.Object
java.util.EventObject
io.jmix.ui.component.HasValue.ValueChangeEvent<V>
All Implemented Interfaces:
HasUserOriginated, Serializable
Enclosing interface:
HasValue<V>

public static class HasValue.ValueChangeEvent<V> extends EventObject implements HasUserOriginated
Describes value change event.
See Also:
  • Constructor Details

    • ValueChangeEvent

      public ValueChangeEvent(HasValue component, V prevValue, V value)
    • ValueChangeEvent

      public ValueChangeEvent(Object source, @Nullable V prevValue, @Nullable V value, boolean userOriginated)
  • Method Details

    • getSource

      public HasValue<V> getSource()
      Overrides:
      getSource in class EventObject
    • getComponent

      public HasValue<V> getComponent()
      Returns:
      component
    • getPrevValue

      @Nullable public V getPrevValue()
      Returns:
      previous value
    • getValue

      @Nullable public V 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 interface HasUserOriginated
      Returns:
      true if this event originates by user interaction, false otherwise.