Package org.zkoss.zk.ui.metainfo
Class TextInfo
java.lang.Object
org.zkoss.zk.ui.metainfo.TextInfo
- All Implemented Interfaces:
Serializable,NodeInfo
Represents a text.
- Since:
- 3.0.0
- Author:
- tomyeh
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorTextInfo(EvaluatorRef evalr, String text) ZK-5695: Mainly used in NativeInfo.addPrologChild() when escaping special characters inside a script tag is required, ensuring a new TextInfo instance preserving evaluator context. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendChild(NodeInfo child) Append a childReturns a readonly list of children.Returns the evaluator.Returns the evaluator reference.Returns the page definition, i.e., the root node, or null if not available.Returns the parent, or null if it has no parent.Returns the raw value (text).Returns the value after evaluation.Returns the value after evaluation (might be null).booleanremoveChild(NodeInfo child) Removes a child.toString()
-
Constructor Details
-
TextInfo
Constructor- Since:
- 6.0.0
-
TextInfo
-
TextInfo
ZK-5695: Mainly used in NativeInfo.addPrologChild() when escaping special characters inside a script tag is required, ensuring a new TextInfo instance preserving evaluator context.- Since:
- 10.2.0
-
-
Method Details
-
getRawValue
Returns the raw value (text). -
getValue
Returns the value after evaluation (might be null). -
getValue
Returns the value after evaluation. -
toString
-
getEvaluatorRef
Description copied from interface:NodeInfoReturns the evaluator reference.- Specified by:
getEvaluatorRefin interfaceNodeInfo
-
getPageDefinition
Description copied from interface:NodeInfoReturns the page definition, i.e., the root node, or null if not available.- Specified by:
getPageDefinitionin interfaceNodeInfo
-
getEvaluator
Description copied from interface:NodeInfoReturns the evaluator.All nodes in the same ZUML tree has the same evaluator reference (inherited from the root node,
PageDefinition.getEvaluatorRef()).- Specified by:
getEvaluatorin interfaceNodeInfo
-
getParent
Description copied from interface:NodeInfoReturns the parent, or null if it has no parent. -
getChildren
Description copied from interface:NodeInfoReturns 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:
getChildrenin interfaceNodeInfo
-
appendChild
Description copied from interface:NodeInfoAppend a child- Specified by:
appendChildin interfaceNodeInfo
-
removeChild
Description copied from interface:NodeInfoRemoves a child.- Specified by:
removeChildin interfaceNodeInfo
-