Name

LzDataElementTrait

Synopsis

JavaScript: LzDataElementTrait
Type: Class
Access: private
Topic: LFC.Data
Declared in: WEB-INF/lps/lfc/data/LzDataElement.lzs

Superclass Chain

LzDataElementTrait

Known Subclasses

Details

Static Methods (1)

initialize()
static public function initialize(prototype);

Properties (6)

__LZchangeQ
private var __LZchangeQ = null;
__LZcoDirty
private var __LZcoDirty = true;
__LZgt
public var __LZgt = >;
__LZlocker
private var __LZlocker = null;
__LZlt
public var __LZlt = <;
__LZo
private var __LZo;

Methods (30)

appendChild()
public function appendChild(newChild : LzDataNode) : LzDataNode;
Adds a child to this node's list of childNodes
cloneNode()
public function cloneNode(deep : Boolean) : LzDataNode;
Returns a copy of this node.
_dbg_name()
private function _dbg_name();
For debugging. Same as serialize, but will abbreviate at printLength.
getAttr()
public function getAttr(name : String) : String;
Returns the value for the give attribute
getElementsByTagName()
public function getElementsByTagName(name : String);
Returns a list of the childNodes of this node which have a given name
getFirstChild()
public function getFirstChild() : LzDataNode;
Returns the first child of this node.
getLastChild()
public function getLastChild() : LzDataNode;
Returns the last child of this node.
getOffset()
public function getOffset() : number;
gets offset of node in parent's childNodes array
getParent()
public function getParent() : LzDataNode;
Returns the parent of this node
handleDocumentChange()
public function handleDocumentChange(what : String, who : LzDataNode, type : Number, cobj);
Nodes call this method on their ownerDocument whenever they change in any way. This method sends the onDocumentChange event, which triggers datapointer updates
hasAttr()
public function hasAttr(name : String) : Boolean;
Tests whether or not this node has a given attribute.
hasChildNodes()
public function hasChildNodes() : Boolean;
Tests whether or not this node has child nodes.
insertBefore()
public function insertBefore(newChild : LzDataNode, refChild : LzDataNode) : LzDataElement;
Inserts the given LzDataNode before another node in this node's childNodes
__LZdoLock()
private function __LZdoLock(locker);
__LZdoUnlock()
private function __LZdoUnlock(locker);
__LZgetText()
private function __LZgetText();
__LZupdateCO()
private function __LZupdateCO();
__LZv2E()
private function __LZv2E(o : Type);
makeNodeList()
public function makeNodeList(count : Number, name : String) : Array;
Returns a list of empty nodes, each named 'name'.
removeAttr()
public function removeAttr(name : String);
Removes the named attribute
removeChild()
public function removeChild(oldChild : LzDataNode) : LzDataNode;
Removes a given node from this node's childNodes
replaceChild()
public function replaceChild(newChild : LzDataNode, oldChild : LzDataNode) : LzDataElement;
Replaces a given LzDataNode in this node's childNodes with a new one.
serialize()
public function serialize() : String;
Returns this node as a string of xml.
serializeInternal()
private function serializeInternal(len);
Implementation of serialize with option to limit string length
setAttr()
public function setAttr(name : String, value : String);
Sets the given attribute to the given value
setAttrs()
public function setAttrs(attrs : Object);
Sets the attributes of this node to the given Object.
setChildNodes()
public function setChildNodes(children);
Sets the children of this node to the given array.
setNodeName()
public function setNodeName(name : String);
Sets the name of this node.
toString()
private function toString();
valueToElement()
public function valueToElement(o);
Get LzDataElement representation of primitive type, array, or object value.

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

private LzDataElementTrait {
  static public function initialize (prototype);
  private var __LZchangeQ  = null;
  private var __LZcoDirty  = true;
  public var __LZgt  = >;
  private var __LZlocker  = null;
  public var __LZlt  = <;
  private var __LZo ;
  prototype public function appendChild (newChild : LzDataNode) : LzDataNode;
  prototype public function cloneNode (deep : Boolean) : LzDataNode;
  prototype private function _dbg_name ();
  prototype public function getAttr (name : String) : String;
  prototype public function getElementsByTagName (name : String);
  prototype public function getFirstChild () : LzDataNode;
  prototype public function getLastChild () : LzDataNode;
  prototype public function getOffset () : number;
  prototype public function getParent () : LzDataNode;
  prototype public function handleDocumentChange (what : String, who : LzDataNode, type : Number, cobj);
  prototype public function hasAttr (name : String) : Boolean;
  prototype public function hasChildNodes () : Boolean;
  prototype public function insertBefore (newChild : LzDataNode, refChild : LzDataNode) : LzDataElement;
  prototype private function __LZdoLock (locker);
  prototype private function __LZdoUnlock (locker);
  prototype private function __LZgetText ();
  prototype private function __LZupdateCO ();
  prototype private function __LZv2E (o : Type);
  prototype public function makeNodeList (count : Number, name : String) : Array;
  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 removeAttr (name : String);
  prototype public function removeChild (oldChild : LzDataNode) : LzDataNode;
  prototype public function replaceChild (newChild : LzDataNode, oldChild : LzDataNode) : LzDataElement;
  prototype public function serialize () : String;
  prototype private function serializeInternal (len);
  prototype public function setAttr (name : String, value : String);
  prototype public function setAttrs (attrs : Object);
  prototype public function setChildNodes (children);
  prototype public function setNodeName (name : String);
  prototype private function toString ();
  prototype public function valueToElement (o);
}