Class EntityValueSource.InstanceChangeEvent<E>

java.lang.Object
java.util.EventObject
io.jmix.ui.component.data.meta.EntityValueSource.InstanceChangeEvent<E>
Type Parameters:
E - entity type
All Implemented Interfaces:
Serializable
Enclosing interface:
EntityValueSource<E,V>

public static class EntityValueSource.InstanceChangeEvent<E> extends EventObject
An event fired when related entity instance is changed.
See Also:
  • Constructor Details

    • InstanceChangeEvent

      public InstanceChangeEvent(EntityValueSource<E,?> source, @Nullable E prevItem, @Nullable E item)
  • Method Details

    • getSource

      public EntityValueSource<E,?> getSource()
      Overrides:
      getSource in class EventObject
    • getItem

      @Nullable public E getItem()
      Returns:
      current item
    • getPrevItem

      @Nullable public E getPrevItem()
      Returns:
      previous selected item