public class Applet extends HtmlBasedComponent implements DynamicPropertied
See also HTML applet tag.
Non XUL extension.
Note: AbstractComponent.setVisible(boolean)
with false cannot work in IE. (Browser's limitation)
HtmlBasedComponent.ExtraCtrl
AbstractComponent.Children
_zclass
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
Constructor and Description |
---|
Applet() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlign()
Returns the alignment of an applet according to surrounding elements.
|
java.lang.String |
getArchive()
Returns the location of an archive file (URL).
|
java.lang.String |
getCode()
Return the applet class to run.
|
java.lang.String |
getCodebase()
Returns a relative base URL for applets specified in
setCode(java.lang.String) (URL). |
java.lang.Object |
getDynamicProperty(java.lang.String name)
Returns the property value of the specified name.
|
java.lang.String |
getHspace()
Returns the horizontal spacing around an applet.
|
java.util.Map<java.lang.String,java.lang.String> |
getParams()
Returns a map of parameters (never null).
|
java.lang.String |
getVspace()
Returns the vertical spacing around an applet.
|
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.
|
protected boolean |
isChildable()
No child is allowed.
|
boolean |
isMayscript()
Returns whether the applet is allowed to access the scripting object.
|
protected void |
renderProperties(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing
tags and children.
|
void |
setAlign(java.lang.String align)
Sets the alignment of an applet according to surrounding elements.
|
void |
setArchive(java.lang.String archive)
Sets the location of an archive file (URL).
|
void |
setCode(java.lang.String code)
Sets the applet class to run.
|
void |
setCodebase(java.lang.String codebase)
Sets a relative base URL for applets specified in
setCode(java.lang.String) (URL). |
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.
|
void |
setHspace(java.lang.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.
|
java.lang.String |
setParam(java.lang.String name,
java.lang.String value)
Sets a parameter.
|
void |
setParams(java.util.Map<java.lang.String,java.lang.String> params)
Sets a map of parameters (all existent parameters are removed first).
|
void |
setVspace(java.lang.String vspace)
Sets the vertical spacing in pixels around an applet.
|
clone, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getPropertyAccess, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidth, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
addAnnotation, addAnnotation, 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, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, 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, getShadowRoots, 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, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, 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 java.lang.String getCode()
public void setCode(java.lang.String code)
public java.lang.String getCodebase()
setCode(java.lang.String)
(URL).
Default: null (no codebase at all).
public void setCodebase(java.lang.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 java.lang.String getArchive()
Default: null (no archive at all)
public void setArchive(java.lang.String archive)
Notice that, if URI is specified, it will be encoded (Execution.encodeURL(java.lang.String)
).
public java.lang.String getAlign()
Default: null (browser default)
public void setAlign(java.lang.String align)
Refer to HTML <applet> Tagfor more information.
public java.lang.String getHspace()
Default: null (browser default)
public void setHspace(java.lang.String hspace)
public java.lang.String getVspace()
Default: null (browser default)
public void setVspace(java.lang.String vspace)
public void setParams(java.util.Map<java.lang.String,java.lang.String> params)
public java.util.Map<java.lang.String,java.lang.String> getParams()
public java.lang.String setParam(java.lang.String name, java.lang.String value)
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)
public void invoke(java.lang.String function, java.lang.String argument)
public void invoke(java.lang.String function, java.lang.String[] arguments)
public void setField(java.lang.String field, java.lang.String value)
protected boolean isChildable()
isChildable
in class AbstractComponent
protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
HtmlBasedComponent
renderProperties
in class HtmlBasedComponent
java.io.IOException
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.