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


          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

        }
      }
      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 (tocItem instanceof SectionHeader) {
        if (!counted) {
          level++;
          counted = true;
        }
        SectionHeader pair = (SectionHeader) tocItem;
        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 {
        @SuppressWarnings("unchecked")
        final List<Object> list = (List<Object>) tocItem;
View Full Code Here

  }

  private void extractSectionHeaders(List<Object> toc, List<SectionHeader> resultList) {
    for (Object tocItem : toc) {
      if (tocItem instanceof SectionHeader) {
        SectionHeader header = (SectionHeader) tocItem;
        resultList.add(header);
      } else {
        @SuppressWarnings("unchecked")
        final List<Object> list = (List<Object>) tocItem;
        extractSectionHeaders(list, resultList);
View Full Code Here

        }
        if (!counted) {
          level++;
          counted = true;
        }
        SectionHeader pair = (SectionHeader) tocItem;
        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>");
        setLI = true;
View Full Code Here

  private void extractSectionHeaders(List<Object> toc,
      List<SectionHeader> resultList) {
    for (Object tocItem : toc) {
      if (tocItem instanceof SectionHeader) {
        SectionHeader header = (SectionHeader) tocItem;
        resultList.add(header);
      } else {
        @SuppressWarnings("unchecked")
        final List<Object> list = (List<Object>) tocItem;
        extractSectionHeaders(list, resultList);
View Full Code Here

        }
        if (!counted) {
          level++;
          counted = true;
        }
        SectionHeader pair = (SectionHeader) tocItem;
        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>");
        setLI = true;
View Full Code Here

  private void extractSectionHeaders(List<Object> toc,
      List<SectionHeader> resultList) {
    for (Object tocItem : toc) {
      if (tocItem instanceof SectionHeader) {
        SectionHeader header = (SectionHeader) tocItem;
        resultList.add(header);
      } else {
        @SuppressWarnings("unchecked")
        final List<Object> list = (List<Object>) tocItem;
        extractSectionHeaders(list, resultList);
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.