Package freenet.support

Examples of freenet.support.HTMLNode.addChild()


          if(key == null || key.equals("")) continue;
          form.addChild("#", l10n("key") + ":");
          form.addChild("br");
          form.addChild("#", key);
          form.addChild("br");
          form.addChild("input", new String[] { "type", "name", "value" },
              new String[] { "hidden", "key-"+x, key });
        }
        form.addChild("label", "for", "descB", (l10n("recommendDescription") + ' '));
        form.addChild("br");
        form.addChild("textarea",
View Full Code Here


          form.addChild("#", key);
          form.addChild("br");
          form.addChild("input", new String[] { "type", "name", "value" },
              new String[] { "hidden", "key-"+x, key });
        }
        form.addChild("label", "for", "descB", (l10n("recommendDescription") + ' '));
        form.addChild("br");
        form.addChild("textarea",
                new String[]{"id", "name", "row", "cols"},
                new String[]{"descB", "description", "3", "70"});
        form.addChild("br");
View Full Code Here

          form.addChild("br");
          form.addChild("input", new String[] { "type", "name", "value" },
              new String[] { "hidden", "key-"+x, key });
        }
        form.addChild("label", "for", "descB", (l10n("recommendDescription") + ' '));
        form.addChild("br");
        form.addChild("textarea",
                new String[]{"id", "name", "row", "cols"},
                new String[]{"descB", "description", "3", "70"});
        form.addChild("br");
View Full Code Here

          form.addChild("input", new String[] { "type", "name", "value" },
              new String[] { "hidden", "key-"+x, key });
        }
        form.addChild("label", "for", "descB", (l10n("recommendDescription") + ' '));
        form.addChild("br");
        form.addChild("textarea",
                new String[]{"id", "name", "row", "cols"},
                new String[]{"descB", "description", "3", "70"});
        form.addChild("br");

        HTMLNode peerTable = form.addChild("table", "class", "darknet_connections");
View Full Code Here

        form.addChild("label", "for", "descB", (l10n("recommendDescription") + ' '));
        form.addChild("br");
        form.addChild("textarea",
                new String[]{"id", "name", "row", "cols"},
                new String[]{"descB", "description", "3", "70"});
        form.addChild("br");

        HTMLNode peerTable = form.addChild("table", "class", "darknet_connections");
        peerTable.addChild("th", "colspan", "2", l10n("recommendToFriends"));
        for(DarknetPeerNode peer : core.node.getDarknetConnections()) {
          HTMLNode peerRow = peerTable.addChild("tr", "class", "darknet_connections_normal");
View Full Code Here

                new String[]{"id", "name", "row", "cols"},
                new String[]{"descB", "description", "3", "70"});
        form.addChild("br");

        HTMLNode peerTable = form.addChild("table", "class", "darknet_connections");
        peerTable.addChild("th", "colspan", "2", l10n("recommendToFriends"));
        for(DarknetPeerNode peer : core.node.getDarknetConnections()) {
          HTMLNode peerRow = peerTable.addChild("tr", "class", "darknet_connections_normal");
          peerRow.addChild("td", "class", "peer-marker").addChild("input",
                  new String[] { "type", "name" },
                  new String[] { "checkbox", "node_" + peer.hashCode() });
View Full Code Here

        HTMLNode peerTable = form.addChild("table", "class", "darknet_connections");
        peerTable.addChild("th", "colspan", "2", l10n("recommendToFriends"));
        for(DarknetPeerNode peer : core.node.getDarknetConnections()) {
          HTMLNode peerRow = peerTable.addChild("tr", "class", "darknet_connections_normal");
          peerRow.addChild("td", "class", "peer-marker").addChild("input",
                  new String[] { "type", "name" },
                  new String[] { "checkbox", "node_" + peer.hashCode() });
          peerRow.addChild("td", "class", "peer-name").addChild("#", peer.getName());
        }
View Full Code Here

        for(DarknetPeerNode peer : core.node.getDarknetConnections()) {
          HTMLNode peerRow = peerTable.addChild("tr", "class", "darknet_connections_normal");
          peerRow.addChild("td", "class", "peer-marker").addChild("input",
                  new String[] { "type", "name" },
                  new String[] { "checkbox", "node_" + peer.hashCode() });
          peerRow.addChild("td", "class", "peer-name").addChild("#", peer.getName());
        }

        form.addChild("input",
                new String[]{"type", "name", "value"},
                new String[]{"submit", "recommend_uri", l10n("recommend")});
View Full Code Here

    HTMLNode pageNode = page.outer;
    HTMLNode contentNode = page.content;
    Logger.warning(this, e.toString());
    HTMLNode alert = ctx.getPageMaker().getInfobox("infobox-alert",
      l10n("downloadFiles"), contentNode, "grouped-downloads", true);
    alert.addChild("ul", l10n("downloadDisallowed", "directory", downloadPath));
    alert.addChild("a", "href", path(),
      NodeL10n.getBase().getString("Toadlet.returnToQueuepage"));
    writeHTMLReply(ctx, 200, "OK", pageNode.generate());
  }
View Full Code Here

    HTMLNode contentNode = page.content;
    Logger.warning(this, e.toString());
    HTMLNode alert = ctx.getPageMaker().getInfobox("infobox-alert",
      l10n("downloadFiles"), contentNode, "grouped-downloads", true);
    alert.addChild("ul", l10n("downloadDisallowed", "directory", downloadPath));
    alert.addChild("a", "href", path(),
      NodeL10n.getBase().getString("Toadlet.returnToQueuepage"));
    writeHTMLReply(ctx, 200, "OK", pageNode.generate());
  }

  private File getDownloadsDir (String downloadPath) throws NotAllowedException {
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.