Examples of BoostedNode


Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode

      //write the list of books
      Document doc = DomBoostUtils.createDefaultDocumentBuilder().newDocument();
      Element body = createHtml(doc, documentationNode.getAttributes().getName(), HTML.Tag.BODY);
      Element list = DomBoostUtils.appendElement(doc, body, HTML.Tag.UL);
      for (BoostedNode zoomInFocusPoint: documentationNode.getAllZoomInFocus()){
        BoostedNode zoomInNode = documentationNode.getZoomIn(zoomInFocusPoint, null);
        Object subtype = zoomInNode.getAttributes().getType();
       
        if (BookBoostUtils.BOOK.equals(subtype)) {
          Element li = DomBoostUtils.appendElement(doc, list, HTML.Tag.LI);
          File directory = documentationContext.getFromAttributesMap(File.class);
          DomBoostUtils.appendElement(
              doc,
              li,
              HTML.Tag.A,
              ContainerBoostUtils.createMap("href",
zoomInNode
                  .getAttributes().getName()/*
                               * directory .
                               * getName ( )
                               */
                  + "/index.html", "target", "content"),
              zoomInNode.getAttributes().getName());
        }
      }      
      OutputStream out = getOutputStream(documentationContext, documentationNode, "booklist.html");
      DomBoostUtils.write(doc, out);
      out.close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.