Package freenet.support

Examples of freenet.support.HTMLNode.addAttribute()


    //Add option dropdown for languages
    Option<?> language = config.get("node").getOption("l10n");
    EnumerableOptionCallback l10nCallback = (EnumerableOptionCallback)language.getCallback();
    HTMLNode dropDown = ConfigToadlet.addComboBox(language.getValueDisplayString(), l10nCallback, language.getName(), false);
    //Submit automatically upon selection if Javascript.
    dropDown.addAttribute("onchange", "this.form.submit()");
    languageForm.addChild(dropDown);
    //Otherwise fall back to submit button if no Javascript
    languageForm.addChild("noscript").addChild("input", "type", "submit");
  }
View Full Code Here


              .toString(Boolean.valueOf(value)));
        } else {
          defaultValue = o.getDefault();
        }

        configItemNode.addAttribute("class", optionType.cssClass);
        configItemNode
            .addChild("a", new String[] { "name", "id" },
                new String[] { configName, configName })
            .addChild(
                "span",
View Full Code Here

      pageNode.addCustomStyleSheet(styleSheet);
    }
    for (Map<String, String> linkNodeParameters : getAdditionalLinkNodes(request)) {
      HTMLNode linkNode = pageNode.headNode.addChild("link");
      for (Entry<String, String> parameter : linkNodeParameters.entrySet()) {
        linkNode.addAttribute(parameter.getKey(), parameter.getValue());
      }
    }
    String shortcutIcon = getShortcutIcon();
    if (shortcutIcon != null) {
      pageNode.addForwardLink("icon", shortcutIcon);
View Full Code Here

        new String[] { "0", "100%", "message", ref.getMessageID()});

    HTMLNode row = table.addChild("tr", "class", "message");
   
    if(mFirstUnread && !ref.wasRead()) {
      row.addAttribute("id", "FirstUnreadMessage");
      mFirstUnread = false;
    }

    addAuthorNode(row, author);
View Full Code Here

      HTMLNode increaseTrustRadio = increaseTrustDiv.addChild("input",
        new String[] { "type", "name", "value"},
        new String[] { "radio", "RateMessage" , Integer.toString(INCREASE_TRUST_VALUE)});

      if(selectedRadio == increaseTrustDiv)
        increaseTrustRadio.addAttribute("checked", "checked");

      if(!increaseWillUnIgnore)
        increaseTrustDiv.addChild("#", l10n().getString("NewReplyPage.RateMessageBox.IncreaseTrust", "value", Byte.toString(INCREASE_TRUST_VALUE)));
      else
        increaseTrustDiv.addChild("#", l10n().getString("NewReplyPage.RateMessageBox.IncreaseTrustToPositive", "value", Byte.toString(INCREASE_TRUST_VALUE)));
View Full Code Here

      new String[] { "radio", "RateMessage" , "0"});

    if(selectedRadio == keepTrustDiv ||
        (selectedRadio == increaseTrustDiv && !increasePossible) ||
        (selectedRadio == decreaseTrustDiv && !decreasePossible))  {
      keepTrustRadio.addAttribute("checked", "checked");
    }

    keepTrustDiv.addChild("#", l10n().getString("NewReplyPage.RateMessageBox.KeepTrust"));

View Full Code Here

      HTMLNode decreaseTrustRadio = decreaseTrustDiv.addChild("input",
          new String[] { "type", "name", "value" },
          new String[] { "radio", "RateMessage" , Integer.toString(DECREASE_TRUST_VALUE)});

      if(selectedRadio == decreaseTrustDiv)
        decreaseTrustRadio.addAttribute("checked", "checked");

      if(!decreaseWillIgnore)
        decreaseTrustDiv.addChild("#", l10n().getString("NewReplyPage.RateMessageBox.DecreaseTrust", "value", Byte.toString(DECREASE_TRUST_VALUE)));
      else
        decreaseTrustDiv.addChild("#", l10n().getString("NewReplyPage.RateMessageBox.DecreaseTrustToNegative", "value", Byte.toString(DECREASE_TRUST_VALUE)));
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.