Class EnumDataProvider<T>

java.lang.Object
com.vaadin.flow.data.provider.AbstractDataProvider<T,com.vaadin.flow.function.SerializablePredicate<T>>
com.vaadin.flow.data.provider.ListDataProvider<T>
io.jmix.flowui.data.items.EnumDataProvider<T>
Type Parameters:
T - the type of the enumeration items provided by this data provider
All Implemented Interfaces:
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

public class EnumDataProvider<T> extends com.vaadin.flow.data.provider.ListDataProvider<T>
A data provider that uses an enumeration type as its data source.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Class<T>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EnumDataProvider(Class<T> enumClass)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enumeration class used as the data source.

    Methods inherited from class com.vaadin.flow.data.provider.ListDataProvider

    fetch, getFilter, getItems, getSortComparator, setFilter, setSortComparator, size

    Methods inherited from class com.vaadin.flow.data.provider.AbstractDataProvider

    addDataProviderListener, addListener, fireEvent, refreshAll, 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, refreshAll, 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
  • Field Details

    • enumClass

      protected final Class<T> enumClass
  • Constructor Details

    • EnumDataProvider

      public EnumDataProvider(Class<T> enumClass)
  • Method Details

    • getEnumClass

      public Class<T> getEnumClass()
      Returns the enumeration class used as the data source.
      Returns:
      the class of the enumeration used by this data provider