Package freenet.node.useralerts

Examples of freenet.node.useralerts.AbstractUserAlert


    UserAlert toRegister = null;
    synchronized(this) {
      readyToDeploy = true;
      if(alert != null) return;
     
      toRegister = alert = new AbstractUserAlert(true, l10n("pluginUpdatedTitle", "name", pluginName), l10n("pluginUpdatedText", "name", pluginName), l10n("pluginUpdatedShortText", "name", pluginName), null, UserAlert.ERROR, true, NodeL10n.getBase().getString("UserAlert.hide"), true, this) {
       
        @Override
        public void onDismiss() {
          synchronized(PluginJarUpdater.this) {
            alert = null;
View Full Code Here


      // FIXME prb's can't be shared, right? Well they aren't here...
      prb.abort(RetrievalException.CANCELLED_BY_RECEIVER, "Cancelled by receiver");
    }

    protected void onReceiveFailure() {
      UserAlert alert = new AbstractUserAlert() {
        @Override
        public String dismissButtonText() {
          return NodeL10n.getBase().getString("UserAlert.hide");
        }
        @Override
View Full Code Here

      };
      node.clientCore.alerts.register(alert);
    }

    private void onReceiveSuccess() {
      UserAlert alert = new AbstractUserAlert() {
        @Override
        public String dismissButtonText() {
          return NodeL10n.getBase().getString("UserAlert.hide");
        }
        @Override
View Full Code Here

      node.clientCore.alerts.register(alert);
    }

    /** Ask the user whether (s)he wants to download a file from a direct peer */
    public UserAlert askUserUserAlert() {
      return new AbstractUserAlert() {
        @Override
        public String dismissButtonText() {
          return null; // Cannot hide, but can reject
        }
        @Override
View Full Code Here

TOP

Related Classes of freenet.node.useralerts.AbstractUserAlert

Copyright © 2018 www.massapicom. 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.