|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.Object zk.Widget zul.Widget zul.wgt.Popup zul.UploadManager
public class UploadManager
Default file upload manager to manage the uploading files in a panel. Users can add/delete the file upon the panel.
Field Summary |
---|
Fields inherited from class zk.Widget |
---|
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName |
Fields inherited from class zk.Object |
---|
$class, $oid |
Method Summary | |
---|---|
Div |
addFile(Uploader uplder)
Adds the file item to upload. |
Div |
getFileItem(String id)
Returns the file item. |
void |
open(Widget wgt,
String position)
Opens the file manager to show. |
void |
removeFile(Uploader uplder)
Removes the file item. |
void |
updateFile(Uploader uplder,
int val,
int total)
Updates the status of the file item. |
Methods inherited from class zul.wgt.Popup |
---|
afterCloseAnima_, afterOpenAnima_, close, closeAnima_, isOpen, open, open, openAnima_, position, shallStackup_ |
Methods inherited from class zul.Widget |
---|
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
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 Div getFileItem(String id)
id
- the ID of the file or the ID of upload widget
public Div addFile(Uploader uplder)
uplder
-
public void updateFile(Uploader uplder, int val, int total)
uplder
- val
- how many percentage being uploadedtotal
- the size of the filepublic void removeFile(Uploader uplder)
uplder
- public void open(Widget wgt, String position)
wgt
- the wgt where the file manager is shownposition
- the position where the file manager is located
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |