Class EnumDataProvider<T extends Enum<T>>
java.lang.Object
com.vaadin.flow.data.provider.AbstractDataProvider<T, SerializablePredicate<T>>
com.vaadin.flow.data.provider.ListDataProvider<T>
org.dellroad.stuff.vaadin24.data.EnumDataProvider<T>
- All Implemented Interfaces:
ConfigurableFilterDataProvider<T, SerializablePredicate<T>, SerializablePredicate<T>>, DataProvider<T, SerializablePredicate<T>>, InMemoryDataProvider<T>, Serializable
A simple data provider containing
Enum values.
When created by a FieldBuilder, instances will
automatically infer the Enum type via FieldBuilderContext.inferDataModelType() and then
populate themselves with the corresponding enum values.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ListDataProvider
fetch, getFilter, getItems, getSortComparator, setFilter, setSortComparator, sizeMethods inherited from class AbstractDataProvider
addDataProviderListener, addListener, fireEvent, refreshAll, refreshItem, refreshItemMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataProvider
addDataProviderListener, getId, refreshAll, refreshItem, refreshItem, withConfigurableFilter, withConfigurableFilter, withConvertedFilterMethods inherited from interface InMemoryDataProvider
addFilter, addFilter, addFilterByValue, addSortComparator, addSortOrder, clearFilters, filteringBy, filteringBy, filteringByEquals, filteringByPrefix, filteringByPrefix, filteringBySubstring, filteringBySubstring, isInMemory, setFilter, setFilterByValue, setSortOrder
-
Constructor Details
-
EnumDataProvider
Auto-build Constructor.This constructor will infer the
Enumtype from the annotated method's return value.- Parameters:
ctx- field builder context- Throws:
NullPointerException- ifctxis null
-
EnumDataProvider
Constructor.- Parameters:
type- enum type- Throws:
IllegalArgumentException- iftypeis nullClassCastException- iftypeis not anEnumtype
-
-
Method Details
-
getEnumType
-