Class CheckboxGroupDataView<T>
- java.lang.Object
-
- com.vaadin.flow.data.provider.AbstractDataView<T>
-
- com.vaadin.flow.component.checkbox.dataview.CheckboxGroupDataView<T>
-
- Type Parameters:
T
- the item type
- All Implemented Interfaces:
com.vaadin.flow.data.provider.DataView<T>
,Serializable
public class CheckboxGroupDataView<T> extends com.vaadin.flow.data.provider.AbstractDataView<T>
Implementation of generic data view for checkbox group.- Since:
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CheckboxGroupDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, CheckboxGroup<T> checkboxGroup)
Constructs a new DataView.CheckboxGroupDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, CheckboxGroup<T> checkboxGroup, 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 T
getItem(int index)
protected Class<?>
getSupportedDataProviderType()
void
setIdentifierProvider(com.vaadin.flow.data.provider.IdentifierProvider<T> identifierProvider)
-
-
-
Constructor Detail
-
CheckboxGroupDataView
public CheckboxGroupDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, CheckboxGroup<T> checkboxGroup)
Constructs a new DataView.- Parameters:
dataProviderSupplier
- data provider suppliercheckboxGroup
- checkbox instance for this DataView
-
CheckboxGroupDataView
public CheckboxGroupDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, CheckboxGroup<T> checkboxGroup, com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.data.provider.IdentifierProvider<T>> identifierChangedCallback)
Constructs a new DataView.- Parameters:
dataProviderSupplier
- data provider suppliercheckboxGroup
- checkbox 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:
getSupportedDataProviderType
in classcom.vaadin.flow.data.provider.AbstractDataView<T>
-
setIdentifierProvider
public void setIdentifierProvider(com.vaadin.flow.data.provider.IdentifierProvider<T> identifierProvider)
-
-