Package com.vaadin.flow.data.provider
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 oneitemCountChanged(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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiditemCountChanged(ItemCountChangeEvent event)Invoked for changes in the data size.
-
-
-
Method Detail
-
itemCountChanged
void itemCountChanged(ItemCountChangeEvent event)
Invoked for changes in the data size.- Parameters:
event- Component event containing new data size
-
-