T - data typepublic class RadioButtonGroupListDataView<T> extends AbstractListDataView<T>
component, dataProviderSupplier, NULL_IDENTIFIER_ERROR_MESSAGE| Constructor and Description |
|---|
RadioButtonGroupListDataView(SerializableSupplier<? extends DataProvider<T,?>> dataProviderSupplier,
RadioButtonGroup radioButtonGroup,
SerializableBiConsumer<SerializablePredicate<T>,SerializableComparator<T>> filterOrSortingChangedCallback)
Creates a new in-memory data view for RadioButtonGroup and verifies the
passed data provider is compatible with this data view implementation.
|
RadioButtonGroupListDataView(SerializableSupplier<? extends DataProvider<T,?>> dataProviderSupplier,
RadioButtonGroup radioButtonGroup,
SerializableConsumer<IdentifierProvider<T>> identifierChangedCallback,
SerializableBiConsumer<SerializablePredicate<T>,SerializableComparator<T>> filterOrSortingChangedCallback)
Creates a new in-memory data view for RadioButtonGroup and verifies the
passed data provider is compatible with this data view implementation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setIdentifierProvider(IdentifierProvider<T> identifierProvider)
Sets an identifier provider, which returns an identifier for the given
item.
|
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, verifyDataProviderTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddItemCountChangeListener, refreshAll, refreshItempublic RadioButtonGroupListDataView(SerializableSupplier<? extends DataProvider<T,?>> dataProviderSupplier, RadioButtonGroup radioButtonGroup, SerializableBiConsumer<SerializablePredicate<T>,SerializableComparator<T>> filterOrSortingChangedCallback)
dataProviderSupplier - data provider supplierradioButtonGroup - radioButton Group instance for this DataViewfilterOrSortingChangedCallback - callback, which is being invoked when the RadioButtonGroup's
filtering or sorting changes, not nullpublic RadioButtonGroupListDataView(SerializableSupplier<? extends DataProvider<T,?>> dataProviderSupplier, RadioButtonGroup radioButtonGroup, SerializableConsumer<IdentifierProvider<T>> identifierChangedCallback, SerializableBiConsumer<SerializablePredicate<T>,SerializableComparator<T>> filterOrSortingChangedCallback)
dataProviderSupplier - data provider supplierradioButtonGroup - radioButton Group instance for this DataViewidentifierChangedCallback - callback method which should be called when identifierProvider
is changedfilterOrSortingChangedCallback - callback, which is being invoked when the RadioButtonGroup's
filtering or sorting changes, not nullpublic void setIdentifierProvider(IdentifierProvider<T> identifierProvider)
DataViewdataView.setIdentifiedProvider(Item::getId);.setIdentifierProvider in interface DataView<T>setIdentifierProvider in class AbstractDataView<T>identifierProvider - function that returns the non-null identifier for a given itemCopyright © 2021. All rights reserved.