Interface HasFilterableDataProvider<T,​F>

  • Type Parameters:
    T - the item data type
    F - the filter type
    All Superinterfaces:
    ClientConnector, Component, com.vaadin.shared.Connector, HasItems<T>, java.io.Serializable, Sizeable
    All Known Implementing Classes:
    ComboBox

    public interface HasFilterableDataProvider<T,​F>
    extends HasItems<T>
    A generic interface for listing components that use a filterable data provider for showing data.

    A listing component should implement either this interface or HasDataProvider, but not both.

    Since:
    8.0
    Author:
    Vaadin Ltd.
    See Also:
    HasDataProvider
    • Method Detail

      • setDataProvider

        default void setDataProvider​(DataProvider<T,​F> dataProvider)
        Sets the data provider for this listing. The data provider is queried for displayed items as needed.
        Parameters:
        dataProvider - the data provider, not null
      • setDataProvider

        <C> void setDataProvider​(DataProvider<T,​C> dataProvider,
                                 SerializableFunction<F,​C> filterConverter)
        Sets the data provider and filter converter for this listing. The data provider is queried for displayed items as needed.
        Type Parameters:
        C - filter type
        Parameters:
        dataProvider - the data provider, not null
        filterConverter - a function that converts filter values produced by this listing into filter values expected by the provided data provider, not null