Class SelectDataView<T>
- java.lang.Object
-
- com.vaadin.flow.data.provider.AbstractDataView<T>
-
- com.vaadin.flow.component.select.data.SelectDataView<T>
-
- Type Parameters:
T- item type
- All Implemented Interfaces:
com.vaadin.flow.data.provider.DataView<T>,Serializable
public class SelectDataView<T> extends com.vaadin.flow.data.provider.AbstractDataView<T>Implementation of generic data view forSelect.- Since:
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SelectDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, Select<T> select)Constructs a new DataView.SelectDataView(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)Constructs a new DataView.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetItem(int index)protected Class<?>getSupportedDataProviderType()voidsetIdentifierProvider(com.vaadin.flow.data.provider.IdentifierProvider<T> identifierProvider)
-
-
-
Constructor Detail
-
SelectDataView
public SelectDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, Select<T> select)
Constructs a new DataView.- Parameters:
dataProviderSupplier- data provider supplierselect- select instance for this DataView
-
SelectDataView
public SelectDataView(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)
Constructs a new DataView.- Parameters:
dataProviderSupplier- data provider supplierselect- select instance for this DataViewidentifierChangedCallback- callback method which should be called when identifierProvider is changed
-
-
Method Detail
-
getItem
public T getItem(int index)
-
getSupportedDataProviderType
protected Class<?> getSupportedDataProviderType()
- Specified by:
getSupportedDataProviderTypein classcom.vaadin.flow.data.provider.AbstractDataView<T>
-
setIdentifierProvider
public void setIdentifierProvider(com.vaadin.flow.data.provider.IdentifierProvider<T> identifierProvider)
-
-