T - item typepublic class SelectListDataView<T>
extends com.vaadin.flow.data.provider.AbstractListDataView<T>
Select with in-memory list data.
Provides information on the data and allows operations on it.| Constructor and Description |
|---|
SelectListDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier,
Select<T> select,
com.vaadin.flow.function.SerializableBiConsumer<com.vaadin.flow.function.SerializablePredicate<T>,com.vaadin.flow.function.SerializableComparator<T>> filterOrSortingChangedCallback)
Creates a new in-memory data view for Select and verifies the passed data
provider is compatible with this data view implementation.
|
SelectListDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier,
Select<T> select,
com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.data.provider.IdentifierProvider<T>> identifierChangedCallback,
com.vaadin.flow.function.SerializableBiConsumer<com.vaadin.flow.function.SerializablePredicate<T>,com.vaadin.flow.function.SerializableComparator<T>> filterOrSortingChangedCallback)
Creates a new in-memory data view for Select and verifies the passed data
provider is compatible with this data view implementation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setIdentifierProvider(com.vaadin.flow.data.provider.IdentifierProvider<T> identifierProvider) |
addFilter, addItem, addItemAfter, addItemBefore, addItems, addItemsAfter, addItemsBefore, addSortComparator, addSortOrder, contains, getDataProvider, getItem, getItemCount, getItems, getNextItem, getPreviousItem, getSupportedDataProviderType, removeFilters, removeItem, removeItems, removeSorting, setFilter, setSortComparator, setSortOrder, validateItemIndexaddItemCountChangeListener, equals, getIdentifierProvider, refreshAll, refreshItem, verifyDataProviderTypepublic SelectListDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, Select<T> select, com.vaadin.flow.function.SerializableBiConsumer<com.vaadin.flow.function.SerializablePredicate<T>,com.vaadin.flow.function.SerializableComparator<T>> filterOrSortingChangedCallback)
dataProviderSupplier - supplier from which the DataProvider can be gottenselect - select component that the dataView is bound tofilterOrSortingChangedCallback - callback, which is being invoked when the Select's filtering
or sorting changes, not nullpublic SelectListDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, Select<T> select, com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.data.provider.IdentifierProvider<T>> identifierChangedCallback, com.vaadin.flow.function.SerializableBiConsumer<com.vaadin.flow.function.SerializablePredicate<T>,com.vaadin.flow.function.SerializableComparator<T>> filterOrSortingChangedCallback)
dataProviderSupplier - supplier from which the DataProvider can be gottenselect - select component that the dataView is bound toidentifierChangedCallback - callback method which should be called when identifierProvider
is changedfilterOrSortingChangedCallback - callback, which is being invoked when the Select's filtering
or sorting changes, not nullpublic void setIdentifierProvider(com.vaadin.flow.data.provider.IdentifierProvider<T> identifierProvider)
Copyright © 2022. All rights reserved.