Package org.zkoss.zk.ui.metainfo
Interface NodeInfo
-
- All Known Implementing Classes:
AttributesInfo,ComponentInfo,NativeInfo,PageDefinition,ShadowInfo,TemplateInfo,TextInfo,VariablesInfo,ZkInfo,ZScriptInfo
public interface NodeInfoRepresent a node in a ZUML metainfo tree.- Since:
- 6.0.0
- Author:
- tomyeh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendChild(NodeInfo child)Append a childjava.util.List<NodeInfo>getChildren()Returns a readonly list of children.EvaluatorgetEvaluator()Returns the evaluator.EvaluatorRefgetEvaluatorRef()Returns the evaluator reference.PageDefinitiongetPageDefinition()Returns the page definition, i.e., the root node, or null if not available.NodeInfogetParent()Returns the parent, or null if it has no parent.booleanremoveChild(NodeInfo child)Removes a child.
-
-
-
Method Detail
-
getParent
NodeInfo getParent()
Returns the parent, or null if it has no parent.
-
getChildren
java.util.List<NodeInfo> 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
void appendChild(NodeInfo child)
Append a child
-
removeChild
boolean removeChild(NodeInfo child)
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.
-
-