org.zkoss.zk.ui.metainfo
Interface NodeInfo

All Known Implementing Classes:
AttributesInfo, ComponentInfo, NativeInfo, PageDefinition, TemplateInfo, TextInfo, VariablesInfo, ZkInfo, ZScriptInfo

public interface NodeInfo

Represent a node in a ZUML metainfo tree.

Since:
6.0.0
Author:
tomyeh

Method Summary
 void appendChild(NodeInfo child)
          Append a child
 java.util.List<NodeInfo> getChildren()
          Returns a readonly list of children.
 Evaluator getEvaluator()
          Returns the evaluator.
 EvaluatorRef getEvaluatorRef()
          Returns the evaluator reference.
 PageDefinition getPageDefinition()
          Returns the page definition, i.e., the root node, or null if not available.
 NodeInfo getParent()
          Returns the parent, or null if it has no parent.
 boolean removeChild(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) and removeChild(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.



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo