Package freenet.node.useralerts

Source Code of freenet.node.useralerts.SimpleUserAlert

/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
package freenet.node.useralerts;

import freenet.l10n.NodeL10n;
import freenet.support.HTMLNode;

public class SimpleUserAlert extends AbstractUserAlert {

  public SimpleUserAlert(boolean canDismiss, String title, String text, String shortText, short type) {
    this(canDismiss, title, text, shortText, type, null);
  }
 
  public SimpleUserAlert(boolean canDismiss, String title, String text, String shortText, short type, Object userIdentifier) {
    super(canDismiss, title, text, shortText, new HTMLNode("div", text), type, true, NodeL10n.getBase().getString("UserAlert.hide"), true, userIdentifier);
  }

  @Override
  public void isValid(boolean validity) {
    // Do nothing
  }

}
TOP

Related Classes of freenet.node.useralerts.SimpleUserAlert

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.