|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zk.ui.metainfo.NodeInfo
public abstract class NodeInfo
Represents a node of the ZUML tree.
It is an abstract class while the concrete classes include
PageDefinition
and ComponentInfo
.
The root must be an instance of PageDefinition
and the other nodes must be instances of ComponentInfo
,
ZScript
, or AttributesInfo
.
Note:it is not thread-safe.
Constructor Summary | |
---|---|
NodeInfo()
|
Method Summary | |
---|---|
void |
appendChild(AttributesInfo custAttrs)
Adds a custom-attributes child. |
void |
appendChild(ComponentInfo compInfo)
Adds a ComponentInfo child. |
void |
appendChild(VariablesInfo variables)
Adds a variables child. |
void |
appendChild(ZScript zscript)
Adds a zscript child. |
java.util.List |
getChildren()
Returns a list of children. |
protected abstract EvaluatorRef |
getEvaluatorRef()
Returns the evaluator reference (never null). |
abstract PageDefinition |
getPageDefinition()
Returns the page definition, or null if not available. |
abstract NodeInfo |
getParent()
Returns the parent, or null if no parent. |
boolean |
removeChild(AttributesInfo custAttrs)
Removes a custom-attributes child. |
boolean |
removeChild(ComponentInfo compInfo)
Removes a ComponentInfo child. |
boolean |
removeChild(VariablesInfo variables)
Removes a variables child. |
boolean |
removeChild(ZScript zscript)
Removes a zscript child. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeInfo()
Method Detail |
---|
public abstract PageDefinition getPageDefinition()
public abstract NodeInfo getParent()
protected abstract EvaluatorRef getEvaluatorRef()
This method is used only for implementation only.
public void appendChild(ZScript zscript)
public void appendChild(VariablesInfo variables)
public void appendChild(AttributesInfo custAttrs)
public void appendChild(ComponentInfo compInfo)
ComponentInfo
child.
public boolean removeChild(ZScript zscript)
public boolean removeChild(VariablesInfo variables)
public boolean removeChild(AttributesInfo custAttrs)
public boolean removeChild(ComponentInfo compInfo)
ComponentInfo
child.
Call ComponentInfo.setParent(org.zkoss.zk.ui.metainfo.NodeInfo)
instead.
public java.util.List getChildren()
ComponentInfo
, ZScript
VariablesInfo
, or AttributesInfo
.
Note: the returned list is live but it is not a good idea
to modify it directly,
because, unlike Component
, it doesn't maintain
getParent()
. Thus, it is better to invoke
appendChild(ComponentInfo)
and removeChild(ComponentInfo)
instead.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |