Class ChartSerializer

java.lang.Object
io.jmix.chartsflowui.kit.component.serialization.JmixChartSerializer
io.jmix.chartsflowui.component.serialization.ChartSerializer
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

@Component("charts_ChartSerializer") @Scope("prototype") public class ChartSerializer extends JmixChartSerializer implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Serializes options and data for the Chart into JSON for subsequent sending it to the client-side.
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • itemKeyMapper

      protected Function<DataItem,String> itemKeyMapper
  • Constructor Details

  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • initSerializer

      protected void initSerializer()
      Overrides:
      initSerializer in class JmixChartSerializer
    • getSerializers

      protected List<AbstractSerializer<?>> getSerializers()
      Overrides:
      getSerializers in class JmixChartSerializer