Package freenet.support

Examples of freenet.support.HTMLNode.addChild()


    HTMLNode formNode = alertNode.addChild("form", new String[] { "action", "method" }, new String[] { "/config/"+sc.getPrefix(), "post" });
    formNode.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", node.clientCore.formPassword });
    formNode.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "subconfig", sc.getPrefix() });
    HTMLNode listNode = formNode.addChild("ul", "class", "config");
    HTMLNode itemNode = listNode.addChild("li");
    itemNode.addChild("span", new String[]{ "class", "title", "style" },
        new String[]{ "configshortdesc", NodeL10n.getBase().getString("ConfigToadlet.defaultIs", new String[] { "default" }, new String[] { o.getDefault() }),
        "cursor: help;" }).addChild(o.getShortDescNode());
    itemNode.addChild("input", new String[] { "type", "class", "alt", "name", "value" }, new String[] { "text", "config", o.getShortDesc(), "node.name", o.getValueDisplayString() });
    itemNode.addChild("span", "class", "configlongdesc").addChild(o.getLongDescNode());
    formNode.addChild("input", new String[] { "type", "value" }, new String[] { "submit", NodeL10n.getBase().getString("UserAlert.apply") });
View Full Code Here


    HTMLNode listNode = formNode.addChild("ul", "class", "config");
    HTMLNode itemNode = listNode.addChild("li");
    itemNode.addChild("span", new String[]{ "class", "title", "style" },
        new String[]{ "configshortdesc", NodeL10n.getBase().getString("ConfigToadlet.defaultIs", new String[] { "default" }, new String[] { o.getDefault() }),
        "cursor: help;" }).addChild(o.getShortDescNode());
    itemNode.addChild("input", new String[] { "type", "class", "alt", "name", "value" }, new String[] { "text", "config", o.getShortDesc(), "node.name", o.getValueDisplayString() });
    itemNode.addChild("span", "class", "configlongdesc").addChild(o.getLongDescNode());
    formNode.addChild("input", new String[] { "type", "value" }, new String[] { "submit", NodeL10n.getBase().getString("UserAlert.apply") });
    formNode.addChild("input", new String[] { "type", "value" }, new String[] { "reset", NodeL10n.getBase().getString("UserAlert.reset") });

    return alertNode;
View Full Code Here

    HTMLNode itemNode = listNode.addChild("li");
    itemNode.addChild("span", new String[]{ "class", "title", "style" },
        new String[]{ "configshortdesc", NodeL10n.getBase().getString("ConfigToadlet.defaultIs", new String[] { "default" }, new String[] { o.getDefault() }),
        "cursor: help;" }).addChild(o.getShortDescNode());
    itemNode.addChild("input", new String[] { "type", "class", "alt", "name", "value" }, new String[] { "text", "config", o.getShortDesc(), "node.name", o.getValueDisplayString() });
    itemNode.addChild("span", "class", "configlongdesc").addChild(o.getLongDescNode());
    formNode.addChild("input", new String[] { "type", "value" }, new String[] { "submit", NodeL10n.getBase().getString("UserAlert.apply") });
    formNode.addChild("input", new String[] { "type", "value" }, new String[] { "reset", NodeL10n.getBase().getString("UserAlert.reset") });

    return alertNode;
  }
View Full Code Here

  @Override
  public HTMLNode getHTMLText() {
    HTMLNode text = new HTMLNode("div");
    synchronized(events) {
      for(StoringUserEvent<T> event : events.values()) {
        text.addChild(event.getEventHTMLText());
      }
    }
    return text;
  }
View Full Code Here

  }

  @Override
  public HTMLNode getHTMLText() {
    HTMLNode alertNode = new HTMLNode("div");
    alertNode.addChild("a", "href", "/" + uri).addChild("#", uri.toShortString());
    if (description != null && description.length() != 0) {
      String[] lines = description.split("\n");
      alertNode.addChild("br");
      alertNode.addChild("br");
      alertNode.addChild("#", l10n("fileDescription"));
View Full Code Here

  public HTMLNode getHTMLText() {
    HTMLNode alertNode = new HTMLNode("div");
    alertNode.addChild("a", "href", "/" + uri).addChild("#", uri.toShortString());
    if (description != null && description.length() != 0) {
      String[] lines = description.split("\n");
      alertNode.addChild("br");
      alertNode.addChild("br");
      alertNode.addChild("#", l10n("fileDescription"));
      alertNode.addChild("br");
      for (int i = 0; i < lines.length; i++) {
        alertNode.addChild("#", lines[i]);
View Full Code Here

    HTMLNode alertNode = new HTMLNode("div");
    alertNode.addChild("a", "href", "/" + uri).addChild("#", uri.toShortString());
    if (description != null && description.length() != 0) {
      String[] lines = description.split("\n");
      alertNode.addChild("br");
      alertNode.addChild("br");
      alertNode.addChild("#", l10n("fileDescription"));
      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", "/" + uri).addChild("#", uri.toShortString());
    if (description != null && description.length() != 0) {
      String[] lines = description.split("\n");
      alertNode.addChild("br");
      alertNode.addChild("br");
      alertNode.addChild("#", l10n("fileDescription"));
      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("fileDescription"));
      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

      alertNode.addChild("br");
      alertNode.addChild("br");
      alertNode.addChild("#", l10n("fileDescription"));
      alertNode.addChild("br");
      for (int i = 0; i < lines.length; i++) {
        alertNode.addChild("#", lines[i]);
        if (i != lines.length - 1)
          alertNode.addChild("br");
      }
    }
    return alertNode;
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.