|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.smartwerkz.jupload.classic.js.JSListener
com.smartwerkz.jupload.classic.js.JSUploadProgressListener
public class JSUploadProgressListener
| Field Summary |
|---|
| Fields inherited from class com.smartwerkz.jupload.classic.js.JSListener |
|---|
js |
| Constructor Summary | |
|---|---|
JSUploadProgressListener(JSWrapper js,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
closed(UploadClient uploadClient,
boolean succeeded)
Is always called when the uploadClient is completely done and closed all its resources, independent on if it was cancelled, failed or succeeded. |
void |
dequeued(UploadClient uploadClient,
UploadFile file)
Is called when the given file has been dequeued for upload. |
void |
failed(UploadClient uploadClient,
UploadEntity currentEntity,
java.lang.Exception reason)
Is called when an upload failed. |
void |
initialized(UploadClient uploadClient)
Is called when the given uploadClient started and finished initializing (as soon as the UploadQueue has been created). |
void |
initializing(UploadClient uploadClient)
Is called when the given UploadClient starts a new upload. |
void |
uploaded(UploadClient uploadClient,
Thumbnail thumb)
Is called after the last chunk of data to be uploaded has been read. |
void |
uploaded(UploadClient uploadClient,
UploadFile file)
Is called after the last chunk of data to be uploaded has been read. |
void |
uploading(UploadClient uploadClient,
Thumbnail thumb)
Is called when the upload of the given file begins. |
void |
uploading(UploadClient uploadClient,
Thumbnail thumb,
int bytes)
Is called whenever a new chunk of data of the given size has been read to be uploaded. |
void |
uploading(UploadClient uploadClient,
UploadFile file)
Is called when the upload of the given file begins. |
void |
uploading(UploadClient uploadClient,
UploadFile file,
int bytes)
Is called whenever a new chunk of data of the given size has been read to be uploaded. |
| Methods inherited from class com.smartwerkz.jupload.classic.js.JSListener |
|---|
call, call, call, call, call, getJSClassName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSUploadProgressListener(JSWrapper js,
java.lang.String name)
| Method Detail |
|---|
public void initializing(UploadClient uploadClient)
UploadProgressListener
initializing in interface UploadProgressListenerpublic void initialized(UploadClient uploadClient)
UploadProgressListener
initialized in interface UploadProgressListener
public void failed(UploadClient uploadClient,
UploadEntity currentEntity,
java.lang.Exception reason)
UploadProgressListener
failed in interface UploadProgressListenercurrentEntity - The file or thumbnails that is currently being uploaded or null.
public void dequeued(UploadClient uploadClient,
UploadFile file)
UploadProgressListener
dequeued in interface UploadProgressListener
public void uploading(UploadClient uploadClient,
UploadFile file)
UploadProgressListener
uploading in interface UploadProgressListener
public void uploading(UploadClient uploadClient,
UploadFile file,
int bytes)
UploadProgressListener
uploading in interface UploadProgressListenerfile - the entity which is currently being uploadedbytes - the delta (incremental, relative) amount of bytes which have
been sent
public void uploaded(UploadClient uploadClient,
UploadFile file)
UploadProgressListener
uploaded in interface UploadProgressListener
public void uploading(UploadClient uploadClient,
Thumbnail thumb)
UploadProgressListener
uploading in interface UploadProgressListener
public void uploading(UploadClient uploadClient,
Thumbnail thumb,
int bytes)
UploadProgressListener
uploading in interface UploadProgressListener
public void uploaded(UploadClient uploadClient,
Thumbnail thumb)
UploadProgressListener
uploaded in interface UploadProgressListener
public void closed(UploadClient uploadClient,
boolean succeeded)
UploadProgressListenerUploadProgressListener.initializing(com.smartwerkz.jupload.classic.net.UploadClient) is followed by a call of UploadProgressListener.closed(com.smartwerkz.jupload.classic.net.UploadClient, boolean).
If it succeeded or failed, #succeeded and UploadProgressListener.failed(com.smartwerkz.jupload.classic.net.UploadClient, com.smartwerkz.jupload.classic.files.UploadEntity, java.lang.Exception) will be called before
respectively.
closed in interface UploadProgressListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||