Package com.ibm.sbt.playground.assets

Examples of com.ibm.sbt.playground.assets.CategoryNode


    return new RootNode();
  }
 
  @Override
  public CategoryNode createCategoryNode(CategoryNode parent, String name) {
    return new CategoryNode(parent, name);
  }
View Full Code Here


  protected void generateNodeFlat(JsonWriter jw, Node node) throws IOException {
    jw.startArrayItem();
      generateNodeEntryFlat(jw, node);
    jw.endArrayItem();
    if(node instanceof CategoryNode) {
      CategoryNode cn = (CategoryNode)node;
      List<Node> children = cn.getChildren();
      for(Node c: children) {
        generateNodeFlat(jw, c);
      }
    }
  }
View Full Code Here

              jw.outStringLiteral((node).getJspUrl());
            jw.endProperty();
          }
        }
        if(node instanceof CategoryNode) {
          CategoryNode cn = (CategoryNode)node;
          List<Node> children = cn.getChildren();
          if(!children.isEmpty()) {
            jw.startProperty("children");
              jw.startArray();
                for(Node c: children) {
                  generateNodeHier(jw, c);
                }
              jw.endArray();
            jw.endProperty();
          }
        }
      jw.endArrayItem();
      jw.endObject();
    } else {
      if(node instanceof CategoryNode) {
        CategoryNode cn = (CategoryNode)node;
        List<Node> children = cn.getChildren();
        for(Node c: children) {
          generateNodeHier(jw, c);
        }
      }
    }
View Full Code Here

    return src;
  }
  protected int importAssets(ImportSource source, VFSFile root, Node node, final AsyncAction action) throws Exception {
    int count=0;
    if(node.isCategory()) {
      CategoryNode cn=(CategoryNode) node;
      // Browse recursively...
      List<Node> children=cn.getChildren();
      for(Node n : children) {
        count+=importAssets(source, root, n, action);
      }
    } else if(node.isAsset()) {
      if(action!=null) {
View Full Code Here

TOP

Related Classes of com.ibm.sbt.playground.assets.CategoryNode

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.