public class NgApplet
extends org.zkoss.zk.ui.HtmlBasedComponent
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, 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, addForward, addForward, addForward, addForward, addMoved, addScopeListener, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, containsVariable, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableClientUpdate, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getChildren, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getStubonly, getUuid, getVariable, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, newChildren, newExtraCtrl, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeScopeListener, render, render, render, renderIdSpace, response, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setVariable, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, unsetVariable, updateByClient, willPassivate, willPassivate, willSerialize, willSerialize
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, containsVariable, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getChildren, getDefinition, getDesktop, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getStubonly, getUuid, getVariable, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setVariable, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, unsetVariable
public 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.HtmlBasedComponent
IOException
HtmlBasedComponent.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 © 2020 Hyland Software Germany GmbH. All rights reserved.