|
||||||||||
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(EvaluatorRef evlar,
ComponentDefinition compdef,
java.lang.String tagnm)
Constructs a native info without a parent. |
|
NativeInfo(NodeInfo parent,
ComponentDefinition compdef,
java.lang.String tagnm)
Constructs a native info with a parent. |
Method Summary | |
---|---|
void |
addDeclaredNamespace(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. |
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,
Component parent)
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.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)
parent
- the parnet info (never null).compdef
- the component definition (never null).public NativeInfo(EvaluatorRef evlar, ComponentDefinition compdef, java.lang.String tagnm)
compdef
- the component definition (never null).Method Detail |
---|
public java.util.List getDeclaredNamespaces()
public void addDeclaredNamespace(Namespace ns)
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, Component parent)
ComponentInfo
Like 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 ComponentInfo
public java.lang.Object clone()
ComponentInfo
ComponentInfo.getParent()
is null.
The children (@{link #getChildren}) is not cloned, either.
Thus, it is better to use ComponentInfo.duplicate()
with
ComposerExt.doBeforeCompose(org.zkoss.zk.ui.Page, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.metainfo.ComponentInfo)
if you want to override some properties.
clone
in class ComponentInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |