@Override public void onFailure() { //TODO really handle failure like this? Window.alert("Accelerometer not supported"); } });
@Override public void needsRefresh(final String message) { Window.alert( UIMessages.REFRESH_SINGLE_MESSAGE ); } };
@Override public void onFailure(String reason) { Window.alert("We're very sorry, but something went wrong: " + reason); } });
@Override public void onFailure(final Throwable caught) { if ( caught instanceof ExternalServiceException ) { Window.alert( "Error sending message: " + caught.getMessage() ); } else if ( caught instanceof StatusCodeException ) { Window.alert( ExternalServiceException.getFriendlyStatusUnknownMessage( ) ); } else { Window.alert( caught.getMessage() ); } } });
protected void error(String message) throws IllegalStateException { if (!GWT.isScript()) { Window.alert("Error :" + message); throw new IllegalStateException(message); } }
@Override public void onSubmitComplete(final AbstractForm.SubmitCompleteEvent event) { if ("OK".equalsIgnoreCase(event.getResults())) { Window.alert("Upload Success"); } else if ("FAIL".equalsIgnoreCase(event.getResults())) { Window.alert("Upload Failed"); } else if ("FAIL - ALREADY EXISTS".equalsIgnoreCase(event.getResults())) { Window.alert("File already exists"); } } });
@Override public void handleFailure(Throwable caught) { GWT.log("get displayOnlyActiveLoCategories failed", caught); Window.alert("Failed to get displayOnlyActiveLoCategories setting"); }
@Override public void onFailure(Throwable caught) { Window.alert("Failed to retreive data for clu Set with id " + cluSetId); callback.exec(null); } @Override
@Override public void callback(Void v) { Window.alert("Deleted successfully"); pagedJarTable.refresh(); } }).deleteJar(getSelectedJars());
public boolean mayStop() { if( currentActivity == null ) return true; String res = currentActivity.mayStop(); if( res != null ) { Window.alert( res ); return false; } return true; }
public void onUncaughtException(Throwable e) { if (!GWT.isScript()) { Window.alert("Uncaught exception escaped : " + e.getClass().getName() + "\n" + e.getMessage() + "\nSee the Development console log for details." + "\nRegister a GWT.setUncaughtExceptionHandler(..) for custom uncaught exception handling." ); } GWT.log("Uncaught exception escaped", e); } });
@Override public void onSubmitComplete( final FormPanel.SubmitCompleteEvent event ) { if ( "OK".equalsIgnoreCase( event.getResults() ) ) { executeCallback( successCallback ); Window.alert( CommonConstants.INSTANCE.UploadSuccess() ); } else { executeCallback( errorCallback ); Window.alert( CommonConstants.INSTANCE.UploadFailure0( event.getResults() ) ); } }
public void onSubmitComplete(final FormPanel.SubmitCompleteEvent event) { if ("OK".equalsIgnoreCase(event.getResults())) { Window.alert(CoreConstants.INSTANCE.UploadSuccess()); } else if ("FAIL".equalsIgnoreCase(event.getResults())) { Window.alert(CoreConstants.INSTANCE.UploadFail()); } BusyPopup.close(); } });
@Override public void handleFailure(Throwable cause) { GWT.log("Failed to perform search", cause); //FIXME more detail info here Window.alert("Failed to perform search"); table.displayLoading(false); }
public void onSuccess(final List<ReqComponentTypeInfo> reqComponentTypeInfoList) { if (reqComponentTypeInfoList == null || reqComponentTypeInfoList.size() == 0) { GWT.log("Missing Requirement Component Types", null); Window.alert("Missing Requirement Component Types"); return; } editReqCompWidget.setReqCompList(reqComponentTypeInfoList); editReqCompWidget.setCustomWidgets(getCustomWidgets(reqComponentTypeInfoList)); } });
private int setCurrentLogLevelLoggers(int level) { if (level < getLowestLogLevel()) { Window.alert("Unable to lower runtime log level to " + level + " due to compile time minimum of " + getLowestLogLevel()); level = getLowestLogLevel(); } remoteLogger.loggersSetCurrentLogLevel(level); return level; }
private void onSetDefaultGeometry() { if (!getGeometryStatus().equals(GeometryStatus.EDITING)) { setGeometryOfCurrentGroup(getMaxBoundsAsGeometry()); } else { Window.alert(MESSAGES.securityGroupWarningStopEditingFirst()); } }
public void onClick( ClickEvent arg0 ) { if ( nameTextBox.getText() == null || "".equals( nameTextBox.getText() ) ) { Window.alert( CommonConstants.INSTANCE.RenamePopupRenameNamePrompt() ); return; } hide(); command.execute( new FileNameAndCommitMessage( nameTextBox.getText(), checkInCommentTextBox.getText() ) ); } } );
public void onClick( ClickEvent event ) { String var = varName.getText(); if ( modeller.isVariableNameUsed( var ) ) { Window.alert( Constants.INSTANCE.TheVariableName0IsAlreadyTaken( var ) ); return; } con.setFieldBinding( var ); modeller.refreshWidget(); popup.hide(); } } );
public void onClick( ClickEvent w ) { if ( !canConditionBeDeleted( (LimitedEntryBRLConditionColumn) c ) ) { Window.alert( Constants.INSTANCE.UnableToDeleteConditionColumn( c.getHeader() ) ); return; } String cm = Constants.INSTANCE.DeleteConditionColumnWarning( c.getHeader() ); if ( Window.confirm( cm ) ) { dtable.deleteColumn( (LimitedEntryBRLConditionColumn) c ); refreshConditionsWidget(); } } } );