Class ChartDataItemsSerializer

java.lang.Object
io.jmix.charts.serialization.ChartDataItemsSerializer

@Component("ui_ChartDataItemsSerializer") @Scope("prototype") public class ChartDataItemsSerializer extends Object
  • Field Details

    • ITEM_KEY_PROPERTY_NAME

      protected static final String ITEM_KEY_PROPERTY_NAME
      See Also:
    • DATE_FORMATTER

      protected static final org.apache.commons.lang3.time.FastDateFormat DATE_FORMATTER
    • TEMPORAL_DATE_FORMATTER

      protected static final DateTimeFormatter TEMPORAL_DATE_FORMATTER
    • TEMPORAL_DATE_TIME_FORMATTER

      protected static final DateTimeFormatter TEMPORAL_DATE_TIME_FORMATTER
    • messages

      protected Messages messages
    • metadataTools

      protected MetadataTools metadataTools
  • Constructor Details

    • ChartDataItemsSerializer

      public ChartDataItemsSerializer()
  • Method Details

    • setMetadataTools

      @Autowired public void setMetadataTools(MetadataTools metadataTools)
    • setMessages

      @Autowired public void setMessages(Messages messages)
    • serialize

      public com.google.gson.JsonArray serialize(List<DataItem> items, ChartJsonSerializationContext context)
    • addProperty

      protected void addProperty(com.google.gson.JsonObject jsonObject, String property, Object value, com.google.gson.JsonSerializationContext context)