Package freenet.support

Examples of freenet.support.HTMLNode.addChild()


        DateFormat.getInstance().format(new Date(composedTime)),
        DateFormat.getInstance().format(new Date(sentTime)),
        DateFormat.getInstance().format(new Date(receivedTime)) }));
    String[] lines = messageText.split("\n");
    for (int i = 0, c = lines.length; i < c; i++) {
      alertNode.addChild("#", lines[i]);
      if (i != lines.length - 1)
        alertNode.addChild("br");
    }
   
    DarknetPeerNode pn = (DarknetPeerNode) peerRef.get();
View Full Code Here


        DateFormat.getInstance().format(new Date(receivedTime)) }));
    String[] lines = messageText.split("\n");
    for (int i = 0, c = lines.length; i < c; i++) {
      alertNode.addChild("#", lines[i]);
      if (i != lines.length - 1)
        alertNode.addChild("br");
    }
   
    DarknetPeerNode pn = (DarknetPeerNode) peerRef.get();
    if(pn != null)
      alertNode.addChild("p").addChild("a", "href",
View Full Code Here

        alertNode.addChild("br");
    }
   
    DarknetPeerNode pn = (DarknetPeerNode) peerRef.get();
    if(pn != null)
      alertNode.addChild("p").addChild("a", "href",
          "/send_n2ntm/?peernode_hashcode=" + pn.hashCode(),
          l10n("reply"));
    return alertNode;
  }
View Full Code Here

    synchronized(this) {
      if(isOutdated)
        // Arguably we should provide a button to turn on auto-update,
        // but very few users will turn off auto-update completely.
        // This is useful to not lose those who do however.
        alertNode.addChild("#", l10n("outdatedUpdate"));
      else if (peers == 0 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("noPeersDarknet"));
      } else if(conns < 3 && clockProblem > MIN_CLOCK_PROBLEM_PEER_ALERT_THRESHOLD) {
        alertNode.addChild("#", l10n("clockProblem", "count", Integer.toString(clockProblem)));
      } else if(conns < 3 && connError > MIN_CONN_ERROR_ALERT_THRESHOLD) {
View Full Code Here

        // Arguably we should provide a button to turn on auto-update,
        // but very few users will turn off auto-update completely.
        // This is useful to not lose those who do however.
        alertNode.addChild("#", l10n("outdatedUpdate"));
      else if (peers == 0 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("noPeersDarknet"));
      } else if(conns < 3 && clockProblem > MIN_CLOCK_PROBLEM_PEER_ALERT_THRESHOLD) {
        alertNode.addChild("#", l10n("clockProblem", "count", Integer.toString(clockProblem)));
      } else if(conns < 3 && connError > MIN_CONN_ERROR_ALERT_THRESHOLD) {
        alertNode.addChild("#", l10n("connError", "count", Integer.toString(connError)));
      } else if (conns == 0 && !isOpennetEnabled) {
View Full Code Here

        // This is useful to not lose those who do however.
        alertNode.addChild("#", l10n("outdatedUpdate"));
      else if (peers == 0 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("noPeersDarknet"));
      } else if(conns < 3 && clockProblem > MIN_CLOCK_PROBLEM_PEER_ALERT_THRESHOLD) {
        alertNode.addChild("#", l10n("clockProblem", "count", Integer.toString(clockProblem)));
      } else if(conns < 3 && connError > MIN_CONN_ERROR_ALERT_THRESHOLD) {
        alertNode.addChild("#", l10n("connError", "count", Integer.toString(connError)));
      } else if (conns == 0 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("noConns"));
      } else if (conns == 1 && !isOpennetEnabled) {
View Full Code Here

      else if (peers == 0 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("noPeersDarknet"));
      } else if(conns < 3 && clockProblem > MIN_CLOCK_PROBLEM_PEER_ALERT_THRESHOLD) {
        alertNode.addChild("#", l10n("clockProblem", "count", Integer.toString(clockProblem)));
      } else if(conns < 3 && connError > MIN_CONN_ERROR_ALERT_THRESHOLD) {
        alertNode.addChild("#", l10n("connError", "count", Integer.toString(connError)));
      } else if (conns == 0 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("noConns"));
      } else if (conns == 1 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("oneConn"));
      } else if (conns == 2 && !isOpennetEnabled) {
View Full Code Here

      } else if(conns < 3 && clockProblem > MIN_CLOCK_PROBLEM_PEER_ALERT_THRESHOLD) {
        alertNode.addChild("#", l10n("clockProblem", "count", Integer.toString(clockProblem)));
      } else if(conns < 3 && connError > MIN_CONN_ERROR_ALERT_THRESHOLD) {
        alertNode.addChild("#", l10n("connError", "count", Integer.toString(connError)));
      } else if (conns == 0 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("noConns"));
      } else if (conns == 1 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("oneConn"));
      } else if (conns == 2 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("twoConns"));
      } else if (bwlimitDelayAlertRelevant && (bwlimitDelayTime > NodeStats.MAX_BWLIMIT_DELAY_TIME_ALERT_THRESHOLD)) {
View Full Code Here

      } else if(conns < 3 && connError > MIN_CONN_ERROR_ALERT_THRESHOLD) {
        alertNode.addChild("#", l10n("connError", "count", Integer.toString(connError)));
      } else if (conns == 0 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("noConns"));
      } else if (conns == 1 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("oneConn"));
      } else if (conns == 2 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("twoConns"));
      } else if (bwlimitDelayAlertRelevant && (bwlimitDelayTime > NodeStats.MAX_BWLIMIT_DELAY_TIME_ALERT_THRESHOLD)) {
        alertNode.addChild("#", l10n("tooHighBwlimitDelayTime", new String[] { "delay", "max" },
            new String[] { Integer.toString(bwlimitDelayTime), Long.toString(NodeStats.MAX_BWLIMIT_DELAY_TIME_ALERT_THRESHOLD)}));
View Full Code Here

      } else if (conns == 0 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("noConns"));
      } else if (conns == 1 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("oneConn"));
      } else if (conns == 2 && !isOpennetEnabled) {
        alertNode.addChild("#", l10n("twoConns"));
      } else if (bwlimitDelayAlertRelevant && (bwlimitDelayTime > NodeStats.MAX_BWLIMIT_DELAY_TIME_ALERT_THRESHOLD)) {
        alertNode.addChild("#", l10n("tooHighBwlimitDelayTime", new String[] { "delay", "max" },
            new String[] { Integer.toString(bwlimitDelayTime), Long.toString(NodeStats.MAX_BWLIMIT_DELAY_TIME_ALERT_THRESHOLD)}));
      } else if (nodeAveragePingAlertRelevant && (nodeAveragePingTime > NodeStats.MAX_NODE_AVERAGE_PING_TIME_ALERT_THRESHOLD)) {
        alertNode.addChild("#", l10n("tooHighPingTime", new String[] { "ping", "max" },
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.