@Override public void onFailure(Throwable caught) { MessageBox.alert("Load failed", caught.getMessage(), null); }
public static void setText(String s) { if (!GXT.isIE) { MessageBox.alert("Błąd przeglądarki", "Funkcja schowka obsługiwana jedynie przez Internet Explorer 6+<br>" + "<br>" + "Kopiowany tekst: " + s, null); } else { nativeSetText(s); } }
private void showError(Throwable e) { MessageBox.alert(I18N.CONSTANTS.error(), "There was an error printing the data entry form: " + e.getMessage(), new Listener<MessageBoxEvent>() { @Override public void handleEvent(MessageBoxEvent be) { PrintDataEntryForm.this.hide(); } }); }
@Override public void onFailure(Throwable caught) { MessageBox.alert(I18N.CONSTANTS.error(), I18N.CONSTANTS.errorOnServer() + "\n\n" + caught.getMessage(), null); }
@Override public void onFailure(Throwable caught) { Log.error("error binding profile", caught); MessageBox.alert(I18N.CONSTANTS.serverError(), caught.getMessage(), null); }
@Override public void onFailure(Throwable caught) { MessageBox.alert(I18N.CONSTANTS.error(), I18N.CONSTANTS.errorOnServer() + "\n\n" + caught.getMessage(), null); }
@Override public final void onFailure(final Throwable caught) { LOGGER.log(Level.SEVERE, "Exception while saving report", caught); MessageBox.alert(I18N.CONSTANTS.serverError(), ExceptionOracle.getExplanation(caught), null); }
@Override public void loaderLoadException(LoadEvent le) { Log.debug("Exception thrown during load of FlatSiteGrid: ", le.exception); MessageBox.alert(I18N.CONSTANTS.serverError(), le.exception.getLocalizedMessage(), null); }
@Override public final void onFailure(final Throwable caught) { Log.error("error saving profile", caught); MessageBox.alert(I18N.CONSTANTS.serverError(), caught.getMessage(), null); } });
public static void freeTrialExpired() { MessageBox.alert(SafeHtmlUtils.fromString("Trial Expired"), SafeHtmlUtils.fromTrustedString( "Oh no! Your free trial has expired. " + "To continue, <a href=\"mailto:info@activityinfo.org\">contact us</a> to " + " set up billing."), null); } }
/** * Displays a GXT alert box titled "Error", and binds it to the passed callback. The alert popup is modal, and its * title is internationalized. * * @param message will be displayed as the alert box content. * @param callback may be <code>null</code> */ public void error(String message, Listener<MessageBoxEvent> callback) { MessageBox.alert(messages.headerErrorWindow(), message, callback).setModal(true); }
@Override public void onServerError(Throwable e) { unmask(); if (e instanceof IllegalAccessCommandException) { MessageBox.alert(I18N.CONSTANTS.error(), I18N.CONSTANTS.permissionChangedError(), null); return; } // fallback MessageBox.alert(I18N.CONSTANTS.error(), I18N.CONSTANTS.serverError(), null); }
private void showError(Throwable caught) { finishButton.enable(); if (caught != null && caught instanceof IllegalAccessCommandException) { MessageBox.alert(I18N.CONSTANTS.dataEntry(), I18N.CONSTANTS.notAuthorized(), null); } else { MessageBox.alert(I18N.CONSTANTS.dataEntry(), I18N.CONSTANTS.serverError(), null); } } }
@Override public void onFailure(Throwable caught) { view.getCreatingMonitor().onServerError(caught); MessageBox.alert(I18N.CONSTANTS.error(), I18N.CONSTANTS.errorOnServer() + "\n\n" + caught.getMessage(), null); }
private void showError(Throwable caught) { MessageBox.alert(I18N.CONSTANTS.serverError(), I18N.CONSTANTS.errorUnexpectedOccured(), null); Log.error("Error launching site dialog", caught); }
@Override public void onFailure(Throwable caught) { // Tell the user an error occurred view.getDeletingMonitor().onServerError(caught); MessageBox.alert(I18N.CONSTANTS.error(), I18N.CONSTANTS.errorOnServer() + "\n\n" + caught.getMessage(), null); }
public static void show() { Template template = GWT.create(Template.class); SafeUri downloadUri = UriUtils.fromSafeConstant("https://www.google.com/chrome/browser/desktop/?hl=" + LocaleInfo.getCurrentLocale().getLocaleName()); SafeHtml message = template.message( I18N.CONSTANTS.offlineNotSupported(), downloadUri, I18N.CONSTANTS.downloadGoogleChrome()); MessageBox.alert(I18N.CONSTANTS.offlineNotSupportedTitle(), message.asString(), null); }
@Override public void onServerError(Throwable e) { saveButton.enable(); cancelButton.enable(); status.clearStatus(); MessageBox.alert(this.getHeadingHtml(), SafeHtmlUtils.fromSafeConstant(I18N.CONSTANTS.serverError()), null); }
@Override public void onServerError(Throwable e) { form.enable(); saveButton.enable(); cancelButton.enable(); status.clearStatus(); MessageBox.alert(this.getHeadingHtml(), fromSafeConstant(I18N.CONSTANTS.serverError()), null); }
private boolean validateSections() { for (FormSectionModel<SiteDTO> section : navigationListView.getStore().getModels()) { if (!section.getSection().validate()) { navigationListView.getSelectionModel().select(section, false); if (!section.getSection().validate()) { // validate after render to enable validation-error styling MessageBox.alert(getHeadingHtml(), fromSafeConstant(I18N.CONSTANTS.pleaseCompleteForm()), null); return false; } } } return true; }