public class DropzoneEventHandlerAdaptor extends Object implements DropzoneEventHandler
| Constructor and Description |
|---|
DropzoneEventHandlerAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAddedFile(File file)
When a file is added
|
void |
onCancelled(File file)
Called when a file upload gets canceled.
|
void |
onComplete(File file)
Called when the upload was either successful or erroneous.
|
void |
onError(File file,
String message,
XHRObjet xhrObject)
An error occured.
|
void |
onMaxFilesExceeded(File file)
Called for each file that has been rejected because the number of files
exceeds the maxFiles limit.
|
void |
onMaxFilesReached(File file)
Called when the number of files accepted reached the maxFiles limit.
|
void |
onProcessing(File file)
When a file gets processed (since there is a queue not all files are
processed immediately).
|
void |
onRemovedfile(File file)
Called whenever a file is removed from the list.
|
void |
onSending(File file,
FormData formData,
XHRObjet xhrObject)
Called just before each file is sent.
|
void |
onSuccess(File file,
String response)
The file has been uploaded successfully.
|
void |
onThumbnail(File file,
String dataURI)
When the thumbnail has been generated.
|
void |
onUploadProgress(File file,
int progressSent,
int bytesSent)
Gets called periodically whenever the file upload progress changes.
|
public void onAddedFile(File file)
DropzoneEventHandleronAddedFile in interface DropzoneEventHandlerfile - that was addedpublic void onCancelled(File file)
DropzoneEventHandleronCancelled in interface DropzoneEventHandlerfile - that was cancelledpublic void onComplete(File file)
DropzoneEventHandleronComplete in interface DropzoneEventHandlerfile - that was completed, either was sucess or failiturepublic void onError(File file, String message, XHRObjet xhrObject)
DropzoneEventHandleronError in interface DropzoneEventHandlerfile - instancemessage - from the errorxhrObject - null if not present (ommited by javascript code)public void onMaxFilesExceeded(File file)
DropzoneEventHandleronMaxFilesExceeded in interface DropzoneEventHandlerfile - that was rejected because of the maxFile limitpublic void onMaxFilesReached(File file)
DropzoneEventHandleronMaxFilesReached in interface DropzoneEventHandlerfile - the last file that was acceptedpublic void onProcessing(File file)
DropzoneEventHandleronProcessing in interface DropzoneEventHandlerpublic void onRemovedfile(File file)
DropzoneEventHandleronRemovedfile in interface DropzoneEventHandlerpublic void onSending(File file, FormData formData, XHRObjet xhrObject)
DropzoneEventHandleronSending in interface DropzoneEventHandlerpublic void onSuccess(File file, String response)
DropzoneEventHandleronSuccess in interface DropzoneEventHandlerpublic void onThumbnail(File file, String dataURI)
DropzoneEventHandleronThumbnail in interface DropzoneEventHandlerpublic void onUploadProgress(File file, int progressSent, int bytesSent)
DropzoneEventHandleronUploadProgress in interface DropzoneEventHandlerprogressSent - percentage (0-100)Copyright © 2015. All rights reserved.