|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.metainfo.NodeInfo
org.zkoss.zk.ui.metainfo.ComponentInfo
org.zkoss.zk.ui.metainfo.NativeInfo
public class NativeInfo
Represents the compmonent infomation about the native components.
Note:it is not thread-safe.
| Constructor Summary | |
|---|---|
NativeInfo(NodeInfo parent,
ComponentDefinition compdef,
java.lang.String tagnm)
|
|
| Method Summary | |
|---|---|
void |
addDeclaredNamespace(org.zkoss.idom.Namespace ns)
Adds a declared namespace. |
void |
addEpilogChild(AttributesInfo child)
Adds an epilog child. |
void |
addEpilogChild(NativeInfo child)
Adds an epilog child. |
void |
addEpilogChild(VariablesInfo child)
Adds an epilog child. |
void |
addEpilogChild(ZScript child)
Adds an epilog child. |
void |
addPrologChild(AttributesInfo child)
Adds a prolog child. |
void |
addPrologChild(NativeInfo child)
Adds a prolog child. |
void |
addPrologChild(TextInfo text)
Adds a text as a prolog child. |
void |
addPrologChild(VariablesInfo child)
Adds a prolog child. |
void |
addPrologChild(ZScript child)
Adds a prolog child. |
void |
appendChild(TextInfo text)
Adds a Sting child. |
java.lang.Object |
clone()
Clones this info. |
java.util.List |
getDeclaredNamespaces()
Returns a readonly list of the declared namespaces (never null). |
java.util.List |
getEpilogChildren()
Returns a readonly list of the epilog children ( NativeInfo). |
java.util.List |
getPrologChildren()
Returns a readonly list of the prolog children ( NativeInfo). |
NativeInfo |
getSplitChild()
Returns the split child, or null if not available. |
Component |
newInstance(Page page)
Creates an component based on this info (never null). |
void |
setSplitChild(NativeInfo child)
Sets the split kid. |
| Methods inherited from class org.zkoss.zk.ui.metainfo.ComponentInfo |
|---|
addAnnotation, addAnnotation, addEventHandler, addProperty, applyProperties, evalProperties, getAnnotationMap, getApply, getComponentDefinition, getComposer, getEvaluatorRef, getForEach, getForward, getFulfill, getImplementationClass, getLanguageDefinition, getPageDefinition, getParent, getProperties, getTag, getTextAs, isEffective, isEffective, readExternal, resolveImplementationClass, setApply, setCondition, setForEach, setForward, setFulfill, setImplementationClass, setParent, toString, withForEach, writeExternal |
| Methods inherited from class org.zkoss.zk.ui.metainfo.NodeInfo |
|---|
appendChild, appendChild, appendChild, appendChild, getChildren, removeChild, removeChild, removeChild, removeChild |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NativeInfo(NodeInfo parent,
ComponentDefinition compdef,
java.lang.String tagnm)
| Method Detail |
|---|
public java.util.List getDeclaredNamespaces()
public void addDeclaredNamespace(org.zkoss.idom.Namespace ns)
public void appendChild(TextInfo text)
public java.util.List getPrologChildren()
NativeInfo).
A prolog child is a special child of NativeInfo.
(it is not part of NodeInfo.getChildren()
that is used to optimize the native components such that
ZK can use one native components to represent several NativeInfo.
In other words, a prolog child won't be created as part of
The prolog children must be rendered before NodeInfo.getChildren().
public java.util.List getEpilogChildren()
NativeInfo).
The epilog children must be rendered after NodeInfo.getChildren().
public void addPrologChild(NativeInfo child)
Note: if child belong to other ComponentInfo,
you have to remove them first before calling this method.
Otherwise, the result is unpreditable.
child - the prolog child.getPrologChildren()public void addPrologChild(ZScript child)
child - the prolog child. If child belongs to NodeInfo.getChildren(),
it will be removed first.getPrologChildren()public void addPrologChild(VariablesInfo child)
child - the prolog child. If child belongs to NodeInfo.getChildren(),
it will be removed first.getPrologChildren()public void addPrologChild(AttributesInfo child)
Note: if child belong to other ComponentInfo,
you have to remove them first before calling this method.
Otherwise, the result is unpreditable.
child - the prolog child.getPrologChildren()public void addPrologChild(TextInfo text)
public void addEpilogChild(NativeInfo child)
child - the epilog child. If child belongs to NodeInfo.getChildren(),
it will be removed first.getPrologChildren()public void addEpilogChild(ZScript child)
child - the epilog child. If child belongs to NodeInfo.getChildren(),
it will be removed first.getPrologChildren()public void addEpilogChild(VariablesInfo child)
child - the epilog child. If child belongs to NodeInfo.getChildren(),
it will be removed first.getPrologChildren()public void addEpilogChild(AttributesInfo child)
child - the epilog child. If child belongs to NodeInfo.getChildren(),
it will be removed first.getPrologChildren()public NativeInfo getSplitChild()
public void setSplitChild(NativeInfo child)
getSplitChild()public Component newInstance(Page page)
ComponentInfoLike ComponentDefinition.newInstance(org.zkoss.zk.ui.Page, java.lang.String),
this method doesn't invoke ComponentInfo.applyProperties(org.zkoss.zk.ui.Component).
It is caller's job to invoke them if necessary.
Since the value of properties might depend on the component tree,
it is better to assign the component with a proper parent
before calling ComponentInfo.applyProperties(org.zkoss.zk.ui.Component).
newInstance in class ComponentInfopublic java.lang.Object clone()
ComponentInfoComponentInfo.getParent() is null.
clone in class ComponentInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||