Class DataSet.Source<T extends DataItem>
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.ChartDataObservableObject
io.jmix.chartsflowui.kit.component.model.DataSet.Source<T>
- Type Parameters:
T
- data item class type
- All Implemented Interfaces:
Serializable
- Enclosing class:
- DataSet
Source data. May be associated with a data container or another provided data provider.
Serialized only in row based key-value format (object array), where the keys indicate category field.
Serialization example:
Serialization example:
[
// {category field}, {value field #1}, {value field #2}
{"product": "Matcha Latte", "count": 823, "score": 95.8},
{"product": "Milk Tea", "count": 235, "score": 81.4},
{"product": "Cheese Cocoa", "count": 1042, "score": 91.2},
{"product": "Walnut Brownie", "count": 988, "score": 76.9}
]
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
ChartObservableObject.ObjectChangeEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected com.vaadin.flow.data.provider.DataProvider<T,
?> protected com.vaadin.flow.shared.Registration
Fields inherited from class io.jmix.chartsflowui.kit.component.model.ChartDataObservableObject
chart
Fields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addValueField
(String field) void
addValueFields
(String... valueFields) protected void
com.vaadin.flow.data.provider.DataProvider<T,
?> protected void
protected void
void
setCategoryField
(String categoryField) void
setDataProvider
(com.vaadin.flow.data.provider.DataProvider<T, ?> dataProvider) void
setValueFields
(String... valueFields) withCategoryField
(String categoryField) withDataProvider
(com.vaadin.flow.data.provider.DataProvider<T, ?> dataProvider) withValueField
(String field) withValueFields
(String... fields) Methods inherited from class io.jmix.chartsflowui.kit.component.model.ChartDataObservableObject
setChart
Methods inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
addChild, fireChangeEvent, getChildren, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setChartObjectChangeListener, unmarkDirtyInDepth
-
Field Details
-
dataProvider
-
dataProviderItemSetChangeRegistration
protected com.vaadin.flow.shared.Registration dataProviderItemSetChangeRegistration -
categoryField
-
valueFields
-
-
Constructor Details
-
Source
public Source()
-
-
Method Details
-
getDataProvider
-
setDataProvider
-
onDataProviderChange
protected void onDataProviderChange() -
onItemSetChangeListener
-
getCategoryField
-
setCategoryField
-
getValueFields
-
setValueFields
-
addValueFields
-
addValueField
-
withDataProvider
public DataSet.Source<T> withDataProvider(com.vaadin.flow.data.provider.DataProvider<T, ?> dataProvider) -
withCategoryField
-
withValueFields
-
withValueField
-
afterChartSetup
protected void afterChartSetup()- Specified by:
afterChartSetup
in classChartDataObservableObject
-