Class RadioButtonGroupDataView<T>
- java.lang.Object
-
- com.vaadin.flow.data.provider.AbstractDataView<T>
-
- com.vaadin.flow.component.radiobutton.dataview.RadioButtonGroupDataView<T>
-
- Type Parameters:
T- the item type
- All Implemented Interfaces:
com.vaadin.flow.data.provider.DataView<T>,Serializable
public class RadioButtonGroupDataView<T> extends com.vaadin.flow.data.provider.AbstractDataView<T>Implementation of generic data view for RadioButtonGroup.- Since:
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RadioButtonGroupDataView(com.vaadin.flow.function.SerializableSupplier<? extends com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, RadioButtonGroup radioButtonGroup)Constructs a new DataView.RadioButtonGroupDataView(com.vaadin.flow.function.SerializableSupplier<? extends com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, RadioButtonGroup radioButtonGroup, 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
-
RadioButtonGroupDataView
public RadioButtonGroupDataView(com.vaadin.flow.function.SerializableSupplier<? extends com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, RadioButtonGroup radioButtonGroup)
Constructs a new DataView.- Parameters:
dataProviderSupplier- data provider supplierradioButtonGroup- radioButton group instance for this DataView
-
RadioButtonGroupDataView
public RadioButtonGroupDataView(com.vaadin.flow.function.SerializableSupplier<? extends com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, RadioButtonGroup radioButtonGroup, com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.data.provider.IdentifierProvider<T>> identifierChangedCallback)
Constructs a new DataView.- Parameters:
dataProviderSupplier- data provider supplierradioButtonGroup- radioButton group instance for this DataViewidentifierChangedCallback- callback method which should be called when identifierProvider is changed
-
-
Method Detail
-
getSupportedDataProviderType
protected Class<?> getSupportedDataProviderType()
- Specified by:
getSupportedDataProviderTypein classcom.vaadin.flow.data.provider.AbstractDataView<T>
-
getItem
public T getItem(int index)
-
setIdentifierProvider
public void setIdentifierProvider(com.vaadin.flow.data.provider.IdentifierProvider<T> identifierProvider)
-
-