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.RegistrationaddDataLoadedListener(DataLoadedListener listener) Whenever data is loaded from the DB, this listener will be informed.voidclear()voidclose()fetch(com.vaadin.flow.data.provider.Query<T, com.vaadin.flow.function.SerializablePredicate<T>> query) voidfilterView(String filters) get(int index) getData()final com.vaadin.flow.data.provider.DataProvider<?, ?> getItems()intintvoidfinal voidfinal voidsetSortComparator(com.vaadin.flow.function.SerializableComparator<T> comparator) intsize(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, getSortComparatorMethods inherited from class com.vaadin.flow.data.provider.AbstractDataProvider
addDataProviderListener, addListener, fireEvent, refreshItem, refreshItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.data.provider.DataProvider
addDataProviderListener, getId, refreshItem, refreshItem, withConfigurableFilter, withConfigurableFilter, withConvertedFilterMethods 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, setSortOrderMethods inherited from interface com.storedobject.ui.util.ViewFilterSupport
configure, configure, configure, configureMatch
-
Constructor Details
-
AbstractListProvider
-
-
Method Details
-
getItems
-
getData
-
setSortComparator
-
setFilter
- Specified by:
setFilterin interfacecom.vaadin.flow.data.provider.ConfigurableFilterDataProvider<T,com.vaadin.flow.function.SerializablePredicate<T>, com.vaadin.flow.function.SerializablePredicate<T>> - Specified by:
setFilterin interfacecom.vaadin.flow.data.provider.InMemoryDataProvider<T>- Overrides:
setFilterin 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:
getViewFilterin interfaceViewFilterSupport<T>
-
filterView
- Specified by:
filterViewin interfaceViewFilterSupport<T>
-
addDataLoadedListener
Whenever data is loaded from the DB, this listener will be informed.- Parameters:
listener- Listener.
-
fetch
-
size
-
getObjectClass
- Specified by:
getObjectClassin interfaceViewFilterSupport<T>
-
getDataProvider
public final com.vaadin.flow.data.provider.DataProvider<?,?> getDataProvider()- Specified by:
getDataProviderin interfaceViewFilterSupport<T>
-