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); }
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); }