Class InMemoryDataProviderWrapper<T>

java.lang.Object
com.vaadin.flow.data.provider.DataProviderWrapper<T,Void,com.vaadin.flow.function.SerializablePredicate<T>>
io.jmix.flowui.data.items.InMemoryDataProviderWrapper<T>
Type Parameters:
T - the type of items in the data provider
All Implemented Interfaces:
com.vaadin.flow.data.provider.DataProvider<T,Void>, Serializable

public class InMemoryDataProviderWrapper<T> extends com.vaadin.flow.data.provider.DataProviderWrapper<T,Void,com.vaadin.flow.function.SerializablePredicate<T>>
A wrapper for InMemoryDataProvider that integrates it into the DataProviderWrapper framework, enabling in-memory data filtering using a SerializablePredicate.
See Also:
  • Field Summary

    Fields inherited from class com.vaadin.flow.data.provider.DataProviderWrapper

    dataProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
    InMemoryDataProviderWrapper(com.vaadin.flow.data.provider.InMemoryDataProvider<T> dataProvider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.data.provider.InMemoryDataProvider<T>
    Returns the in-memory data provider associated with this wrapper.
    protected com.vaadin.flow.function.SerializablePredicate<T>
    getFilter(com.vaadin.flow.data.provider.Query<T,Void> query)
     

    Methods inherited from class com.vaadin.flow.data.provider.DataProviderWrapper

    addDataProviderListener, fetch, getId, isInMemory, refreshAll, refreshItem, size, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.data.provider.DataProvider

    refreshItem, withConfigurableFilter, withConfigurableFilter, withConvertedFilter
  • Constructor Details

    • InMemoryDataProviderWrapper

      public InMemoryDataProviderWrapper(com.vaadin.flow.data.provider.InMemoryDataProvider<T> dataProvider)
  • Method Details

    • getFilter

      protected com.vaadin.flow.function.SerializablePredicate<T> getFilter(com.vaadin.flow.data.provider.Query<T,Void> query)
      Specified by:
      getFilter in class com.vaadin.flow.data.provider.DataProviderWrapper<T,Void,com.vaadin.flow.function.SerializablePredicate<T>>
    • getDataProvider

      public com.vaadin.flow.data.provider.InMemoryDataProvider<T> getDataProvider()
      Returns the in-memory data provider associated with this wrapper.
      Returns:
      the underlying InMemoryDataProvider instance