T
- data typeF
- filter typepublic abstract class HierarchicalDataProviderWrapper<T,F> extends com.vaadin.data.provider.DataProviderWrapper<T,F,F> implements com.vaadin.data.provider.HierarchicalDataProvider<T,F>, Destructible
HierarchicalDataProvider
. Similar to Vaadin's own
data provider wrapper
, but for some
reason framework does not provide its own variation for the hierarchical providers.Modifier | Constructor and Description |
---|---|
protected |
HierarchicalDataProviderWrapper(com.vaadin.data.provider.HierarchicalDataProvider<T,F> dataProvider) |
Modifier and Type | Method and Description |
---|---|
protected com.vaadin.data.provider.HierarchicalDataProvider<T,F> |
dataProvider() |
void |
destroy()
Perform arbitrary clean-up logic upon component destruction
by the framework.
|
Stream<T> |
fetchChildren(com.vaadin.data.provider.HierarchicalQuery<T,F> query) |
int |
getChildCount(com.vaadin.data.provider.HierarchicalQuery<T,F> query) |
boolean |
hasChildren(T item) |
void |
setPreFetchProcessor(Runnable preFetchProcessor) |
addDataProviderListener, fetch, getFilter, getId, isInMemory, refreshAll, refreshItem, size
public void setPreFetchProcessor(Runnable preFetchProcessor)
public boolean hasChildren(T item)
public void destroy()
Destructible
Note that Destructible.destroy()
method may be called outside of UI thread, e.g.
when the whole instance of admincentral gets disposed as result of heartbeat
checks. This means that neither Magnolia, nor Vaadin thread locals will be reliably
present upon that method invocation.
destroy
in interface Destructible
Copyright © 2019 Magnolia International Ltd.. All rights reserved.