Package com.vaadin.data.provider
Interface DataProviderListener<T>
-
- Type Parameters:
T- the data type
- All Superinterfaces:
EventListener,Serializable,SerializableEventListener
- 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 DataProviderListener<T> extends SerializableEventListener
Interface for listening for a data change events fired by aDataProvider.- Since:
- 8.0
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonDataChange(DataChangeEvent<T> event)Invoked when this listener receives a data change event from a data source to which it has been added.
-
-
-
Method Detail
-
onDataChange
void onDataChange(DataChangeEvent<T> event)
Invoked when this listener receives a data change event from a data source to which it has been added.This event is fired when something has changed in the underlying data. It doesn't allow to distinguish different kind of events (add/remove/update). It means that the method implementation normally just reloads the whole data to refresh.
- Parameters:
event- the received event, not null
-
-