Package freenet.support

Examples of freenet.support.HTMLNode.addChild()


      getter.start(clientContext);
    }

    public synchronized HTMLNode renderRow() {
      HTMLNode row = new HTMLNode("tr");
      row.addChild("td").addChild("p", filename.toString());
     
      if(uomFetcher != null)
        row.addChild("td").addChild("#", l10n("fetchingFromUOM"));
      else if(lastProgress == null)
        row.addChild(QueueToadlet.createProgressCell(false, true, COMPRESS_STATE.WORKING, 0, 0, 0, 0, 0, false, false));
View Full Code Here


    public synchronized HTMLNode renderRow() {
      HTMLNode row = new HTMLNode("tr");
      row.addChild("td").addChild("p", filename.toString());
     
      if(uomFetcher != null)
        row.addChild("td").addChild("#", l10n("fetchingFromUOM"));
      else if(lastProgress == null)
        row.addChild(QueueToadlet.createProgressCell(false, true, COMPRESS_STATE.WORKING, 0, 0, 0, 0, 0, false, false));
      else
        row.addChild(QueueToadlet.createProgressCell(false,
            true, COMPRESS_STATE.WORKING, lastProgress.succeedBlocks, lastProgress.failedBlocks, lastProgress.fatallyFailedBlocks, lastProgress.minSuccessfulBlocks, lastProgress.totalBlocks, lastProgress.finalizedTotal, false));
View Full Code Here

      row.addChild("td").addChild("p", filename.toString());
     
      if(uomFetcher != null)
        row.addChild("td").addChild("#", l10n("fetchingFromUOM"));
      else if(lastProgress == null)
        row.addChild(QueueToadlet.createProgressCell(false, true, COMPRESS_STATE.WORKING, 0, 0, 0, 0, 0, false, false));
      else
        row.addChild(QueueToadlet.createProgressCell(false,
            true, COMPRESS_STATE.WORKING, lastProgress.succeedBlocks, lastProgress.failedBlocks, lastProgress.fatallyFailedBlocks, lastProgress.minSuccessfulBlocks, lastProgress.totalBlocks, lastProgress.finalizedTotal, false));
      return row;
    }
View Full Code Here

      if(uomFetcher != null)
        row.addChild("td").addChild("#", l10n("fetchingFromUOM"));
      else if(lastProgress == null)
        row.addChild(QueueToadlet.createProgressCell(false, true, COMPRESS_STATE.WORKING, 0, 0, 0, 0, 0, false, false));
      else
        row.addChild(QueueToadlet.createProgressCell(false,
            true, COMPRESS_STATE.WORKING, lastProgress.succeedBlocks, lastProgress.failedBlocks, lastProgress.fatallyFailedBlocks, lastProgress.minSuccessfulBlocks, lastProgress.totalBlocks, lastProgress.finalizedTotal, false));
      return row;
    }

    public void fetchFromUOM() {
View Full Code Here

  }

  @Override
  public HTMLNode getHTMLText() {
    HTMLNode alertNode = new HTMLNode("div");
    alertNode.addChild("a", "href",
        "/?newbookmark=" + uri + "&desc=" + name + "&hasAnActivelink=" + hasAnActivelink)
        .addChild(
            "img",
            new String[] { "src", "alt", "title" },
            new String[] { "/static/icon/bookmark-new.png", l10n("addAsABookmark"),
View Full Code Here

        .addChild(
            "img",
            new String[] { "src", "alt", "title" },
            new String[] { "/static/icon/bookmark-new.png", l10n("addAsABookmark"),
                l10n("addAsABookmark") });
    alertNode.addChild("a", "href", "/freenet:" + uri.toString()).addChild("#", name);
    if (description != null && description.length() != 0) {
      String[] lines = description.split("\n");
      alertNode.addChild("br");
      alertNode.addChild("br");
      alertNode.addChild("#", l10n("bookmarkDescription"));
View Full Code Here

            new String[] { "/static/icon/bookmark-new.png", l10n("addAsABookmark"),
                l10n("addAsABookmark") });
    alertNode.addChild("a", "href", "/freenet:" + uri.toString()).addChild("#", name);
    if (description != null && description.length() != 0) {
      String[] lines = description.split("\n");
      alertNode.addChild("br");
      alertNode.addChild("br");
      alertNode.addChild("#", l10n("bookmarkDescription"));
      alertNode.addChild("br");
      for (int i = 0; i < lines.length; i++) {
        alertNode.addChild("#", lines[i]);
View Full Code Here

                l10n("addAsABookmark") });
    alertNode.addChild("a", "href", "/freenet:" + uri.toString()).addChild("#", name);
    if (description != null && description.length() != 0) {
      String[] lines = description.split("\n");
      alertNode.addChild("br");
      alertNode.addChild("br");
      alertNode.addChild("#", l10n("bookmarkDescription"));
      alertNode.addChild("br");
      for (int i = 0; i < lines.length; i++) {
        alertNode.addChild("#", lines[i]);
        if (i != lines.length - 1)
View Full Code Here

    alertNode.addChild("a", "href", "/freenet:" + uri.toString()).addChild("#", name);
    if (description != null && description.length() != 0) {
      String[] lines = description.split("\n");
      alertNode.addChild("br");
      alertNode.addChild("br");
      alertNode.addChild("#", l10n("bookmarkDescription"));
      alertNode.addChild("br");
      for (int i = 0; i < lines.length; i++) {
        alertNode.addChild("#", lines[i]);
        if (i != lines.length - 1)
          alertNode.addChild("br");
View Full Code Here

    if (description != null && description.length() != 0) {
      String[] lines = description.split("\n");
      alertNode.addChild("br");
      alertNode.addChild("br");
      alertNode.addChild("#", l10n("bookmarkDescription"));
      alertNode.addChild("br");
      for (int i = 0; i < lines.length; i++) {
        alertNode.addChild("#", lines[i]);
        if (i != lines.length - 1)
          alertNode.addChild("br");
      }
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.