예제 #1
0
 public static void notifyFailure(String message) {
   NotifySettings settings = NotifySettings.newSettings();
   settings.setType(NotifyType.DANGER);
   settings.setAllowDismiss(false);
   GWT.log("Error: " + message);
   Notify.notify("", message, IconType.WARNING, settings);
 }
예제 #2
0
 public static void notifySuccess(String message, int delay) {
   NotifySettings settings = NotifySettings.newSettings();
   settings.setType(NotifyType.SUCCESS);
   settings.setDelay(delay);
   settings.setAllowDismiss(false);
   Notify.notify("", message, IconType.SMILE_O, settings);
 }