public interface UploadCompleteHandler
uploader.setUploadCompleteHandler(new UploadCompleteHandler() {
public boolean onUploadComplete(UploadCompleteEvent event) {
Window.alert("Uploader complete for file " + event.getFile().getName());
return true;
}
});
Note that the 'uploadComplete' event is always fired at the end of an uploader cycle (after uploadError or uploadSuccess). At this point the uploader is complete and another uploader can be started.
If you want the next uploader to start automatically this is a good place to call this .uploadStart(). Use caution when calling uploadStart inside the uploadComplete event if you also have code that cancels all the uploads in a queue.
See the documentation on the UploadCompleteEvent class for more details on the data
available when an uploader complete event occurs.
| Modifier and Type | Method and Description |
|---|---|
boolean |
onUploadComplete(UploadCompleteEvent uploadCompleteEvent)
This method is fired whenever a uploader completion event occurs in the Uploader component.
|
boolean onUploadComplete(UploadCompleteEvent uploadCompleteEvent)
UploadCompleteEvent class for more details on the data available when this
event is fired.uploadCompleteEvent - The details of the event that occurred.