Class AbstractInMemoryContainer.BaseItemAddEvent

java.lang.Object
java.util.EventObject
com.vaadin.featurepack.data.util.AbstractInMemoryContainer.BaseItemAddEvent
All Implemented Interfaces:
Container.Indexed.ItemAddEvent, Container.ItemSetChangeEvent, Serializable
Enclosing class:
AbstractInMemoryContainer<ITEMIDTYPE,PROPERTYIDCLASS,ITEMCLASS extends Item>

protected static class AbstractInMemoryContainer.BaseItemAddEvent extends EventObject implements Container.Indexed.ItemAddEvent
An Event object specifying information about the added items.

This class provides information about the first added item and the number of added items.

Since:
7.4
See Also:
  • Field Details

    • itemId

      protected Object itemId
    • index

      protected int index
    • count

      protected int count
  • Constructor Details

    • BaseItemAddEvent

      public BaseItemAddEvent(Container source, Object itemId, int index, int count)
  • Method Details

    • getAddedItemsCount

      public int getAddedItemsCount()
      Description copied from interface: Container.Indexed.ItemAddEvent
      Gets the number of the added items.
      Specified by:
      getAddedItemsCount in interface Container.Indexed.ItemAddEvent
      Returns:
      the number of added items.
    • getContainer

      public Container getContainer()
    • getFirstItemId

      public Object getFirstItemId()
    • getFirstIndex

      public int getFirstIndex()
    • getAffectedItemsCount

      public int getAffectedItemsCount()