public void deleteClicked() { if (!view.confirm("Really delete this entry? You cannot undo this change.")) { return; } requests .registrationRequest() .remove() .using(view.getValue()) .fire( new Receiver<Void>() { public void onSuccess(Void ignore) { if (display == null) { // This activity is dead return; } // Go back to the previous place. placeController.goTo(getBackButtonPlace()); } }); }
protected void find(Receiver<EntityProxy> callback) { requests.find(proxyId).with().fire(callback); }
protected void fireCountRequest(Receiver<java.lang.Long> callback) { requests.courseRequest().countCourses().fire(callback); }