public class XmlNativeComponent
extends org.zkoss.zk.ui.AbstractComponent
implements org.zkoss.zk.ui.ext.DynamicTag, org.zkoss.zk.ui.ext.Native
It contains the content that shall be sent directly to client.
It has three parts: prolog, children and epilog.
The prolog (getPrologContent()) and epilog (getEpilogContent())
are both String.
When this component is renderred (redraw(java.io.Writer)), it generates
the prolog first, the children and then the epilog.
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlNativeComponent.XmlHelper
The HTML helper.
|
| Constructor and Description |
|---|
XmlNativeComponent() |
XmlNativeComponent(String tag) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeclaredNamespace(org.zkoss.idom.Namespace ns) |
List<org.zkoss.idom.Namespace> |
getDeclaredNamespaces() |
Object |
getDynamicProperty(String name) |
String |
getEpilogContent() |
org.zkoss.zk.ui.ext.Native.Helper |
getHelper() |
String |
getPrologContent() |
String |
getTag()
Returns the tag name, or null if plain text.
|
boolean |
hasDynamicProperty(String name) |
boolean |
hasTag(String tag) |
void |
redraw(Writer out) |
void |
setDynamicProperty(String name,
Object value) |
void |
setEpilogContent(String epilog) |
void |
setId(String id) |
void |
setPrologContent(String prolog) |
void |
setTag(String tag)
Sets the tag name.
|
boolean |
setVisible(boolean visible) |
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, clone, 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, getExtraCtrl, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getPropertyAccess, 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, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, renderProperties, replace, response, response, response, service, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerializepublic XmlNativeComponent()
public XmlNativeComponent(String tag)
public String getTag()
public List<org.zkoss.idom.Namespace> getDeclaredNamespaces()
getDeclaredNamespaces in interface org.zkoss.zk.ui.ext.Nativepublic void addDeclaredNamespace(org.zkoss.idom.Namespace ns)
addDeclaredNamespace in interface org.zkoss.zk.ui.ext.Nativepublic String getPrologContent()
getPrologContent in interface org.zkoss.zk.ui.ext.Nativepublic void setPrologContent(String prolog)
setPrologContent in interface org.zkoss.zk.ui.ext.Nativepublic String getEpilogContent()
getEpilogContent in interface org.zkoss.zk.ui.ext.Nativepublic void setEpilogContent(String epilog)
setEpilogContent in interface org.zkoss.zk.ui.ext.Nativepublic org.zkoss.zk.ui.ext.Native.Helper getHelper()
getHelper in interface org.zkoss.zk.ui.ext.Nativepublic void setId(String id)
setId in interface org.zkoss.zk.ui.ComponentsetId in class org.zkoss.zk.ui.AbstractComponentpublic boolean setVisible(boolean visible)
setVisible in interface org.zkoss.zk.ui.ComponentsetVisible in class org.zkoss.zk.ui.AbstractComponentpublic void redraw(Writer out) throws IOException
redraw in interface org.zkoss.zk.ui.sys.ComponentCtrlredraw in class org.zkoss.zk.ui.AbstractComponentIOExceptionpublic void setTag(String tag) throws org.zkoss.zk.ui.WrongValueException
setTag in interface org.zkoss.zk.ui.ext.DynamicTagtag - the tag name. If null or empty, plain text is assumed.org.zkoss.zk.ui.WrongValueExceptionpublic boolean hasTag(String tag)
hasTag in interface org.zkoss.zk.ui.ext.DynamicTagpublic boolean hasDynamicProperty(String name)
hasDynamicProperty in interface org.zkoss.zk.ui.ext.DynamicPropertiedpublic Object getDynamicProperty(String name)
getDynamicProperty in interface org.zkoss.zk.ui.ext.DynamicPropertiedCopyright © 2018. All rights reserved.