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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
Registers a new item set change listener.com.vaadin.flow.shared.Registration
Registers a new state change listener.fetch
(com.vaadin.flow.data.provider.Query<EntityDataItem, Void> query) protected EventBus
getItems()
getState()
protected void
initContainer
(CollectionContainer<T> container) boolean
protected ChartItems.DataChangeOperation
mapToChangeOperation
(CollectionChangeType changeType) protected List<EntityDataItem>
mapToEntityDataItem
(Collection<? extends T> collection) protected void
int
size
(com.vaadin.flow.data.provider.Query<EntityDataItem, Void> query) 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
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:ChartItems
Registers a new item set change listener.- Specified by:
addItemSetChangeListener
in 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:
getItems
in interfaceChartItems<T>
- Returns:
- unmodifiable collection of items
-
getItem
- Specified by:
getItem
in interfaceChartItems<T>
- Parameters:
id
- the item id- Returns:
- the item by the given id
-
getEntityMetaClass
- Specified by:
getEntityMetaClass
in interfaceEntityDataUnit
- Returns:
MetaClass
of an entity contained in the source
-
getContainer
- Specified by:
getContainer
in interfaceContainerDataUnit<T>
-
isInMemory
public boolean isInMemory()- Specified by:
isInMemory
in interfacecom.vaadin.flow.data.provider.DataProvider<EntityDataItem,
Void>
-
size
- Specified by:
size
in interfacecom.vaadin.flow.data.provider.DataProvider<EntityDataItem,
Void>
-
fetch
- Specified by:
fetch
in 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:DataUnit
Registers a new state change listener.- Specified by:
addStateChangeListener
in interfaceDataUnit
- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
mapToEntityDataItem
-
mapToChangeOperation
-
getEventBus
-