public class Applet
extends org.zkoss.zk.ui.HtmlBasedComponent
implements org.zkoss.zk.ui.ext.DynamicPropertied
See also HTML applet tag.
Non XUL extension.
Note: AbstractComponent.setVisible(boolean)
with false cannot work in IE. (Browser's limitation)
Constructor and Description |
---|
Applet() |
Modifier and Type | Method and Description |
---|---|
String |
getAlign()
Returns the alignment of an applet according to surrounding elements.
|
String |
getArchive()
Returns the location of an archive file (URL).
|
String |
getCode()
Return the applet class to run.
|
String |
getCodebase()
Returns a relative base URL for applets specified in
setCode(java.lang.String) (URL). |
Object |
getDynamicProperty(String name) |
String |
getHspace()
Returns the horizontal spacing around an applet.
|
Map<String,String> |
getParams()
Returns a map of parameters (never null).
|
String |
getVspace()
Returns the vertical spacing around an applet.
|
boolean |
hasDynamicProperty(String name) |
void |
invoke(String function)
Invokes the function of the applet running at the client.
|
void |
invoke(String function,
String argument)
Invokes the function of the applet running at the client with
one argument.
|
void |
invoke(String function,
String[] arguments)
Invokes the function of the applet running at the client with
variable number argument.
|
protected boolean |
isChildable()
No child is allowed.
|
boolean |
isMayscript()
Returns whether the applet is allowed to access the scripting object.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
setAlign(String align)
Sets the alignment of an applet according to surrounding elements.
|
void |
setArchive(String archive)
Sets the location of an archive file (URL).
|
void |
setCode(String code)
Sets the applet class to run.
|
void |
setCodebase(String codebase)
Sets a relative base URL for applets specified in
setCode(java.lang.String) (URL). |
void |
setDynamicProperty(String name,
Object value) |
void |
setField(String field,
String value)
Sets the value of the specified filed.
|
void |
setHspace(String hspace)
Sets the horizontal spacing in pixels around an applet.
|
void |
setMayscript(boolean mayscript)
Sets whether the applet is allowed to access the scripting object.
|
String |
setParam(String name,
String value)
Sets a parameter.
|
void |
setParams(Map<String,String> params)
Sets a map of parameters (all existent parameters are removed first).
|
void |
setVspace(String vspace)
Sets the vertical spacing in pixels around an applet.
|
addSclass, clone, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getPropertyAccess, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, invalidatePartial, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
public String getCode()
public void setCode(String code)
public String getCodebase()
setCode(java.lang.String)
(URL).
Default: null (no codebase at all).
public void setCodebase(String codebase)
setCode(java.lang.String)
(URL).
Notice that, if URI is specified, it will be encoded (Execution.encodeURL(java.lang.String)
).
public boolean isMayscript()
Default: false.
It is only necessary for the applet to control the page script objects. It is not necessary for the page objects to control the applet.
public void setMayscript(boolean mayscript)
public String getArchive()
Default: null (no archive at all)
public void setArchive(String archive)
Notice that, if URI is specified, it will be encoded (Execution.encodeURL(java.lang.String)
).
public String getAlign()
Default: null (browser default)
public void setAlign(String align)
Refer to HTML <applet> Tagfor more information.
public String getHspace()
Default: null (browser default)
public void setHspace(String hspace)
public String getVspace()
Default: null (browser default)
public void setVspace(String vspace)
public void setParams(Map<String,String> params)
public String setParam(String name, String value)
public Object getDynamicProperty(String name)
getDynamicProperty
in interface org.zkoss.zk.ui.ext.DynamicPropertied
public boolean hasDynamicProperty(String name)
hasDynamicProperty
in interface org.zkoss.zk.ui.ext.DynamicPropertied
public void setDynamicProperty(String name, Object value) throws org.zkoss.zk.ui.WrongValueException
setDynamicProperty
in interface org.zkoss.zk.ui.ext.DynamicPropertied
org.zkoss.zk.ui.WrongValueException
public void invoke(String function)
public void invoke(String function, String argument)
public void invoke(String function, String[] arguments)
protected boolean isChildable()
isChildable
in class org.zkoss.zk.ui.AbstractComponent
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws IOException
renderProperties
in class org.zkoss.zk.ui.HtmlBasedComponent
IOException
Copyright © 2021. All rights reserved.