org.zkoss.zk.ui.metainfo
Class TextInfo

java.lang.Object
  extended by 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

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

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 class java.lang.Object

getEvaluatorRef

public EvaluatorRef getEvaluatorRef()
Description copied from interface: NodeInfo
Returns the evaluator reference.

Specified by:
getEvaluatorRef in interface NodeInfo

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 interface NodeInfo

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 interface NodeInfo

getParent

public NodeInfo getParent()
Description copied from interface: NodeInfo
Returns the parent, or null if it has no parent.

Specified by:
getParent in interface NodeInfo

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) and NodeInfo.removeChild(org.zkoss.zk.ui.metainfo.NodeInfo) instead.

Specified by:
getChildren in interface NodeInfo

appendChild

public void appendChild(NodeInfo child)
Description copied from interface: NodeInfo
Append a child

Specified by:
appendChild in interface NodeInfo

removeChild

public boolean removeChild(NodeInfo child)
Description copied from interface: NodeInfo
Removes a child.

Specified by:
removeChild in interface NodeInfo


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