Package io.jmix.chartsflowui.data
Class ContainerChartItems<T>
java.lang.Object
com.vaadin.flow.data.provider.AbstractDataProvider<EntityDataItem,Void>
io.jmix.chartsflowui.data.ContainerChartItems<T>
- All Implemented Interfaces:
com.vaadin.flow.data.provider.DataProvider<EntityDataItem,,Void> ChartItems<EntityDataItem>,ContainerDataUnit<T>,DataUnit,EntityDataUnit,Serializable
public class ContainerChartItems<T>
extends com.vaadin.flow.data.provider.AbstractDataProvider<EntityDataItem,Void>
implements ContainerDataUnit<T>, ChartItems<EntityDataItem>
Data provider bound to the
CollectionContainer for a Chart component.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.chartsflowui.kit.data.chart.ChartItems
ChartItems.DataChangeOperation, ChartItems.ItemSetChangeEvent<T extends DataItem>Nested classes/interfaces inherited from interface io.jmix.flowui.data.DataUnit
DataUnit.StateChangeEvent -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationRegisters a new item set change listener.com.vaadin.flow.shared.RegistrationRegisters a new state change listener.fetch(com.vaadin.flow.data.provider.Query<EntityDataItem, Void> query) protected EventBusgetItems()getState()protected voidinitContainer(CollectionContainer<T> container) booleanprotected ChartItems.DataChangeOperationmapToChangeOperation(CollectionChangeType changeType) protected List<EntityDataItem>mapToEntityDataItem(Collection<? extends T> collection) protected voidintsize(com.vaadin.flow.data.provider.Query<EntityDataItem, Void> query) Methods inherited from class com.vaadin.flow.data.provider.AbstractDataProvider
addDataProviderListener, addListener, fireEvent, refreshAll, 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
getId, withConfigurableFilter, withConfigurableFilter, withConvertedFilter
-
Field Details
-
container
-
-
Constructor Details
-
ContainerChartItems
-
-
Method Details
-
initContainer
-
onContainerCollectionChanged
-
addItemSetChangeListener
public com.vaadin.flow.shared.Registration addItemSetChangeListener(Consumer<ChartItems.ItemSetChangeEvent<EntityDataItem>> listener) Description copied from interface:ChartItemsRegisters a new item set change listener.- Specified by:
addItemSetChangeListenerin interfaceChartItems<T>- Parameters:
listener- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
getItems
- Specified by:
getItemsin interfaceChartItems<T>- Returns:
- unmodifiable collection of items
-
getItem
- Specified by:
getItemin interfaceChartItems<T>- Parameters:
id- the item id- Returns:
- the item by the given id
-
getEntityMetaClass
- Specified by:
getEntityMetaClassin interfaceEntityDataUnit- Returns:
MetaClassof an entity contained in the source
-
getContainer
- Specified by:
getContainerin interfaceContainerDataUnit<T>
-
isInMemory
public boolean isInMemory()- Specified by:
isInMemoryin interfacecom.vaadin.flow.data.provider.DataProvider<EntityDataItem,Void>
-
size
- Specified by:
sizein interfacecom.vaadin.flow.data.provider.DataProvider<EntityDataItem,Void>
-
fetch
- Specified by:
fetchin interfacecom.vaadin.flow.data.provider.DataProvider<EntityDataItem,Void>
-
getState
-
addStateChangeListener
public com.vaadin.flow.shared.Registration addStateChangeListener(Consumer<DataUnit.StateChangeEvent> listener) Description copied from interface:DataUnitRegisters a new state change listener.- Specified by:
addStateChangeListenerin interfaceDataUnit- Parameters:
listener- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
mapToEntityDataItem
-
mapToChangeOperation
-
getEventBus
-