Package info.bliki.wiki.tags

Examples of info.bliki.wiki.tags.HTMLTag


      if (hashSection == null) {
        String pageName = Encoder.normaliseTitle(fPageTitle, true, ' ',
            true);
        // self link?
        if (title.equals(pageName)) {
          HTMLTag selfLink = new HTMLTag("strong");
          selfLink.addAttribute("class", "selflink", false);
          pushNode(selfLink);
          selfLink.addChild(new ContentToken(description));
          popNode();
          return;
        }
      }
View Full Code Here


        } else {
          break;
        }
      }
      if (stackSize() == 0 && (node instanceof HTMLTag)) {
        HTMLTag defParent = ((HTMLTag) node).getDefaultParentTag();
        if (defParent != null) {
          pushNode((HTMLTag) defParent.clone());
        }
      }
    } else {
      while (stackSize() > 0) {
        popNode();
View Full Code Here

          if (fSource[fCurrentPosition++] == '{' && fSource[fCurrentPosition++] == '{') {
            int startPosition = fCurrentPosition;
            if (fSource[fCurrentPosition] == '\n') {
              int preStartPosition = startPosition + 1;
              if (readUntil("\n}}}")) {
                TagToken preTag = new HTMLTag("pre");
                createContentTag(startPosition, fCurrentPosition - 3, preTag);
                continue;
              }
            }
            if (readUntil("}}}")) {
              TagToken ttTag = new HTMLTag("tt");
              createContentTag(startPosition, fCurrentPosition - 3, ttTag);
              continue;
            }
          }
          break;
        case '`':
          int startPosition = fCurrentPosition;
          if (readUntil("`")) {
            createContentTag(startPosition, fCurrentPosition - 1, new HTMLTag("tt"));
            continue;
          }
          break;
        case '[':
          if (parseWikiLink()) {
View Full Code Here

  private boolean handleSourroundingTags1(String tagName, TagToken tag) {
    createContentToken(fWhiteStart, fWhiteStartPosition, 2);
    if (fWikiModel.stackSize() > 0 && fWikiModel.peekNode().equals(tag)) {
      fWikiModel.popNode();
    } else {
      fWikiModel.pushNode(new HTMLTag(tagName));
    }
    return true;
  }
View Full Code Here

      ++fCurrentPosition;
      createContentToken(fWhiteStart, fWhiteStartPosition, 2);
      if (fWikiModel.stackSize() > 0 && fWikiModel.peekNode().equals(tag)) {
        fWikiModel.popNode();
      } else {
        fWikiModel.pushNode(new HTMLTag(tagName));
      }
      return true;
    }
    return false;
  }
View Full Code Here

        } else {
          break;
        }
      }
      if (stackSize() == 0 && (node instanceof HTMLTag)) {
        HTMLTag defParent = ((HTMLTag) node).getDefaultParentTag();
        if (defParent != null) {
          pushNode((HTMLTag) defParent.clone());
        }
      }
    } else {
      while (stackSize() > 0) {
        popNode();
View Full Code Here

      String title = Encoder.normaliseTitle(topic, true, ' ', true);
      if (hashSection == null) {
        String pageName = Encoder.normaliseTitle(fPageTitle, true, ' ', true);
        // self link?
        if (title.equals(pageName)) {
          HTMLTag selfLink = new HTMLTag("strong");
          selfLink.addAttribute("class", "selflink", false);
          pushNode(selfLink);
          selfLink.addChild(new ContentToken(description));
          popNode();
          return;
        }
      }
     
View Full Code Here

      String title = Encoder.normaliseTitle(topic, true, ' ', true);
      if (hashSection == null) {
        String pageName = Encoder.normaliseTitle(fPageTitle, true, ' ', true);
        // self link?
        if (title.equals(pageName)) {
          HTMLTag selfLink = new HTMLTag("strong");
          selfLink.addAttribute("class", "selflink", false);
          pushNode(selfLink);
          selfLink.addChild(new ContentToken(description));
          popNode();
          return;
        }
      }
     
View Full Code Here

        } else {
          break;
        }
      }
      if (stackSize() == 0 && (node instanceof HTMLTag)) {
        HTMLTag defParent = ((HTMLTag) node).getDefaultParentTag();
        if (defParent != null) {
          pushNode((HTMLTag) defParent.clone());
        }
      }
    } else {
      while (stackSize() > 0) {
        popNode();
View Full Code Here

        } else {
          break;
        }
      }
      if (stackSize() == 0 && (node instanceof HTMLTag)) {
        HTMLTag defParent = ((HTMLTag) node).getDefaultParentTag();
        if (defParent != null) {
          pushNode((HTMLTag) defParent.clone());
        }
      }
    } else {
      while (stackSize() > 0) {
        popNode();
View Full Code Here

TOP

Related Classes of info.bliki.wiki.tags.HTMLTag

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.