Package com.storedobject.ui
Class AbstractTreeProvider<T,O>
java.lang.Object
com.vaadin.flow.data.provider.AbstractDataProvider<T,com.vaadin.flow.function.SerializablePredicate<T>>
com.vaadin.flow.data.provider.hierarchy.AbstractHierarchicalDataProvider<T,com.vaadin.flow.function.SerializablePredicate<T>>
com.storedobject.ui.AbstractTreeProvider<T,O>
- All Implemented Interfaces:
ViewFilterSupport<O>
,com.vaadin.flow.data.provider.DataProvider<T,
,com.vaadin.flow.function.SerializablePredicate<T>> com.vaadin.flow.data.provider.hierarchy.HierarchicalDataProvider<T,
,com.vaadin.flow.function.SerializablePredicate<T>> Serializable
- Direct Known Subclasses:
ObjectForestProvider
,ObjectTreeProvider
public abstract class AbstractTreeProvider<T,O>
extends com.vaadin.flow.data.provider.hierarchy.AbstractHierarchicalDataProvider<T,com.vaadin.flow.function.SerializablePredicate<T>>
implements ViewFilterSupport<O>
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
addDataLoadedListener
(DataLoadedListener listener) Whenever data is loaded from the DB, this listener will be informed.void
clear()
void
close()
void
filterView
(String filters) get
(int index) getData()
final com.vaadin.flow.data.provider.DataProvider
<?, ?> com.vaadin.flow.component.ItemLabelGenerator
<T> int
getRoots()
int
boolean
void
final void
void
setItemLabelGenerator
(com.vaadin.flow.component.ItemLabelGenerator<T> itemLabelGenerator) Methods inherited from class com.vaadin.flow.data.provider.hierarchy.AbstractHierarchicalDataProvider
withConfigurableFilter, withConfigurableFilter, withConvertedFilter
Methods inherited from class com.vaadin.flow.data.provider.AbstractDataProvider
addDataProviderListener, addListener, fireEvent, refreshItem, refreshItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.data.provider.DataProvider
addDataProviderListener, getId, refreshItem, refreshItem
Methods inherited from interface com.vaadin.flow.data.provider.hierarchy.HierarchicalDataProvider
fetch, fetchChildren, getChildCount, hasChildren, size
Methods inherited from interface com.storedobject.ui.util.ViewFilterSupport
configure, configure, configure, configureMatch
-
Constructor Details
-
AbstractTreeProvider
-
-
Method Details
-
getRoots
-
getData
-
setFilter
-
getObjectCount
public int getObjectCount() -
get
-
indexOf
-
streamAll
-
streamFiltered
-
clear
public void clear() -
close
public void close() -
getViewFilter
- Specified by:
getViewFilter
in interfaceViewFilterSupport<T>
-
filterView
- Specified by:
filterView
in interfaceViewFilterSupport<T>
-
addDataLoadedListener
Whenever data is loaded from the DB, this listener will be informed.- Parameters:
listener
- Listener.
-
refreshAll
-
isInMemory
-
setItemLabelGenerator
public void setItemLabelGenerator(com.vaadin.flow.component.ItemLabelGenerator<T> itemLabelGenerator) -
getItemLabelGenerator
-
getObjectClass
- Specified by:
getObjectClass
in interfaceViewFilterSupport<T>
-
getDataProvider
public final com.vaadin.flow.data.provider.DataProvider<?,?> getDataProvider()- Specified by:
getDataProvider
in interfaceViewFilterSupport<T>
-