Class ResponseDataHandler

  • All Implemented Interfaces:
    org.zkoss.json.JSONAware

    public class ResponseDataHandler
    extends Object
    implements org.zkoss.json.JSONAware
    A response data handler for Charts's smart update changes. The handler can merge the duplicated data changes and ignore the changes if they are unnecessary. For example add a new series with multiple points that the addPoint command changes are unnecessary in this case. This handler is used when the component is going to output the data in JSON string at rendering phase, so it is a good timing to merge the response data there.
    Author:
    jumperchen
    • Constructor Detail

      • ResponseDataHandler

        public ResponseDataHandler()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • clear

        public void clear()
      • toJSONString

        public String toJSONString()
        Specified by:
        toJSONString in interface org.zkoss.json.JSONAware