T - the item data typepublic interface HasDataProvider<T> extends HasItems<T>
A listing component should implement either this interface or
HasFilterableDataProvider, but not both.
HasFilterableDataProvider| Modifier and Type | Method and Description |
|---|---|
void |
setDataProvider(DataProvider<T,?> dataProvider)
Sets the data provider for this listing.
|
default void |
setItems(Collection<T> items)
Sets the data items of this component provided as a collection.
|
void setDataProvider(DataProvider<T,?> dataProvider)
dataProvider - the data provider, not nulldefault void setItems(Collection<T> items)
HasItemsThe provided collection instance may be used as-is. Subsequent modification of the collection might cause inconsistent data to be shown in the component unless it is explicitly instructed to read the data again.
Copyright © 2025. All rights reserved.