Name
LzDataText — Represents a text node in a set of data.
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
Details
Properties (3)
-
data
-
public var data : String = ;
The data held by this node.
-
length
-
public var length : Number = 0.0;
-
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 (5)
-
cloneNode()
-
private function cloneNode();
-
initialize()
-
public function initialize(text : String);
-
serialize()
-
private function serialize();
-
setData()
-
public function setData(newdata : String);
Sets the string that this node holds.
-
toString()
-
private function toString();
Events (6)
-
onattributes
-
public event onattributes;
-
onchildNode
-
public event onchildNode;
-
onchildNodes
-
public event onchildNodes;
-
onDocumentChange
-
public event onDocumentChange;
-
onnodeName
-
-
onparentNode
-
public event onparentNode;
JavaScript Synopsis
public
LzDataText extends
LzMiniNode
{
public var
data
:
String = ;
public var
length
:
Number = 0.0;
prototype public function
initialize
(
text : String);
prototype public function
setData
(
newdata : String);
}