Class ListBoxDataView<T>

  • Type Parameters:
    T - the item type
    All Implemented Interfaces:
    com.vaadin.flow.data.provider.DataView<T>, Serializable

    public class ListBoxDataView<T>
    extends com.vaadin.flow.data.provider.AbstractDataView<T>
    Implementation of generic data view for ListBox.
    Since:
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class com.vaadin.flow.data.provider.AbstractDataView

        component, dataProviderSupplier, NULL_IDENTIFIER_ERROR_MESSAGE, NULL_ITEM_ERROR_MESSAGE
    • Constructor Summary

      Constructors 
      Constructor Description
      ListBoxDataView​(com.vaadin.flow.function.SerializableSupplier<? extends com.vaadin.flow.data.provider.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.
    • Constructor Detail

      • ListBoxDataView

        public ListBoxDataView​(com.vaadin.flow.function.SerializableSupplier<? extends com.vaadin.flow.data.provider.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.
        Parameters:
        dataProviderSupplier - data provider supplier
        listBox - list box instance for this DataView
    • Method Detail

      • getSupportedDataProviderType

        protected Class<?> getSupportedDataProviderType()
        Specified by:
        getSupportedDataProviderType in class com.vaadin.flow.data.provider.AbstractDataView<T>
      • getItem

        public T getItem​(int index)