Name

LzDataText — Represents a text node in a set of data.

Synopsis

JavaScript: LzDataText
Type: Class
Access: public
Topic: LFC.Data
Declared in: WEB-INF/lps/lfc/data/LzDataText.lzs

Description

An LzDataText represents a text node a in a hierarchical dataset. An LzDataText can only contain text data. It can be a child a of an LzDataElement. See the example on LzDataNode.

Superclass Chain

??? » LzDataText

Known Subclasses

Details

Properties (3)

data
public var data : String = ;
The data held by this node.
length
public var length : Number = 0.0;
read-only property
nodeType
public var nodeType;
This property is of type String, can raise a DOMException object on setting and can raise a DOMException object on retrieval.

Setters (1)

Setters for virtual properties, to be used with setAttribute. A setter may or may not have a corresponding getter method; consult the Methods list in this section.

data

Methods (2)

initialize()
public function initialize(text : String);
setData()
public function setData(newdata : String);
Sets the string that this node holds.

Events (6)

onattributes
public event onattributes;
onchildNode
public event onchildNode;
onchildNodes
public event onchildNodes;
onDocumentChange
public event onDocumentChange;
onnodeName
public event onnodeName;
onparentNode
public event onparentNode;

JavaScript Synopsis

public LzDataText extends  LzMiniNode  {
  public var data  : String = ;
  public var length  : Number = 0.0;
  public var nodeType ;
  prototype public function initialize (text : String);
  prototype public event onattributes ;
  prototype public event onchildNode ;
  prototype public event onchildNodes ;
  prototype public event onDocumentChange ;
  prototype public event onnodeName ;
  prototype public event onparentNode ;
  prototype public function setData (newdata : String);
}