|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.Applet
public class Applet
A generic applet component.
Non XUL extension.
Note: AbstractComponent.setVisible(boolean)
with false cannot work in IE. (Browser's limitation)
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 |
---|
_height, _left, _top, _width, _zclass |
Fields inherited from class org.zkoss.zk.ui.AbstractComponent |
---|
_visible |
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 | |
---|---|
Applet()
|
Method Summary | |
---|---|
java.lang.String |
getCode()
Return the code of the applet, i.e., the URI of the Java class. |
java.lang.String |
getCodebase()
Return the codebase of the applet, i.e., the URI of the Java class. |
java.lang.Object |
getDynamicProperty(java.lang.String name)
Returns the property value of the specified name. |
java.util.Map |
getParams()
Returns a map of parameters (never null). |
boolean |
hasDynamicProperty(java.lang.String name)
Returns whether a dynamic property is defined. |
void |
invoke(java.lang.String function)
Invokes the function of the applet running at the client. |
void |
invoke(java.lang.String function,
java.lang.String argument)
Invokes the function of the applet running at the client with one argument. |
void |
invoke(java.lang.String function,
java.lang.String[] arguments)
Invokes the function of the applet running at the client with variable number argument. |
boolean |
isChildable()
No child is allowed. |
protected void |
renderProperties(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing tags and children. |
void |
setCode(java.lang.String code)
Sets the code of the applet, i.e., the URI of the Java class. |
void |
setCodebase(java.lang.String codebase)
Sets the codebase of the applet, i.e., the URI of the Java class. |
void |
setDynamicProperty(java.lang.String name,
java.lang.Object value)
Sets a property with the specified name and value. |
void |
setField(java.lang.String field,
java.lang.String value)
Sets the value of the specified filed. |
java.lang.String |
setParam(java.lang.String name,
java.lang.String value)
Sets a parameter. |
void |
setParams(java.util.Map params)
Sets a map of parameters (all existent parameters are removed first). |
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
focus, getDraggable, getDroppable, getHeight, getHflex, getLeft, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, newExtraCtrl, service, setClass, setDraggable, setDroppable, setFocus, setHeight, setHflex, setLeft, setSclass, setStyle, setTooltiptext, setTop, setVflex, setWidth, setZclass, setZindex, setZIndex |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent |
---|
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
Methods inherited from interface org.zkoss.zk.ui.ext.Scope |
---|
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute |
Constructor Detail |
---|
public Applet()
Method Detail |
---|
public java.lang.String getCode()
getCode
in interface Applet
public void setCode(java.lang.String code)
setCode
in interface Applet
public java.lang.String getCodebase()
public void setCodebase(java.lang.String codebase)
public void setParams(java.util.Map params)
setParams
in interface Applet
public java.util.Map getParams()
getParams
in interface Applet
public java.lang.String setParam(java.lang.String name, java.lang.String value)
setParam
in interface Applet
public java.lang.Object getDynamicProperty(java.lang.String name)
DynamicPropertied
getDynamicProperty
in interface DynamicPropertied
public boolean hasDynamicProperty(java.lang.String name)
DynamicPropertied
hasDynamicProperty
in interface DynamicPropertied
public void setDynamicProperty(java.lang.String name, java.lang.Object value) throws WrongValueException
DynamicPropertied
If a component supports only String-type values, it could use org.zkoss.lang.Objects.toString() to convert the value to a String instance.
setDynamicProperty
in interface DynamicPropertied
WrongValueException
public void invoke(java.lang.String function)
invoke
in interface Applet
public void invoke(java.lang.String function, java.lang.String argument)
invoke
in interface Applet
public void invoke(java.lang.String function, java.lang.String[] arguments)
invoke
in interface Applet
public void setField(java.lang.String field, java.lang.String value)
setField
in interface Applet
public boolean isChildable()
isChildable
in class AbstractComponent
protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
HtmlBasedComponent
See also Render Special Properties
renderProperties
in class HtmlBasedComponent
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |