Package com.storedobject.ui
Class AbstractListProvider<T>
java.lang.Object
com.vaadin.flow.data.provider.AbstractDataProvider<T,com.vaadin.flow.function.SerializablePredicate<T>>
com.vaadin.flow.data.provider.ListDataProvider<T>
com.storedobject.ui.AbstractListProvider<T>
- All Implemented Interfaces:
ViewFilterSupport<T>
,com.vaadin.flow.data.provider.ConfigurableFilterDataProvider<T,
,com.vaadin.flow.function.SerializablePredicate<T>, com.vaadin.flow.function.SerializablePredicate<T>> com.vaadin.flow.data.provider.DataProvider<T,
,com.vaadin.flow.function.SerializablePredicate<T>> com.vaadin.flow.data.provider.InMemoryDataProvider<T>
,Serializable
- Direct Known Subclasses:
ListProvider
,ObjectListProvider
public abstract class AbstractListProvider<T>
extends com.vaadin.flow.data.provider.ListDataProvider<T>
implements ViewFilterSupport<T>
- 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()
fetch
(com.vaadin.flow.data.provider.Query<T, com.vaadin.flow.function.SerializablePredicate<T>> query) void
filterView
(String filters) get
(int index) getData()
final com.vaadin.flow.data.provider.DataProvider
<?, ?> getItems()
int
int
void
final void
final void
setSortComparator
(com.vaadin.flow.function.SerializableComparator<T> comparator) int
size
(com.vaadin.flow.data.provider.Query<T, com.vaadin.flow.function.SerializablePredicate<T>> query) Methods inherited from class com.vaadin.flow.data.provider.ListDataProvider
getFilter, getSortComparator
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, withConfigurableFilter, withConfigurableFilter, withConvertedFilter
Methods inherited from interface com.vaadin.flow.data.provider.InMemoryDataProvider
addFilter, addFilter, addFilterByValue, addSortComparator, addSortOrder, clearFilters, filteringBy, filteringBy, filteringByEquals, filteringByPrefix, filteringByPrefix, filteringBySubstring, filteringBySubstring, isInMemory, setFilter, setFilterByValue, setSortOrder
Methods inherited from interface com.storedobject.ui.util.ViewFilterSupport
configure, configure, configure, configureMatch
-
Constructor Details
-
AbstractListProvider
-
-
Method Details
-
getItems
-
getData
-
setSortComparator
-
setFilter
- Specified by:
setFilter
in interfacecom.vaadin.flow.data.provider.ConfigurableFilterDataProvider<T,
com.vaadin.flow.function.SerializablePredicate<T>, com.vaadin.flow.function.SerializablePredicate<T>> - Specified by:
setFilter
in interfacecom.vaadin.flow.data.provider.InMemoryDataProvider<T>
- Overrides:
setFilter
in classcom.vaadin.flow.data.provider.ListDataProvider<T>
-
refreshAll
-
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.
-
fetch
-
size
-
getObjectClass
- Specified by:
getObjectClass
in interfaceViewFilterSupport<T>
-
getDataProvider
public final com.vaadin.flow.data.provider.DataProvider<?,?> getDataProvider()- Specified by:
getDataProvider
in interfaceViewFilterSupport<T>
-