LzDataNode
is the base class for the classes
that represent OpenLaszlo's hierarchical data format.
<canvas width="300" height="300"> <simplelayout axis="y"/> <text width="300" height="250" bgcolor="silver" multiline="true" name="display"/> <button>Make some data <attribute name="currentstep" value="0"/> <handler name="onclick"> <![CDATA[ switch(currentstep ++){ case 0: this.n = setAttribute('text', 'Add some children'); break; case 1: for (var i = 1; i < 11 ; i++){ } setAttribute('text', 'Add linebreaks'); break; case 2: var dp = new LzDatapointer(); dp.setPointer(this.n.getFirstChild()); do { } while (dp.selectNext()) dp.p.parentNode.appendChild(new LzDataText('\n')); setAttribute('visible', false); break; } display.setText(display.escapeText(n.serialize())); ]]> </handler> </button> </canvas>
Copyright © 2002-2007 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.