Examples of BookContext


Examples of gluebooster.basic.text.BookContext

    return out;
  }

  private void fillBook(Document doc, BoostedNode bookNode) throws Exception {
    Element body = createHtml(doc, bookNode.getAttributes().getName(), HTML.Tag.BODY);
    BookContext bookContext = new BookContext();
    bookContext.setChapterBreadcrumb(new Object[]{0});//you are in the first navigation level, with 0 chapters before
    fillBookChapter(bookNode, bookContext, doc, body, false);
   
  }
View Full Code Here

Examples of gluebooster.basic.text.BookContext

    for (BoostedNode zoomInFocusPoint: chapterNode.getAllZoomInFocus()){
      BoostedNode zoomInNode = chapterNode.getZoomIn(zoomInFocusPoint, null);
      Object type = zoomInNode.getAttributes().getType();
     
      if (DocumentationResourecesId.CHAPTER.equals(type)){
        BookContext newBookContext = (BookContext) bookContext.clone();
        newBookContext.setChapterBreadcrumb(Arrays.copyOf(newBookContext.getChapterBreadcrumb(), newBookContext.getChapterBreadcrumb().length + 1) );
        newBookContext.getChapterBreadcrumb()[bookContext.getChapterBreadcrumb().length] = chapterCount++;
        fillBookChapter(zoomInNode, newBookContext, doc, parentElement, true);
      }else if (HTML.Tag.DIV.equals(type)){
         Element div = DomUtils.appendElement(doc, parentElement, HTML.Tag.DIV);
         fillBookChapter(zoomInNode, bookContext, doc, div, false);
      }else if (GeneralConstants.TEXT.equals(type)){
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.text.general.BookContext

   * @param bookNode
   *            the root node of the book
   */
  private void fillBook(Document doc, BoostedNode bookNode) throws Exception {
    Element body = createHtml(doc, bookNode.getAttributes().getName(), HTML.Tag.BODY);
    BookContext bookContext = new BookContext();
    bookContext.setChapterBreadcrumb(new Object[]{0});//you are in the first navigation level, with 0 chapters before
    fillBookChapter(bookNode, bookContext, doc, body, false);
   
  }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.text.general.BookContext

    for (BoostedNode zoomInFocusPoint: chapterNode.getAllZoomInFocus()){
      BoostedNode zoomInNode = chapterNode.getZoomIn(zoomInFocusPoint, null);
      Object type = zoomInNode.getAttributes().getType();
     
      if (DocumentationResourcesId.CHAPTER.equals(type)) {
        BookContext newBookContext = (BookContext) bookContext.clone();
        newBookContext.setChapterBreadcrumb(Arrays.copyOf(newBookContext.getChapterBreadcrumb(), newBookContext.getChapterBreadcrumb().length + 1) );
        newBookContext.getChapterBreadcrumb()[bookContext.getChapterBreadcrumb().length] = chapterCount++;
        fillBookChapter(zoomInNode, newBookContext, doc, parentElement, true);
      }else if (HTML.Tag.DIV.equals(type)){
         Element div = DomBoostUtils.appendElement(doc, parentElement, HTML.Tag.DIV);
         fillBookChapter(zoomInNode, bookContext, doc, div, false);
      } else if (TextBoostUtils.TEXT.equals(type)) {
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.