Class InstanceContainer.ItemChangeEvent<T>

java.lang.Object
java.util.EventObject
io.jmix.ui.model.InstanceContainer.ItemChangeEvent<T>
All Implemented Interfaces:
Serializable
Enclosing interface:
InstanceContainer<E>

public static class InstanceContainer.ItemChangeEvent<T> extends EventObject
Event sent when the entity instance selected in the container is replaced with another instance or null.
See Also:
  • Constructor Details

    • ItemChangeEvent

      public ItemChangeEvent(InstanceContainer<T> container, @Nullable T prevItem, @Nullable T item)
  • Method Details

    • getSource

      public InstanceContainer<T> getSource()
      Returns the container which sent the event.
      Overrides:
      getSource in class EventObject
    • getItem

      @Nullable public T getItem()
      Returns the currently selected entity instance.
    • getPrevItem

      @Nullable public T getPrevItem()
      Returns the previously selected entity instance.
    • toString

      public String toString()
      Overrides:
      toString in class EventObject