Package org.zkoss.zk.ui.metainfo
Class TextInfo
- java.lang.Object
-
- org.zkoss.zk.ui.metainfo.TextInfo
-
- All Implemented Interfaces:
java.io.Serializable
,NodeInfo
public class TextInfo extends java.lang.Object
Represents a text.- Since:
- 3.0.0
- Author:
- tomyeh
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendChild(NodeInfo child)
Append a childjava.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()
-
-
-
Constructor Detail
-
TextInfo
public TextInfo(java.lang.String text)
Constructor- Since:
- 6.0.0
-
TextInfo
public TextInfo(NodeInfo parent, java.lang.String text)
-
-
Method Detail
-
getRawValue
public java.lang.String getRawValue()
Returns the raw value (text).
-
getValue
public java.lang.String getValue(Page page)
Returns the value after evaluation (might be null).
-
getValue
public java.lang.String getValue(Component comp)
Returns the value after evaluation.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getEvaluatorRef
public EvaluatorRef getEvaluatorRef()
Description copied from interface:NodeInfo
Returns the evaluator reference.- Specified by:
getEvaluatorRef
in interfaceNodeInfo
-
getPageDefinition
public PageDefinition getPageDefinition()
Description copied from interface:NodeInfo
Returns the page definition, i.e., the root node, or null if not available.- Specified by:
getPageDefinition
in interfaceNodeInfo
-
getEvaluator
public Evaluator getEvaluator()
Description copied from interface:NodeInfo
Returns the evaluator.All nodes in the same ZUML tree has the same evaluator reference (inherited from the root node,
PageDefinition.getEvaluatorRef()
).- Specified by:
getEvaluator
in interfaceNodeInfo
-
getParent
public NodeInfo getParent()
Description copied from interface:NodeInfo
Returns the parent, or null if it has no parent.
-
getChildren
public java.util.List<NodeInfo> getChildren()
Description copied from interface:NodeInfo
Returns a readonly list of children.Note: the returned list is readonly. To modify, please use
NodeInfo.appendChild(org.zkoss.zk.ui.metainfo.NodeInfo)
andNodeInfo.removeChild(org.zkoss.zk.ui.metainfo.NodeInfo)
instead.- Specified by:
getChildren
in interfaceNodeInfo
-
appendChild
public void appendChild(NodeInfo child)
Description copied from interface:NodeInfo
Append a child- Specified by:
appendChild
in interfaceNodeInfo
-
removeChild
public boolean removeChild(NodeInfo child)
Description copied from interface:NodeInfo
Removes a child.- Specified by:
removeChild
in interfaceNodeInfo
-
-