Interface EntityItems<E>

All Superinterfaces:
DataUnit, EntityDataUnit
All Known Implementing Classes:
ContainerDataProvider

public interface EntityItems<E> extends EntityDataUnit
  • Method Details

    • setSelectedItem

      void setSelectedItem(@Nullable E item)
      Set current item in the source.
      Parameters:
      item - the item to set
    • containsItem

      boolean containsItem(@Nullable E item)
      Returns:
      true if the underlying collection contains an item with the specified ID
    • updateItem

      void updateItem(E item)
      Update an item in the collection if it is already there.
    • refresh

      void refresh()
      Refreshes the source moving it to the BindingState.ACTIVE state
    • addItemsChangeListener

      com.vaadin.flow.shared.Registration addItemsChangeListener(Consumer<EntityItems.ItemsChangeEvent<E>> listener)
      Adds an items change listener. The listener is called when the item collection is changed.
      Parameters:
      listener - a listener to register, not null
      Returns:
      a registration for the listener