Public Member Functions | |
Dropupload_6_5_2 () | |
void | setMaxsize (int value) |
int | getMaxsize () |
void | setDetection (String value) |
String | getDetection () |
void | setViewerClass (String value) |
String | getViewerClass () |
void | setContent (String value) |
String | getContent () |
void | setNative (boolean value) |
boolean | isNative () |
void | service (AuRequest request, boolean everError) |
Protected Member Functions | |
void | renderProperties (ContentRenderer renderer) throws java.io.IOException |
A component can handle drag files into it, and upload files to server.
Default getZclass(): z-dropupload.
known supported browser :
Chrome (v.19+) Firefox (v.13+) Safari (5.1+)
known unsupported browser :
IE9 Opera (11.x)
Definition at line 50 of file Dropupload_6_5_2.java.
org.zkoss.zkmax.zul.Dropupload_6_5_2.Dropupload_6_5_2 | ( | ) |
Definition at line 63 of file Dropupload_6_5_2.java.
String org.zkoss.zkmax.zul.Dropupload_6_5_2.getContent | ( | ) |
Definition at line 154 of file Dropupload_6_5_2.java.
String org.zkoss.zkmax.zul.Dropupload_6_5_2.getDetection | ( | ) |
Return the detection area setting. Refer to setDetection(String) for more details.
Definition at line 113 of file Dropupload_6_5_2.java.
int org.zkoss.zkmax.zul.Dropupload_6_5_2.getMaxsize | ( | ) |
Get the max size setting of upload file, unit is "KB". Refer to setMaxsize(int) for more details.
Definition at line 86 of file Dropupload_6_5_2.java.
String org.zkoss.zkmax.zul.Dropupload_6_5_2.getViewerClass | ( | ) |
Definition at line 135 of file Dropupload_6_5_2.java.
boolean org.zkoss.zkmax.zul.Dropupload_6_5_2.isNative | ( | ) |
Definition at line 165 of file Dropupload_6_5_2.java.
|
protected |
Definition at line 170 of file Dropupload_6_5_2.java.
void org.zkoss.zkmax.zul.Dropupload_6_5_2.service | ( | AuRequest | request, |
boolean | everError | ||
) |
Process an AU request. It will handle Events#ON_UPLOAD and post UploadEvent.
Definition at line 191 of file Dropupload_6_5_2.java.
void org.zkoss.zkmax.zul.Dropupload_6_5_2.setContent | ( | String | value | ) |
Set the content of component, it will be shown depend on detection setting.
value | HTML string. |
Definition at line 144 of file Dropupload_6_5_2.java.
void org.zkoss.zkmax.zul.Dropupload_6_5_2.setDetection | ( | String | value | ) |
Set drag detection area. When mouse drag over the detection area, it will show content. There are four accept value :
Notice : The Dropupload_6_5_2 with detection="browser" setting can't put together with other Dropupload_6_5_2 that detection is not browser. If do so, the user can't drop file on it.
value |
Definition at line 103 of file Dropupload_6_5_2.java.
void org.zkoss.zkmax.zul.Dropupload_6_5_2.setMaxsize | ( | int | value | ) |
Set the max size of upload file, unit is "KB". Notice: All the files in one drag-and-drop action must smaller than max size, or nothing will upload.
value | negative value is unlimited, 0 will use Configuration#getMaxUploadSize() |
Definition at line 71 of file Dropupload_6_5_2.java.
void org.zkoss.zkmax.zul.Dropupload_6_5_2.setNative | ( | boolean | value | ) |
Definition at line 158 of file Dropupload_6_5_2.java.
void org.zkoss.zkmax.zul.Dropupload_6_5_2.setViewerClass | ( | String | value | ) |
Set the custom upload viewer class name, if was not specified, will use ZK default upload viewer.
value | custom upload viewer class name. |
Definition at line 121 of file Dropupload_6_5_2.java.