|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.metainfo.TextInfo
public class TextInfo
Represents a text.
Constructor Summary | |
---|---|
TextInfo(NodeInfo parent,
java.lang.String text)
|
|
TextInfo(java.lang.String text)
Constructor |
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. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextInfo(java.lang.String text)
public TextInfo(NodeInfo parent, java.lang.String text)
Method Detail |
---|
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
getParent
in interface 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |