|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.AbstractComponent org.zkoss.zk.ui.HtmlBasedComponent org.zkoss.zul.impl.XulElement org.zkoss.zkmax.zul.Dropupload
public class Dropupload
A component can handle drag files into it, and upload files to server.
Default HtmlBasedComponent.getZclass()
: z-dropupload.
known supported browser :
known unsupported browser :
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
HtmlBasedComponent.ExtraCtrl |
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
---|
AbstractComponent.Children |
Field Summary |
---|
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
_zclass |
Fields inherited from interface org.zkoss.zk.ui.Component |
---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl |
---|
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE |
Constructor Summary | |
---|---|
Dropupload()
|
Method Summary | |
---|---|
java.lang.String |
getContent()
|
java.lang.String |
getDetection()
Return the detection area setting. |
int |
getMaxsize()
Get the max size setting of upload file, unit is "KB". |
java.lang.String |
getViewerClass()
|
boolean |
isNative()
|
protected void |
renderProperties(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing tags and children. |
void |
service(AuRequest request,
boolean everError)
Process an AU request. |
void |
setContent(java.lang.String value)
Set the content of component, it will be shown depend on detection setting. |
void |
setDetection(java.lang.String value)
Set drag detection area. |
void |
setMaxsize(int value)
Set the max size of upload file, unit is "KB". |
void |
setNative(boolean value)
|
void |
setViewerClass(java.lang.String value)
Set the custom upload viewer class name, if was not specified, will use ZK default upload viewer. |
Methods inherited from class org.zkoss.zul.impl.XulElement |
---|
clone, getContext, getCtrlKeys, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidth, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Dropupload()
Method Detail |
---|
public void setMaxsize(int value)
value
- negative value is unlimited, 0 will use Configuration.getMaxUploadSize()
public int getMaxsize()
setMaxsize(int)
for more details.
public void setDetection(java.lang.String value)
value
- public java.lang.String getDetection()
setDetection(String)
for more details.
public void setViewerClass(java.lang.String value)
value
- custom upload viewer class name.public java.lang.String getViewerClass()
public void setContent(java.lang.String value)
value
- HTML string.setDetection(String)
public java.lang.String getContent()
public void setNative(boolean value)
public boolean isNative()
protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
HtmlBasedComponent
See also ZK Client-side Reference: Property Rendering
renderProperties
in class XulElement
java.io.IOException
public void service(AuRequest request, boolean everError)
Events.ON_UPLOAD
and post UploadEvent
.
service
in interface ComponentCtrl
service
in class HtmlBasedComponent
everError
- whether any error ever occurred before
processing this request.HtmlBasedComponent.service(org.zkoss.zk.au.AuRequest, boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |