T - the data provider item typeQ - the query filter typeC - the configurable filter typeF - the filter type of the wrapped data providerpublic abstract class ConfigurableFilterDataProviderWrapper<T,Q,C,F> extends DataProviderWrapper<T,Q,F> implements ConfigurableFilterDataProvider<T,Q,C>
dataProvider| Constructor and Description |
|---|
ConfigurableFilterDataProviderWrapper(DataProvider<T,F> dataProvider)
Creates a new configurable filter data provider by wrapping an existing
data provider.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract F |
combineFilters(Q queryFilter,
C configuredFilter)
Combines the configured filter and the filter from the query into one
filter instance that can be passed to the wrapped data provider.
|
protected F |
getFilter(Query<T,Q> query)
Gets the filter that should be used in the modified Query.
|
void |
setFilter(C filter)
Sets the filter to use for all queries handled by this data provider.
|
addDataProviderListener, fetch, getId, isInMemory, refreshAll, refreshItem, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDataProviderListener, fetch, fromCallbacks, fromFilteringCallbacks, fromStream, getId, isInMemory, ofCollection, ofItems, refreshAll, refreshItem, refreshItem, size, withConfigurableFilter, withConfigurableFilter, withConvertedFilterpublic ConfigurableFilterDataProviderWrapper(DataProvider<T,F> dataProvider)
dataProvider - the data provider to wrap, not nullprotected F getFilter(Query<T,Q> query)
DataProviderWrappergetFilter in class DataProviderWrapper<T,Q,F>query - the current queryprotected abstract F combineFilters(Q queryFilter, C configuredFilter)
null and the query has
no filter.queryFilter - the filter received through the query, or null if
no filter was provided in the queryconfiguredFilter - the filter that this data provider is configured to use, or
null if no filter has been configurednull to not pass any filter to the wrapped data
providerpublic void setFilter(C filter)
ConfigurableFilterDataProvidersetFilter in interface ConfigurableFilterDataProvider<T,Q,C>filter - the filter to set, or null to clear any
previously set filterCopyright © 2025. All rights reserved.