Package io.jmix.charts.serialization
Class ChartDataItemsSerializer
java.lang.Object
io.jmix.charts.serialization.ChartDataItemsSerializer
@Component("ui_ChartDataItemsSerializer")
@Scope("prototype")
public class ChartDataItemsSerializer
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.apache.commons.lang3.time.FastDateFormat
protected static final String
protected Messages
protected MetadataTools
protected static final DateTimeFormatter
protected static final DateTimeFormatter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addProperty
(com.google.gson.JsonObject jsonObject, String property, Object value, com.google.gson.JsonSerializationContext context) com.google.gson.JsonArray
serialize
(List<DataItem> items, ChartJsonSerializationContext context) void
setMessages
(Messages messages) void
setMetadataTools
(MetadataTools metadataTools)
-
Field Details
-
ITEM_KEY_PROPERTY_NAME
- See Also:
-
DATE_FORMATTER
protected static final org.apache.commons.lang3.time.FastDateFormat DATE_FORMATTER -
TEMPORAL_DATE_FORMATTER
-
TEMPORAL_DATE_TIME_FORMATTER
-
messages
-
metadataTools
-
-
Constructor Details
-
ChartDataItemsSerializer
public ChartDataItemsSerializer()
-
-
Method Details
-
setMetadataTools
-
setMessages
-
serialize
public com.google.gson.JsonArray serialize(List<DataItem> items, ChartJsonSerializationContext context) -
addProperty
-