public class TextInfo
extends java.lang.Object
Constructor and Description |
---|
TextInfo(NodeInfo parent,
java.lang.String text) |
TextInfo(java.lang.String text)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
getRawValue()
Returns the raw value (text).
|
java.lang.String |
getValue(Component comp)
Returns the value after evaluation.
|
java.lang.String |
getValue(Page page)
Returns the value after evaluation (might be null).
|
boolean |
removeChild(NodeInfo child)
Removes a child.
|
java.lang.String |
toString() |
public TextInfo(java.lang.String text)
public TextInfo(NodeInfo parent, java.lang.String text)
public java.lang.String getRawValue()
public java.lang.String getValue(Page page)
public java.lang.String getValue(Component comp)
public java.lang.String toString()
toString
in class java.lang.Object
public EvaluatorRef getEvaluatorRef()
NodeInfo
getEvaluatorRef
in interface NodeInfo
public PageDefinition getPageDefinition()
NodeInfo
getPageDefinition
in interface NodeInfo
public Evaluator getEvaluator()
NodeInfo
All nodes in the same ZUML tree has the same evaluator reference
(inherited from the root node, PageDefinition.getEvaluatorRef()
).
getEvaluator
in interface NodeInfo
public NodeInfo getParent()
NodeInfo
public java.util.List<NodeInfo> getChildren()
NodeInfo
Note: the returned list is readonly. To modify, please use
NodeInfo.appendChild(org.zkoss.zk.ui.metainfo.NodeInfo)
and NodeInfo.removeChild(org.zkoss.zk.ui.metainfo.NodeInfo)
instead.
getChildren
in interface NodeInfo
public void appendChild(NodeInfo child)
NodeInfo
appendChild
in interface NodeInfo
public boolean removeChild(NodeInfo child)
NodeInfo
removeChild
in interface NodeInfo
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.