Interface ItemCountChangeListener

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ItemCountChangeListener extends Serializable
Listener interface for getting updates on data item count changes.

Items count changes are mostly due to filtering of the data, but can also be sent for changes in the dataset.

The itemCountChanged(ItemCountChangeEvent) will be called during the "before client response"-phase, so changes done during the server round trip will only receive one event. For example, this code will trigger only one itemCountChanged(ItemCountChangeEvent) method call, although there are two methods called which cause the item count change:

 
 dataView.addItemCountChangeListener(listener);
 dataView.addItem(newItem);
 dataView.setFilter(filter);
 
 
Since:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked for changes in the data size.
  • Method Details

    • itemCountChanged

      void itemCountChanged(ItemCountChangeEvent event)
      Invoked for changes in the data size.
      Parameters:
      event - Component event containing new data size