|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectzk.Object
zul.Upload
public class Upload
Helper class for implementing the fileupload.
| Field Summary |
|---|
| Fields inherited from class zk.Object |
|---|
$class, $oid |
| Method Summary | |
|---|---|
void |
$init(Widget wgt,
DOMElement parent,
String clsnm)
Constructor |
void |
cancel(int sid)
Cancels the fileupload if the fileupload is progressing. |
static void |
close(String uuid,
int sid)
Closes the fileupload |
void |
destroy()
Destroys the fileupload. |
static void |
destroy(java.lang.Object uplder)
Destroys the uploader to upload |
static void |
error(String msg,
String uuid,
int sid)
Shows the error message of the fileupload |
void |
finish(int sid)
Finishes the fileupload if the fileupload is done. |
String |
getKey()
Returns the uuid of the uploader with its sequential number |
static boolean |
isFinish(Widget wgt)
Returns the fileupload of the widget whether is finish or not. |
static void |
sendResult(String uuid,
String contentId,
int sid)
Sends the upload result to server. |
static void |
start(java.lang.Object uplder)
Starts the uploader to upload a file. |
void |
sync()
Synchronizes the visual states of the element with fileupload |
| 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(Widget wgt,
DOMElement parent,
String clsnm)
wgt - the widget belongs to the file uploadparent - the element representing where the upload element
is appendedclsnm - the CSS class name of the fileuploadpublic void sync()
public void destroy()
public String getKey()
public void cancel(int sid)
sid - the sequential number of the uploaderpublic void finish(int sid)
sid - the sequential number of the uploader
public static void error(String msg,
String uuid,
int sid)
msg - the error messageuuid - the ID of the widgetsid - the sequential number of the uploader
public static void close(String uuid,
int sid)
uuid - the ID of the widgetsid - the sequential number of the uploader
public static void sendResult(String uuid,
String contentId,
int sid)
uuid - the ID of the widgetcontentId - the ID of the content being uploadedsid - the sequential number of the uploaderpublic static boolean isFinish(Widget wgt)
wgt - the widget
public static void start(java.lang.Object uplder)
uplder - the uploaderpublic static void destroy(java.lang.Object uplder)
uplder -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||