Package info.bliki.wiki.filter

Examples of info.bliki.wiki.filter.StringPair


    return fTableOfContentTag;
  }

  private void addToTableOfContent(List<Object> toc, String head, String anchor, int headLevel) {
    if (headLevel == 1) {
      toc.add(new StringPair(head, anchor));
    } else {
      if (toc.size() > 0) {
        if (toc.get(toc.size() - 1) instanceof List) {
          addToTableOfContent((List<Object>) toc.get(toc.size() - 1), head, anchor, --headLevel);
          return;
View Full Code Here


    return fTableOfContentTag;
  }

  private void addToTableOfContent(List<Object> toc, String head, String anchor, int headLevel) {
    if (headLevel == 1) {
      toc.add(new StringPair(head, anchor));
    } else {
      if (toc.size() > 0) {
        if (toc.get(toc.size() - 1) instanceof List) {
          addToTableOfContent((List<Object>) toc.get(toc.size() - 1), head, anchor, --headLevel);
          return;
View Full Code Here

    return fTableOfContentTag;
  }

  private void addToTableOfContent(List<Object> toc, String head, String anchor, int headLevel) {
    if (headLevel == 1) {
      toc.add(new StringPair(head, anchor));
    } else {
      if (toc.size() > 0) {
        if (toc.get(toc.size() - 1) instanceof List) {
          addToTableOfContent((List<Object>) toc.get(toc.size() - 1), head, anchor, --headLevel);
          return;
View Full Code Here

    return fTableOfContentTag;
  }

  private void addToTableOfContent(List<Object> toc, String head, String anchor, int headLevel) {
    if (headLevel == 1) {
      toc.add(new StringPair(head, anchor));
    } else {
      if (toc.size() > 0) {
        if (toc.get(toc.size() - 1) instanceof List) {
          addToTableOfContent((List<Object>) toc.get(toc.size() - 1), head, anchor, --headLevel);
          return;
View Full Code Here

    return fTableOfContentTag;
  }

  private void addToTableOfContent(List<Object> toc, String head, String anchor, int headLevel) {
    if (headLevel == 1) {
      toc.add(new StringPair(head, anchor));
    } else {
      if (toc.size() > 0) {
        if (toc.get(toc.size() - 1) instanceof List) {
          addToTableOfContent((List<Object>) toc.get(toc.size() - 1), head, anchor, --headLevel);
          return;
View Full Code Here

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

    return fTableOfContentTag;
  }

  private void addToTableOfContent(List<Object> toc, String head, String anchor, int headLevel) {
    if (headLevel == 1) {
      toc.add(new StringPair(head, anchor));
    } else {
      if (toc.size() > 0) {
        if (toc.get(toc.size() - 1) instanceof List) {
          addToTableOfContent((List<Object>) toc.get(toc.size() - 1), head, anchor, --headLevel);
          return;
View Full Code Here

    return fTableOfContentTag;
  }

  private void addToTableOfContent(List<Object> toc, String head, String anchor, int headLevel) {
    if (headLevel == 1) {
      toc.add(new StringPair(head, anchor));
    } else {
      if (toc.size() > 0) {
        if (toc.get(toc.size() - 1) instanceof List) {
          addToTableOfContent((List<Object>) toc.get(toc.size() - 1), head, anchor, --headLevel);
          return;
View Full Code Here

TOP

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

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.