How to detect when Vaadin FileDownloader succeeds or fails
问题 I have Vaadin 7 code to give the user an option to download a file: Button btnDownloadResults = new Button("Download Results", FontAwesome.CLOUD_DOWNLOAD); resource = new StreamResource(new MyStreamResource(), suggestedSaveAsFilename); new FileDownloader(resource).extend(btnDownloadResults); I would like to trigger code when the download has succeeded, or even if the download manages to start. Uses for this include closing a window, starting a progress spinner, or incrementing a download