Package io.jmix.charts.serialization
Class JmixStockChartSerializer
java.lang.Object
io.jmix.charts.serialization.JmixStockChartSerializer
- All Implemented Interfaces:
HasDataItemKeyMapper
,StockChartSerializer
@Component("ui_JmixStockChartSerializer")
@Scope("prototype")
public class JmixStockChartSerializer
extends Object
implements StockChartSerializer
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final com.google.gson.Gson
protected ChartDataItemsSerializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ChartJsonSerializationContext
serialize
(StockChartGroup chart) serializeChanges
(StockChartGroup chart, Map<DataSet, ChartIncrementalChanges> changedItems) void
setDataItemKeyMapper
(Function<DataItem, String> itemKeyMapper) protected static void
setDefaultProperties
(com.google.gson.GsonBuilder builder) protected void
setItemsSerializer
(ChartDataItemsSerializer chartDataItemsSerializer)
-
Field Details
-
chartGson
protected static final com.google.gson.Gson chartGson -
itemKeyMapper
-
itemsSerializer
-
-
Constructor Details
-
JmixStockChartSerializer
public JmixStockChartSerializer()
-
-
Method Details
-
setDefaultProperties
protected static void setDefaultProperties(com.google.gson.GsonBuilder builder) -
setItemsSerializer
-
serialize
- Specified by:
serialize
in interfaceStockChartSerializer
-
serializeChanges
public String serializeChanges(StockChartGroup chart, Map<DataSet, ChartIncrementalChanges> changedItems) - Specified by:
serializeChanges
in interfaceStockChartSerializer
-
createChartJsonSerializationContext
-
getDataItemKeyMapper
- Specified by:
getDataItemKeyMapper
in interfaceHasDataItemKeyMapper
-
setDataItemKeyMapper
- Specified by:
setDataItemKeyMapper
in interfaceHasDataItemKeyMapper
-