|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectzk.Object
zul.Uploader
public class Uploader
Default file uploader for the upload widget.
One upload widget can have multi-instance of uploader to upload multiple files at the same time.
| Field Summary |
|---|
| Fields inherited from class zk.Object |
|---|
$class, $oid |
| Method Summary | |
|---|---|
void |
$init(Upload upload,
String id,
DOMElement form,
String flnm)
Constructor |
void |
cancel()
Cancels the uploader to upload. |
void |
destroy(boolean finish)
Destroys the uploader to upload. |
void |
end(boolean finish)
Ends the uploader to upload. |
Widget |
getWidget()
Returns the widget which the uploader belongs to. |
void |
start()
Starts the uploader to upload |
boolean |
update(int sent,
int total)
Updates the status of the file being uploaded. |
| Methods inherited from class zk.Object |
|---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void $init(Upload upload,
String id,
DOMElement form,
String flnm)
upload - the upload object belong to the file uploaderid - the ID of the uploaderform - the element representing where the uploader element
is appendedflnm - the name of the file to be uploadedpublic Widget getWidget()
public void destroy(boolean finish)
finish - if true, the upload is finish.public void start()
public void cancel()
public boolean update(int sent,
int total)
sent - how many percentage being senttotal - the size of the file
public void end(boolean finish)
finish - whether the file is finish.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||