Package com.ibm.sbt.playground.dojo

Examples of com.ibm.sbt.playground.dojo.JsonTreeRenderer


   * @throws NotesException
   * @throws IOException
   */
  public String getSnippetsAsJson() throws NotesException, IOException {
    RootNode root = readSnippetsNodes();
    JsonTreeRenderer r = new JsonTreeRenderer();
    r.setCategoryUrl(true); // So we can bookmark the categories
    String apisSearch = (String)ExtLibUtil.getViewScope().get("assetSearch");
    if(StringUtil.isNotEmpty(apisSearch)) {
      r.setFlat(true);
    }
    return r.generateAsStringHier(root,true);
  }
View Full Code Here


    }
  }
 
  public String getAsJson() {
    try {
      JsonTreeRenderer r = new JsonTreeRenderer();
      return r.generateAsStringHier(this, true);
    } catch (IOException e) {
      return "{}";
    }
  }
View Full Code Here

TOP

Related Classes of com.ibm.sbt.playground.dojo.JsonTreeRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.