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, 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, 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, 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, willSerialize
public XmlNativeComponent()
public XmlNativeComponent(String tag)
public String getTag()
public List<org.zkoss.idom.Namespace> getDeclaredNamespaces()
getDeclaredNamespaces
in interface org.zkoss.zk.ui.ext.Native
public void addDeclaredNamespace(org.zkoss.idom.Namespace ns)
addDeclaredNamespace
in interface org.zkoss.zk.ui.ext.Native
public String getPrologContent()
getPrologContent
in interface org.zkoss.zk.ui.ext.Native
public void setPrologContent(String prolog)
setPrologContent
in interface org.zkoss.zk.ui.ext.Native
public String getEpilogContent()
getEpilogContent
in interface org.zkoss.zk.ui.ext.Native
public void setEpilogContent(String epilog)
setEpilogContent
in interface org.zkoss.zk.ui.ext.Native
public org.zkoss.zk.ui.ext.Native.Helper getHelper()
getHelper
in interface org.zkoss.zk.ui.ext.Native
public void setId(String id)
setId
in interface org.zkoss.zk.ui.Component
setId
in class org.zkoss.zk.ui.AbstractComponent
public boolean setVisible(boolean visible)
setVisible
in interface org.zkoss.zk.ui.Component
setVisible
in class org.zkoss.zk.ui.AbstractComponent
public void redraw(Writer out) throws IOException
redraw
in interface org.zkoss.zk.ui.sys.ComponentCtrl
redraw
in class org.zkoss.zk.ui.AbstractComponent
IOException
public void setTag(String tag) throws org.zkoss.zk.ui.WrongValueException
setTag
in interface org.zkoss.zk.ui.ext.DynamicTag
tag
- the tag name. If null or empty, plain text is assumed.org.zkoss.zk.ui.WrongValueException
public boolean hasTag(String tag)
hasTag
in interface org.zkoss.zk.ui.ext.DynamicTag
public boolean hasDynamicProperty(String name)
hasDynamicProperty
in interface org.zkoss.zk.ui.ext.DynamicPropertied
public Object getDynamicProperty(String name)
getDynamicProperty
in interface org.zkoss.zk.ui.ext.DynamicPropertied
Copyright © 2016. All rights reserved.