Package info.bliki.wiki.filter

Examples of info.bliki.wiki.filter.SectionHeader


        }
      }
      anchor = newAnchor;
    }
    fToCSet.add(anchor);
    SectionHeader strPair = new SectionHeader(headLevel, startPosition, endPosition, tocHead, anchor);
    addToTableOfContent(fTableOfContent, strPair, headLevel);
    if (getRecursionLevel() == 1) {
      buildEditLinkUrl(fSectionCounter++);
    }
    spanTagNode.addAttribute("class", "mw-headline", true);
View Full Code Here


        }
      }
      anchor = newAnchor;
    }
    fToCSet.add(anchor);
    SectionHeader strPair = new SectionHeader(headLevel, startPosition, endPosition, tocHead, anchor);
    addToTableOfContent(fTableOfContent, strPair, headLevel);
    if (getRecursionLevel() == 1) {
      buildEditLinkUrl(fSectionCounter++);
    }
    spanTagNode.addAttribute("class", "mw-headline", true);
View Full Code Here

      if (toc.get(i) instanceof SectionHeader) {
        if (!counted) {
          level++;
          counted = true;
        }
        SectionHeader pair = (SectionHeader) toc.get(i);
        String head = Encoder.encodeHtml(pair.getFirst());
        String anchor = pair.getSecond();
        writer.append("\n<li class=\"toclevel-").append(Integer.toString(level)).append("\"><a href=\"#").append(anchor).append(
            "\">").append(head).append("</a>\n</li>");
      } else {
        renderToC(writer, (List<Object>) toc.get(i), level);
      }
View Full Code Here

  }

  private void extractSectionHeaders(List<Object> toc, List<SectionHeader> resultList) {
    for (int i = 0; i < toc.size(); i++) {
      if (toc.get(i) instanceof SectionHeader) {
        SectionHeader header = (SectionHeader) toc.get(i);
        resultList.add(header);
      } else {
        extractSectionHeaders((List<Object>) toc.get(i), resultList);
      }
    }
View Full Code Here

          break;
        }
      }
      anchor = newAnchor;
    }
    SectionHeader strPair = new SectionHeader(headLevel, startPosition, endPosition, tocHead, anchor);
    addToTableOfContent(fTableOfContent, strPair, headLevel);
    if (getRecursionLevel() == 1) {
      buildEditLinkUrl(fSectionCounter++);
    }
    TagNode aTagNode = new TagNode("a");
View Full Code Here

      if (toc.get(i) instanceof SectionHeader) {
        if (!counted) {
          level++;
          counted = true;
        }
        SectionHeader pair = (SectionHeader) toc.get(i);
        String head = Encoder.encodeHtml(pair.getFirst());
        String anchor = pair.getSecond();
        writer.append("\n<li class=\"toclevel-").append(Integer.toString(level)).append("\"><a href=\"#").append(anchor).append(
            "\">").append(head).append("</a>\n</li>");
      } else {
        renderToC(writer, (List<Object>) toc.get(i), level);
      }
View Full Code Here

  }

  private void extractSectionHeaders(List<Object> toc, List<SectionHeader> resultList) {
    for (int i = 0; i < toc.size(); i++) {
      if (toc.get(i) instanceof SectionHeader) {
        SectionHeader header = (SectionHeader) toc.get(i);
        resultList.add(header);
      } else {
        extractSectionHeaders((List<Object>) toc.get(i), resultList);
      }
    }
View Full Code Here

        }
      }
      anchor = newAnchor;
    }
    fToCSet.add(anchor);
    SectionHeader strPair = new SectionHeader(headLevel, startPosition, endPosition, tocHead, anchor);
    addToTableOfContent(fTableOfContent, strPair, headLevel);
    if (getRecursionLevel() == 1) {
      buildEditLinkUrl(fSectionCounter++);
    }
    spanTagNode.addAttribute("class", "mw-headline", true);
View Full Code Here

        }
      }
      anchor = newAnchor;
    }
    fToCSet.add(anchor);
    SectionHeader strPair = new SectionHeader(headLevel, startPosition, endPosition, tocHead, anchor);
    addToTableOfContent(fTableOfContent, strPair, headLevel);
    if (getRecursionLevel() == 1) {
      buildEditLinkUrl(fSectionCounter++);
    }
    spanTagNode.addAttribute("class", "mw-headline", true);
View Full Code Here

          break;
        }
      }
      anchor = newAnchor;
    }
    SectionHeader strPair = new SectionHeader(headLevel, startPosition, endPosition, tocHead, anchor);
    addToTableOfContent(fTableOfContent, strPair, headLevel);
    if (getRecursionLevel() == 1) {
      buildEditLinkUrl(fSectionCounter++);
    }
    spanTagNode.addAttribute("class", "mw-headline", true);
View Full Code Here

TOP

Related Classes of info.bliki.wiki.filter.SectionHeader

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.