Examples of dismiss()


Examples of android.app.AlertDialog.dismiss()

        alert.setButton("Login", new DialogInterface.OnClickListener()
        {

          public void onClick(DialogInterface dialog, int whichButton)
          {
            alert.dismiss();
           
            final String url = client.getUserAuthorizationUrl();

            Log.i(this.getClass().getName(), url);
             
View Full Code Here

Examples of android.app.AlertDialog.dismiss()

    if (authScheme != null) {
      final AlertDialog alert = new AlertDialog.Builder(this).create();
      alert.setMessage("To get started, you will need to login to " + providerName);
      alert.setButton("Login", new DialogInterface.OnClickListener() {
        public void onClick(DialogInterface dialog, int whichButton) {
          alert.dismiss();

          String url = null;
          try {
            url = authScheme.getAuthorizationUrl(scheme + "://");
            persistRequestToken(authScheme.getRequestToken(), providerName);
View Full Code Here

Examples of android.app.Dialog.dismiss()

        DialogInterface.OnClickListener itemListener =
          new DialogInterface.OnClickListener() {
            @Override
            public void onClick(DialogInterface dialog, int which) {
              state.selected = which;
              dialog.dismiss();
              SecurityUtils.CipherInfo info = SecurityUtils.getCipherInfo();
              if (restoreSecrets(state.getSelectedRestorePoint(), info))
                showToast(R.string.restore_succeeded);
            }
          };
View Full Code Here

Examples of net.pterodactylus.util.notify.Notification.dismiss()

  protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
    super.processTemplate(request, templateContext);
    String notificationId = request.getHttpRequest().getPartAsStringFailsafe("notification", 36);
    Notification notification = webInterface.getNotifications().getNotification(notificationId);
    if ((notification != null) && notification.isDismissable()) {
      notification.dismiss();
    }
    String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
    throw new RedirectException(returnPage);
  }
View Full Code Here

Examples of net.pterodactylus.util.notify.Notification.dismiss()

      return createErrorJsonObject("invalid-notification-id");
    }
    if (!notification.isDismissable()) {
      return createErrorJsonObject("not-dismissable");
    }
    notification.dismiss();
    return createSuccessJsonObject();
  }

  /**
   * {@inheritDoc}
 
View Full Code Here

Examples of net.pterodactylus.util.notify.TemplateNotification.dismiss()

    ticker.schedule(new Runnable() {

      @Override
      public void run() {
        startupNotification.dismiss();
      }
    }, 2, TimeUnit.MINUTES);

    Template wotMissingNotificationTemplate = TemplateParser.parse(createReader("/templates/notify/wotMissingNotification.html"));
    final TemplateNotification wotMissingNotification = new TemplateNotification("wot-missing-notification", wotMissingNotificationTemplate);
View Full Code Here

Examples of net.pterodactylus.util.notify.TemplateNotification.dismiss()

      @Override
      @SuppressWarnings("synthetic-access")
      public void run() {
        if (getCore().getIdentityManager().isConnected()) {
          wotMissingNotification.dismiss();
        } else {
          notificationManager.addNotification(wotMissingNotification);
        }
      }
View Full Code Here

Examples of org.chromium.sdk.Browser.TabFetcher.dismiss()

        return new EmbeddingTabConnectorImpl(targetTabConnector);
      }

      public void disposeConnection() {
        tabFetcher.dismiss();
      }
    };
  }

  private static JavascriptVmEmbedder.ConnectionToRemote connectWip(final WipBrowser browser,
View Full Code Here

Examples of org.openqa.selenium.Alert.dismiss()

        final Alert alert = driver.switchTo().alert();
        final String alertText = alert.getText();
        if (accept) {
            alert.accept();
        } else {
            alert.dismiss();
        }
        return alertText;
    }

}
View Full Code Here

Examples of org.openqa.selenium.Alert.dismiss()

    driver.get(url);
    WebElement element = driver.findElement(By.id("theForm"));
    element.submit();
    Alert alert = driver.switchTo().alert();
    String text = alert.getText();
    alert.dismiss();

    assertEquals("Tasty cheese", text);
  }

  @Test
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.