8485868788899091929394
@Override public void onSuccess(UploadedImage result) { ImageOverlay overlay = new ImageOverlay( result, loginInfo); GalleryUpdatedEvent event = new GalleryUpdatedEvent(); fireEvent(event); // TODO: Add something here that says, // hey, upload succeeded
135136137138139140141142143144145
imageService.deleteImage(uploadedImage.getKey(), new AsyncCallback<Void>() { @Override public void onSuccess(Void result) { GalleryUpdatedEvent event = new GalleryUpdatedEvent(); fireEvent(event); overlay.removeFromParent(); } @Override