Class ListBoxListDataView<T>

java.lang.Object
com.vaadin.flow.data.provider.AbstractDataView<T>
com.vaadin.flow.data.provider.AbstractListDataView<T>
com.vaadin.flow.component.listbox.dataview.ListBoxListDataView<T>
Type Parameters:
T - data type
All Implemented Interfaces:
DataView<T>, ListDataView<T,AbstractListDataView<T>>, Serializable

public class ListBoxListDataView<T> extends AbstractListDataView<T>
Data view implementation for ListBox with in-memory list data. Provides information on the data and allows operations on it.
Since:
See Also:
  • Constructor Details

    • ListBoxListDataView

      public ListBoxListDataView(SerializableSupplier<? extends DataProvider<T,?>> dataProviderSupplier, ListBoxBase listBox, SerializableBiConsumer<SerializablePredicate<T>,SerializableComparator<T>> filterOrSortingChangedCallback)
      Creates a new in-memory data view for ListBox and verifies the passed data provider is compatible with this data view implementation.
      Parameters:
      dataProviderSupplier - data provider supplier
      listBox - listBox instance for this DataView
      filterOrSortingChangedCallback - callback, which is being invoked when the ListBox's filtering or sorting changes, not null