T - data typepublic class GridListDataView<T>
extends com.vaadin.flow.data.provider.AbstractListDataView<T>
| Constructor and Description |
|---|
GridListDataView(com.vaadin.flow.data.provider.DataCommunicator<T> dataCommunicator,
Grid<T> grid,
com.vaadin.flow.function.SerializableBiConsumer<com.vaadin.flow.function.SerializablePredicate<T>,com.vaadin.flow.function.SerializableComparator<T>> filterOrSortingChangedCallback)
Creates a new instance of Grid in-memory data view and verifies the
passed data provider is compatible with this data view implementation.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getItemCount() |
Stream<T> |
getItems() |
void |
setIdentifierProvider(com.vaadin.flow.data.provider.IdentifierProvider<T> identifierProvider) |
addFilter, addItem, addItemAfter, addItemBefore, addItems, addItemsAfter, addItemsBefore, addSortComparator, addSortOrder, contains, getDataProvider, getItem, getNextItem, getPreviousItem, getSupportedDataProviderType, removeFilters, removeItem, removeItems, removeSorting, setFilter, setSortComparator, setSortOrder, validateItemIndexaddItemCountChangeListener, equals, getIdentifierProvider, refreshAll, refreshItem, verifyDataProviderTypepublic GridListDataView(com.vaadin.flow.data.provider.DataCommunicator<T> dataCommunicator, Grid<T> grid, com.vaadin.flow.function.SerializableBiConsumer<com.vaadin.flow.function.SerializablePredicate<T>,com.vaadin.flow.function.SerializableComparator<T>> filterOrSortingChangedCallback)
dataCommunicator - the data communicator of the Grid, not nullgrid - the Grid component, not nullfilterOrSortingChangedCallback - callback, which is being invoked when the Grid's filtering or
sorting changes, not nullCopyright © 2023. All rights reserved.