Examples of Alert


Examples of com.elastisys.scale.commons.net.smtp.alerter.Alert

      LOG.info("initial desired scaling group size is {}", desiredSize());
    } catch (CloudAdapterException e) {
      String message = format(
          "failed to determine initial size of scaling group: %s\n%s",
          e.getMessage(), Throwables.getStackTraceAsString(e));
      this.eventBus.post(new Alert(AlertTopics.POOL_FETCH.name(),
          AlertSeverity.ERROR, UtcTime.now(), message));
      LOG.error(message);
    }
  }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Alert

     * @param html
     * @param alertType
     */
    @Override
    public void addMessage(final String html, final AlertType alertType) {
        final Alert alert = new Alert(html);
        alert.setType(alertType);
        addMessage(alert);
    }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Alert

                    if(statusCode == Response.SC_OK) {
                        eventBus.fireEvent(new LoginEvent());
                    }
                    else if(statusCode == Response.SC_FORBIDDEN || statusCode == Response.SC_UNAUTHORIZED) {
                        view.setWaiting(false);
                        view.setMessage(new Alert(i18n.errors_password_mismatch(), AlertType.ERROR, false));
                    }
                    else {
                        throw new RuntimeException("Login could not understand response code: " + statusCode);
                    }
                }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Alert

            return;
        }
        requests.userRequest().sendPasswordHint(login.getUsername()).fire(new Receiver<String>() {
            @Override
            public void onSuccess(final String userEmail) {
                Alert message = null;
                if(userEmail != null) {
                    message = new Alert(i18n.login_passwordHint_sent(username, userEmail), AlertType.SUCCESS);
                } else {
                    message = new Alert(i18n.login_passwordHint_error(username), AlertType.ERROR);
                }
                if(message != null) {
                    shell.addMessage(message);
                }
            }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Alert

    SafeHtmlBuilder sb = new SafeHtmlBuilder();
    for (String error : errors) {
      sb.appendEscaped(error);
      sb.appendHtmlConstant("<br />");
    }
    errorsPanel.add(new Alert(sb.toSafeHtml().asString(), AlertType.ERROR));
  }
View Full Code Here

Examples of com.google.gxp.compiler.alerts.Alert

    return parser.parse(fileRef);
  }

  public void testEmpty() throws Exception {
    ParseTree tree = parse("");
    Alert alert = Iterables.getOnlyElement(tree.getAlerts());
    assertTrue(alert instanceof SaxAlert);
  }
View Full Code Here

Examples of com.google.gxp.compiler.alerts.Alert

  public void testUnknownElementNamespace() throws Exception {
    ParseTree tree = parse(
        "<gxp:template "
        + "xmlns:gxp='http://google.com/i/dont/really/exist'/>");
    Alert alert = Iterables.getOnlyElement(tree.getAlerts());
    assertTrue(alert instanceof UnknownNamespaceError);
  }
View Full Code Here

Examples of com.google.gxp.compiler.alerts.Alert

  }

  public void testUnknownElement() throws Exception {
    ParseTree tree = parse(
        "<gxp:idontexist xmlns:gxp='http://google.com/2001/gxp'/>");
    Alert alert = Iterables.getOnlyElement(tree.getAlerts());
    assertTrue(alert instanceof UnknownElementError);
  }
View Full Code Here

Examples of com.google.gxp.compiler.alerts.Alert

    assertTrue(alert instanceof UnknownElementError);
  }

  public void testNoNamespaceElement() throws Exception {
    ParseTree tree = parse("<idonthaveanamespace/>");
    Alert alert = Iterables.getOnlyElement(tree.getAlerts());
    assertTrue(alert instanceof NoNamespaceError);
  }
View Full Code Here

Examples of com.google.gxp.compiler.alerts.Alert

        "<!DOCTYPE gxp:template SYSTEM "
        + "\"http://gxp.googlecode.com/svn/trunk/resources/xhtml.ent\">\n"
        + "<gxp:template "
        + "xmlns:gxp='http://google.com/2001/gxp'/>");
    assertEquals(1, tree.getAlerts().size());
    Alert alert = Iterables.getOnlyElement(tree.getAlerts());
    assertEquals(
        "Resolved entity `http://gxp.googlecode.com/svn/trunk/resources/xhtml.ent`"
        + " to `/com/google/gxp/compiler/parser/xhtml.ent`",
        alert.getMessage());
  }
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.