public class NgApplet
extends org.zkoss.zk.ui.HtmlBasedComponent
AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED| Constructor and Description |
|---|
NgApplet() |
| Modifier and Type | Method and Description |
|---|---|
String |
getArchive() |
String |
getCode() |
String |
getCodebase() |
Properties |
getParameters() |
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.
|
boolean |
isIgnoreInvokeErrors()
Checks if invoke errors will be ignored.
|
void |
notifyWhenReady(int timeout,
int attempts)
This method can be called after the applet was attached to a page.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
setArchive(String archive)
Sets the archive parameter.
|
void |
setCode(String code)
Sets the code parameter.
|
void |
setCodebase(String codebase)
Sets the codebase.
|
void |
setIgnoreInvokeErrors(boolean ignoreInvokeErrors)
If set to true, all errors that occur when a method of the applet is called by JavaScript
will be ignored.
|
void |
setJsonParameters(String jsonParameters)
Sets the json parameters.
|
String |
setParam(String name,
String value)
Sets the parameter with the specified name.
|
void |
setParameters(Map<String,String> params)
Sets the parameters.
|
void |
setParameters(Properties params)
Sets the parameters.
|
clone, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getPropertyAccess, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, 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, setZIndexDirectlyaddAnnotation, 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, equals, 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, isChildable, 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, willSerializepublic String getCodebase()
public void setCodebase(String codebase)
codebase - the new codebasepublic String getCode()
public void setCode(String code)
code - the new codepublic String getArchive()
public void setArchive(String archive)
archive - the new archivepublic Properties getParameters()
public void setParameters(Map<String,String> params)
params - the paramspublic void setParameters(Properties params)
params - the new parameterspublic void setJsonParameters(String jsonParameters)
jsonParameters - a json string containing the parameterspublic String setParam(String name, String value)
name - the namevalue - the valuepublic boolean isIgnoreInvokeErrors()
public void setIgnoreInvokeErrors(boolean ignoreInvokeErrors)
ignoreInvokeErrors - whether to ignore invoke errors or notprotected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class org.zkoss.zk.ui.HtmlBasedComponentIOExceptionHtmlBasedComponent.renderProperties(org.zkoss.zk.ui.sys.ContentRenderer)public void invoke(String function)
function - name of the functionpublic void invoke(String function, String argument)
function - name of the functionargument - the argumentpublic void invoke(String function, String[] arguments)
function - name of the functionarguments - the argumentspublic void notifyWhenReady(int timeout,
int attempts)
attempts times to check if the applet is
ready. A delay of timeout milliseconds will be used between two attempts. If the
applet is ready, an onAppletReady event will be fired.timeout - timeout between attemptsattempts - number of attemptsCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.