Package freenet.support

Examples of freenet.support.HTMLNode.addChild()


      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


          HTMLNode div = new HTMLNode("div");
          // Text saying the plugin has been updated...
          synchronized(this) {
         
            if(deployOnNoRevocation || deployOnNextNoRevocation) {
              div.addChild("#", l10n("willDeployAfterRevocationCheck", "name", pluginName));
            } else {
              div.addChild("#", l10n("pluginUpdatedText", new String[] { "name", "newVersion" }, new String[] { pluginName, Long.toString(fetchedVersion) }));
             
              // Form to deploy the updated version.
              // This is not the same as reloading because we haven't written it yet.
View Full Code Here

          synchronized(this) {
         
            if(deployOnNoRevocation || deployOnNextNoRevocation) {
              div.addChild("#", l10n("willDeployAfterRevocationCheck", "name", pluginName));
            } else {
              div.addChild("#", l10n("pluginUpdatedText", new String[] { "name", "newVersion" }, new String[] { pluginName, Long.toString(fetchedVersion) }));
             
              // Form to deploy the updated version.
              // This is not the same as reloading because we haven't written it yet.
             
              HTMLNode formNode = div.addChild("form", new String[] { "action", "method" }, new String[] { PproxyToadlet.PATH, "post" });
View Full Code Here

             
              // Form to deploy the updated version.
              // This is not the same as reloading because we haven't written it yet.
             
              HTMLNode formNode = div.addChild("form", new String[] { "action", "method" }, new String[] { PproxyToadlet.PATH, "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", "update", pluginName });
              formNode.addChild("input", new String[] { "type", "value" }, new String[] { "submit", l10n("updatePlugin") });
            }
          }
          return div;
View Full Code Here

              // Form to deploy the updated version.
              // This is not the same as reloading because we haven't written it yet.
             
              HTMLNode formNode = div.addChild("form", new String[] { "action", "method" }, new String[] { PproxyToadlet.PATH, "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", "update", pluginName });
              formNode.addChild("input", new String[] { "type", "value" }, new String[] { "submit", l10n("updatePlugin") });
            }
          }
          return div;
        }
View Full Code Here

              // This is not the same as reloading because we haven't written it yet.
             
              HTMLNode formNode = div.addChild("form", new String[] { "action", "method" }, new String[] { PproxyToadlet.PATH, "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", "update", pluginName });
              formNode.addChild("input", new String[] { "type", "value" }, new String[] { "submit", l10n("updatePlugin") });
            }
          }
          return div;
        }
      };
View Full Code Here

  }
 
  private static HTMLNode getHTML(boolean disabledNotBlown, String msg) {
    HTMLNode div = new HTMLNode("div");
    if(disabledNotBlown) {
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.textDisabled"));
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.textDisabledDetail", "message", msg));
    } else {
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.text"));
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.textDetail", "message", msg));
    }
View Full Code Here

 
  private static HTMLNode getHTML(boolean disabledNotBlown, String msg) {
    HTMLNode div = new HTMLNode("div");
    if(disabledNotBlown) {
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.textDisabled"));
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.textDisabledDetail", "message", msg));
    } else {
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.text"));
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.textDetail", "message", msg));
    }
    return div;
View Full Code Here

    HTMLNode div = new HTMLNode("div");
    if(disabledNotBlown) {
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.textDisabled"));
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.textDisabledDetail", "message", msg));
    } else {
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.text"));
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.textDetail", "message", msg));
    }
    return div;
  }
View Full Code Here

    if(disabledNotBlown) {
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.textDisabled"));
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.textDisabledDetail", "message", msg));
    } else {
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.text"));
      div.addChild("p", NodeL10n.getBase().getString("RevocationKeyFoundUserAlert.textDetail", "message", msg));
    }
    return div;
  }

  private static String getText(boolean disabledNotBlown, String msg) {
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.