T
- the item typepublic class ListBoxDataView<T> extends AbstractDataView<T>
component, dataProviderSupplier, NULL_IDENTIFIER_ERROR_MESSAGE, NULL_ITEM_ERROR_MESSAGE
Constructor and Description |
---|
ListBoxDataView(SerializableSupplier<? extends DataProvider<T,?>> dataProviderSupplier,
ListBoxBase listBox)
Constructs a new generic data view for ListBox and verifies the passed
data provider is compatible with this data view implementation.
|
Modifier and Type | Method and Description |
---|---|
T |
getItem(int index)
Gets the item at the given index from the data available to the
component.
|
protected Class<?> |
getSupportedDataProviderType()
Returns supported
DataProvider type for this DataView . |
addItemCountChangeListener, equals, getIdentifierProvider, getItems, refreshAll, refreshItem, setIdentifierProvider, verifyDataProviderType
public ListBoxDataView(SerializableSupplier<? extends DataProvider<T,?>> dataProviderSupplier, ListBoxBase listBox)
dataProviderSupplier
- data provider supplierlistBox
- list box instance for this DataViewprotected Class<?> getSupportedDataProviderType()
AbstractDataView
DataProvider
type for this DataView
.getSupportedDataProviderType
in class AbstractDataView<T>
Copyright © 2021. All rights reserved.