|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zml.XmlNativeComponent
public class XmlNativeComponent
A comonent used to represent XML elements that are associated with the inline namespace (http://www.zkoss.org/2005/zk/inline).
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.
| Nested Class Summary | |
|---|---|
static class |
XmlNativeComponent.XmlHelper
The HTML helper. |
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
org.zkoss.zk.ui.AbstractComponent.Children |
| Nested classes/interfaces inherited from interface org.zkoss.zk.ui.ext.Native |
|---|
org.zkoss.zk.ui.ext.Native.Helper |
| Field Summary |
|---|
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl |
|---|
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE |
| Constructor Summary | |
|---|---|
XmlNativeComponent()
|
|
XmlNativeComponent(java.lang.String tag)
|
|
| Method Summary | |
|---|---|
void |
addDeclaredNamespace(org.zkoss.idom.Namespace ns)
|
java.util.List<org.zkoss.idom.Namespace> |
getDeclaredNamespaces()
|
java.lang.Object |
getDynamicProperty(java.lang.String name)
|
java.lang.String |
getEpilogContent()
|
org.zkoss.zk.ui.ext.Native.Helper |
getHelper()
|
java.lang.String |
getPrologContent()
|
java.lang.String |
getTag()
Returns the tag name, or null if plain text. |
boolean |
hasDynamicProperty(java.lang.String name)
|
boolean |
hasTag(java.lang.String tag)
|
void |
redraw(java.io.Writer out)
|
void |
setDynamicProperty(java.lang.String name,
java.lang.Object value)
|
void |
setEpilogContent(java.lang.String epilog)
|
void |
setId(java.lang.String id)
|
void |
setPrologContent(java.lang.String prolog)
|
void |
setTag(java.lang.String tag)
Sets the tag name. |
boolean |
setVisible(boolean visible)
|
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
addAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addScopeListener, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, clone, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableClientUpdate, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getExtraCtrl, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeScopeListener, render, render, render, renderProperties, replace, response, response, response, service, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setDefinition, setDefinition, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, willPassivate, willPassivate, willSerialize, willSerialize |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XmlNativeComponent()
public XmlNativeComponent(java.lang.String tag)
| Method Detail |
|---|
public java.lang.String getTag()
public java.util.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 java.lang.String getPrologContent()
getPrologContent in interface org.zkoss.zk.ui.ext.Nativepublic void setPrologContent(java.lang.String prolog)
setPrologContent in interface org.zkoss.zk.ui.ext.Nativepublic java.lang.String getEpilogContent()
getEpilogContent in interface org.zkoss.zk.ui.ext.Nativepublic void setEpilogContent(java.lang.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(java.lang.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.AbstractComponent
public void redraw(java.io.Writer out)
throws java.io.IOException
redraw in interface org.zkoss.zk.ui.sys.ComponentCtrlredraw in class org.zkoss.zk.ui.AbstractComponentjava.io.IOException
public void setTag(java.lang.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(java.lang.String tag)
hasTag in interface org.zkoss.zk.ui.ext.DynamicTagpublic boolean hasDynamicProperty(java.lang.String name)
hasDynamicProperty in interface org.zkoss.zk.ui.ext.DynamicPropertiedpublic java.lang.Object getDynamicProperty(java.lang.String name)
getDynamicProperty in interface org.zkoss.zk.ui.ext.DynamicPropertied
public void setDynamicProperty(java.lang.String name,
java.lang.Object value)
throws org.zkoss.zk.ui.WrongValueException
setDynamicProperty in interface org.zkoss.zk.ui.ext.DynamicPropertiedorg.zkoss.zk.ui.WrongValueException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||