|
||||||||||
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(String tag)
|
Method Summary | |
---|---|
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)
|
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(String tag)
Method Detail |
---|
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
public void setDynamicProperty(String name, Object value) throws org.zkoss.zk.ui.WrongValueException
setDynamicProperty
in interface org.zkoss.zk.ui.ext.DynamicPropertied
org.zkoss.zk.ui.WrongValueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |