Displays a ProgressBar backend.loadPersons(new Callback(){ public void onSuccess(List<Person> persons){ getView().showPersons(persons); // Displays a list of Persons } public void onError(Throwable error){ getView().showError(error); // Displays a error message }); } }