Class JSonTreeSerializer

    • Constructor Detail

      • JSonTreeSerializer

        public JSonTreeSerializer()
    • Method Detail

      • getUrl

        public String getUrl​(TreeItem item)
        Must be overridden to provide real URLs
      • toJSON

        public net.sf.json.JSONArray toJSON​(TreeItem[] items)
      • toJSON

        public net.sf.json.JSONObject toJSON​(TreeItem root)
      • item2JSON

        protected net.sf.json.JSONObject item2JSON​(TreeItem item,
                                                   net.sf.json.JSONArray children)
        You may override this method to change the output JSON.