Package org.zkoss.zk.ui.metainfo
Interface NodeInfo
- All Known Implementing Classes:
AttributesInfo,ComponentInfo,NativeInfo,PageDefinition,ShadowInfo,TemplateInfo,TextInfo,VariablesInfo,ZkInfo,ZScriptInfo
public interface NodeInfo
Represent a node in a ZUML metainfo tree.
- Since:
- 6.0.0
- Author:
- tomyeh
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendChild(NodeInfo child) Append a childReturns a readonly list of children.Returns the evaluator.Returns the evaluator reference.Returns the page definition, i.e., the root node, or null if not available.Returns the parent, or null if it has no parent.booleanremoveChild(NodeInfo child) Removes a child.
-
Method Details
-
getParent
NodeInfo getParent()Returns the parent, or null if it has no parent. -
getChildren
Returns a readonly list of children.Note: the returned list is readonly. To modify, please use
appendChild(org.zkoss.zk.ui.metainfo.NodeInfo)andremoveChild(org.zkoss.zk.ui.metainfo.NodeInfo)instead. -
appendChild
Append a child -
removeChild
Removes a child. -
getPageDefinition
PageDefinition getPageDefinition()Returns the page definition, i.e., the root node, or null if not available. -
getEvaluator
Evaluator getEvaluator()Returns the evaluator.All nodes in the same ZUML tree has the same evaluator reference (inherited from the root node,
PageDefinition.getEvaluatorRef()). -
getEvaluatorRef
EvaluatorRef getEvaluatorRef()Returns the evaluator reference.
-