public interface FileDialogCompleteHandler
uploader.setFileDialogCompleteHandler(new FileDialogCompleteHandler() {
public boolean onFileDialogComplete(FileDialogCompleteEvent event) {
Window.alert(event.getTotalFilesInQueue() + " are ready to uploader");
return true;
}
});
Note that the 'fileDialogComplete' event fires after the File Selection Dialog window has been
closed and all the selected files have been processed. The 'number of files queued' property
indicates the number of files that were queued from the dialog selection (as opposed to the
number of files in the queue).
If you want file uploading to begin automatically this is a good place to call .jakecode.gwt.uploader.client.Uploader#startUpload().
See the documentation on the FileDialogCompleteEvent class for more details on the data
available when a file dialog complete event occurs.
| Modifier and Type | Method and Description |
|---|---|
boolean |
onFileDialogComplete(FileDialogCompleteEvent fileDialogCompleteEvent)
This method is fired whenever a file dialog complete event occurs in the Uploader component.
|
boolean onFileDialogComplete(FileDialogCompleteEvent fileDialogCompleteEvent)
FileDialogCompleteEvent class for more details on the data available when
this event is fired.fileDialogCompleteEvent - The details of the event that occurred.