Author: lou
Date: 2007-11-26 04:07:49 -0800 (Mon, 26 Nov 2007)
New Revision: 7364

Modified:
   openlaszlo/trunk/docs/src/developers/programs/animation-$10.lzx
   openlaszlo/trunk/docs/src/developers/programs/animation-$11.lzx
   openlaszlo/trunk/docs/src/developers/programs/animation-$12.lzx
   openlaszlo/trunk/docs/src/developers/programs/animation-$13.lzx
   openlaszlo/trunk/docs/src/developers/programs/animation-$7.lzx
   openlaszlo/trunk/docs/src/developers/programs/animation-$8.lzx
   openlaszlo/trunk/docs/src/developers/programs/animation-$9.lzx
   openlaszlo/trunk/docs/src/developers/programs/browser-integration-$19.lzx
   openlaszlo/trunk/docs/src/developers/programs/cookies-$3.lzx
   openlaszlo/trunk/docs/src/developers/programs/databinding-$20.lzx
   openlaszlo/trunk/docs/src/developers/programs/databinding-$21.lzx
   openlaszlo/trunk/docs/src/developers/programs/databinding-$23.lzx
   openlaszlo/trunk/docs/src/developers/programs/databinding-$24.lzx
   openlaszlo/trunk/docs/src/developers/programs/databinding-$27.lzx
   openlaszlo/trunk/docs/src/developers/programs/delegates-$4.lzx
   openlaszlo/trunk/docs/src/developers/programs/input-devices-$8.lzx
   openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$10.lzx
   openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$11.lzx
   openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$12.lzx
   openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$16.lzx
   openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$18.lzx
   openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$2.lzx
   openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$5.lzx
   openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$7.lzx
   openlaszlo/trunk/docs/src/developers/programs/lzunit-$4.lzx
   openlaszlo/trunk/docs/src/developers/programs/media-resources-$9.lzx
   openlaszlo/trunk/docs/src/developers/programs/performance-tuning-$11.lzx
   openlaszlo/trunk/docs/src/developers/programs/rpc-$15.lzx
   openlaszlo/trunk/docs/src/developers/programs/rpc-$17.lzx
   openlaszlo/trunk/docs/src/developers/programs/rpc-soap-$5.lzx
   openlaszlo/trunk/docs/src/developers/programs/supportclasses.lzx
   openlaszlo/trunk/docs/src/developers/tutorials/programs/text-tutorial-$6.lzx
Log:
Change 20071126-lou-X by [EMAIL PROTECTED] on 2007-11-26 07:58:22 AST
    in /Users/lou/src/svn/openlaszlo/trunk/docs
    for http://svn.openlaszlo.org/openlaszlo/trunk/docs

Summary: All code examples now compile without errors.
         change setXXX(foo) to setAtribute('XXX', foo) in the 
developers/programs directory

Bugs Fixed:  LPP-4029
                 LPP-5057


Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Details: Many compile errors were caused by software bugs: those bugs are fixed.
                 Some errors were caused by interface changes: fixed.
    

Tests: cd docs/src ; ant clean developers developers.examples.verify



Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$10.lzx     
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$10.lzx     
2007-11-26 12:07:49 UTC (rev 7364)
@@ -51,11 +51,11 @@
                           B13.anm.doStart();
                           B14.anm.doStart()"/>
     <button text="Reset" 
-                 onclick="B11.setX(50);
-                          B12.setX(50);
-                          B13.setX(50);
-                          B14.setX(50);
-                          this.parent.P2.setDisplay(' ');"/>
+                 onclick="B11.setAttribute('x', 50);
+                          B12.setAttribute('x', 50);
+                          B13.setAttribute('x', 50);
+                          B14.setAttribute('x', 50);
+                          this.parent.P2.setAttribute('display', ' ');"/>
     <simplelayout axis="x"/>
   </view>
 </canvas>

Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$11.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$11.lzx     
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$11.lzx     
2007-11-26 12:07:49 UTC (rev 7364)
@@ -53,12 +53,12 @@
                          B18.bounce();
                          B19.bounce();"/>
     <button text="Reset"
-                onclick="B15.setX(50);
-                         B16.setX(50);
-                         B17.setX(50);
-                         B18.setX(50);
-                         B19.setX(50);
-                  this.parent.P2.setDisplay(' ');"/>
+                onclick="B15.setAttribute('x', 50);
+                         B16.setAttribute('x', 50);
+                         B17.setAttribute('x', 50);
+                         B18.setAttribute('x', 50);
+                         B19.setAttribute('x', 50);
+                  this.parent.P2.setAttribute('display', ' ');"/>
     <simplelayout axis="x"/>
   </view>
 </canvas>

Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$12.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$12.lzx     
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$12.lzx     
2007-11-26 12:07:49 UTC (rev 7364)
@@ -28,9 +28,9 @@
     <button text="Test" x="50"
                onclick="B22.anm.doStart();B23.anm.doStart()"/>
     <button text="Reset"
-               onclick="B22.setX(50);
-                        B23.setX(50);
-                        this.parent.P2.setDisplay(' ');"/>
+               onclick="B22.setAttribute('x', 50);
+                        B23.setAttribute('x', 50);
+                        this.parent.P2.setAttribute('display', ' ');"/>
     <simplelayout axis="x"/>
   </view>
 </canvas>

Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$13.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$13.lzx     
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$13.lzx     
2007-11-26 12:07:49 UTC (rev 7364)
@@ -34,9 +34,9 @@
                 onclick="B20.anm.doStart();
                          B21.anm.doStart()"/>
     <button text="Reset"
-                onclick="B20.setX(0);B20.setY(0);
-                         B21.setX(0);B21.setY(0);
-                         this.parent.P2.setDisplay(' ');"/>
+                onclick="B20.setAttribute('x', 0);B20.setAttribute('y', 0);
+                         B21.setAttribute('x', 0);B21.setAttribute('y', 0);
+                         this.parent.P2.setAttribute('display', ' ');"/>
     <simplelayout axis="x"/>
   </view>
 </canvas>

Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$7.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$7.lzx      
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$7.lzx      
2007-11-26 12:07:49 UTC (rev 7364)
@@ -51,13 +51,13 @@
                            B6.anm.doStart();
                            ">Test</button>
       <button
-                  onclick="B1.setOpacity(1);
-                           B2.setRotation(0);
-                           B3.setWidth(49);
-                           B4.setHeight(49);
-                           B5.setX(450);
-                           B6.setY(0);
-                           this.parent.P2.setDisplay(' ');
+                  onclick="B1.setAttribute('opacity', 1);
+                           B2.setAttribute('rotation', 0);
+                           B3.setAttribute('width', 49);
+                           B4.setAttribute('height', 49);
+                           B5.setAttribute('x', 450);
+                           B6.setAttribute('y', 0);
+                           this.parent.P2.setAttribute('display', ' ');
                            ">Reset</button>
       <simplelayout axis="x"/>
     </view>

Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$8.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$8.lzx      
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$8.lzx      
2007-11-26 12:07:49 UTC (rev 7364)
@@ -32,7 +32,7 @@
         <button text="Test" x="50"
                     onclick="B7.anm.doStart();B8.anm.doStart()"/>
         <button text="Reset"
-                    onclick="B7.setX(50);B8.setX(50);"/>
+                    onclick="B7.setAttribute('x', 50);B8.setAttribute('x', 
50);"/>
       <simplelayout axis="x"/>
     </view>
   </view>

Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$9.lzx      
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$9.lzx      
2007-11-26 12:07:49 UTC (rev 7364)
@@ -32,7 +32,10 @@
     <button text="Test" x="50"
                onclick="B9.anm.doStart();B10.anm.doStart()"/>
     <button text="Reset"
-               onclick="B9.setX(50);B10.setX(50);this.parent.P2.setDisplay(' 
');"/>
+               onclick="
+               B9.setAttribute('x', 50);
+               B10.setAttribute('x', 50);
+               this.parent.P2.setAttribute('display', ' ');"/>
     <simplelayout axis="x"/>
   </view>
 </canvas>

Modified: 
openlaszlo/trunk/docs/src/developers/programs/browser-integration-$19.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/browser-integration-$19.lzx   
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/browser-integration-$19.lzx   
2007-11-26 12:07:49 UTC (rev 7364)
@@ -1,6 +1,6 @@
 
 <canvas height="130" debug="true">
-  <command oninit="this.setKeys(['Control','n'])"
+  <command oninit="this.setAttribute('keys', ['Control','n'])"
            onselect="Debug.write('the [Ctrl-n] key combination was pressed');" 
/>
 </canvas>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************

Modified: openlaszlo/trunk/docs/src/developers/programs/cookies-$3.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/cookies-$3.lzx        
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/cookies-$3.lzx        
2007-11-26 12:07:49 UTC (rev 7364)
@@ -28,7 +28,7 @@
             <!-- when item is selected, save choice in cookie by calling JSP 
-->
             <handler name="onclick">
             <![CDATA[
-                dsSetCookie.setQueryString("name=mycookie&op=set&item=" + 
this.value);
+                dsSetCookie.setAttribute("querystring", 
"name=mycookie&op=set&item=" + this.value);
                 dsSetCookie.doRequest();
             ]]>
             </handler>

Modified: openlaszlo/trunk/docs/src/developers/programs/databinding-$20.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/databinding-$20.lzx   
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/databinding-$20.lzx   
2007-11-26 12:07:49 UTC (rev 7364)
@@ -5,8 +5,8 @@
   
   <view name="contacts" height="150" width="100">
     <view bgcolor="0xe0e0e0" datapath="phonebook:/contacts/contact"
-          onmouseover="setBGColor(0xc0c0c0)" onmouseout="setBGColor(0xe0e0e0)"
-          onclick="details.datapath.setPointer(this.datapath.p)">
+          onmouseover="setAttribute('bgcolor', 0xc0c0c0)" 
onmouseout="setAttribute('bgcolor', 0xe0e0e0)"
+          onclick="details.datapath.setAttribute('p', this.datapath.p)">
       <simplelayout axis="x" spacing="5"/>
       <text datapath="@firstName" resize="true"/>
       <text datapath="@lastName" resize="true"/>

Modified: openlaszlo/trunk/docs/src/developers/programs/databinding-$21.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/databinding-$21.lzx   
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/databinding-$21.lzx   
2007-11-26 12:07:49 UTC (rev 7364)
@@ -18,7 +18,7 @@
     <simplelayout spacing="5"/>
     <text bgcolor="white" fgcolor="blue" text="$once{parent.title}"/>
     <text bgcolor="0xe0e0e0" 
-          onmouseover="setBGColor(0xc0c0c0)" onmouseout="setBGColor(0xe0e0e0)">
+          onmouseover="setAttribute('bgcolor', 0xc0c0c0)" 
onmouseout="setAttribute('bgcolor', 0xe0e0e0)">
       <datapath xpath="*/name()" sortpath="@order" sortorder="ascending"/>
       <handler name="onclick">
         parent.target.datapath.addNodeFromPointer(this.datapath)

Modified: openlaszlo/trunk/docs/src/developers/programs/databinding-$23.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/databinding-$23.lzx   
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/databinding-$23.lzx   
2007-11-26 12:07:49 UTC (rev 7364)
@@ -26,7 +26,7 @@
     <handler name="onclick">
       with (details.datapath) {
         selectNext()
-        setXPath('phonebook:/contacts/contact[' + getNodeOffset() + ']')
+        setAttribute('xpath', 'phonebook:/contacts/contact[' + getNodeOffset() 
+ ']')
       }
     </handler>
   </button>

Modified: openlaszlo/trunk/docs/src/developers/programs/databinding-$24.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/databinding-$24.lzx   
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/databinding-$24.lzx   
2007-11-26 12:07:49 UTC (rev 7364)
@@ -9,8 +9,8 @@
   <simplelayout axis="x" spacing="25"/>
   <button text="Create tabs">
     <handler name="onclick">
-      gs.pane.setDatapath('tabnames:/title')
-      bs.pane.setDatapath('tabnames:/title')
+      gs.pane.setAttribute('datapath', 'tabnames:/title')
+      bs.pane.setAttribute('datapath', 'tabnames:/title')
     </handler>
   </button>
   

Modified: openlaszlo/trunk/docs/src/developers/programs/databinding-$27.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/databinding-$27.lzx   
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/databinding-$27.lzx   
2007-11-26 12:07:49 UTC (rev 7364)
@@ -18,7 +18,7 @@
   <text width="200" oninit="checkSubviews()">
     <handler
             name="onaddsubview" reference="replicationParent">
-      this.setText('number of subviews: ' + 
+      this.setAttribute("text", 'number of subviews: ' + 
                    replicationParent.subviews.length);
     </handler>
   </text>

Modified: openlaszlo/trunk/docs/src/developers/programs/delegates-$4.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/delegates-$4.lzx      
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/delegates-$4.lzx      
2007-11-26 12:07:49 UTC (rev 7364)
@@ -28,7 +28,7 @@
                 </handler>
 
                 <method name="replicationComplete">
-                    lastRepText.setText("The last view has been replicated"); 
+                    lastRepText.setAttribute("text", "The last view has been 
replicated"); 
                 </method>
             </datapath>
         </text>

Modified: openlaszlo/trunk/docs/src/developers/programs/input-devices-$8.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/input-devices-$8.lzx  
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/input-devices-$8.lzx  
2007-11-26 12:07:49 UTC (rev 7364)
@@ -1,8 +1,8 @@
 
 <canvas height="160">
   <class name="myTrackableView" bgcolor="red"
-         onmouseover="setWidth(70)" 
-         onmouseout="setWidth(60)"
+         onmouseover="setAttribute('width', 70)" 
+         onmouseout="setAttribute('width', 60)"
          onmouseup="setAttribute('bgcolor', 0xFF0000)"
          width="60" height="30">
 

Modified: 
openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$10.lzx     
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$10.lzx     
2007-11-26 12:07:49 UTC (rev 7364)
@@ -24,8 +24,8 @@
     </method>
     
     <method name="adjustFloaterPosition">
-      this.f.setX(canvas.getMouse("x")-this.x_offset);
-      this.f.setY(canvas.getMouse("y")-this.y_offset);
+      this.f.setAttribute("x", canvas.getMouse("x")-this.x_offset);
+      this.f.setAttribute("y", canvas.getMouse("y")-this.y_offset);
     </method>
     
     <method name="cancelFloater">

Modified: 
openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$11.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$11.lzx     
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$11.lzx     
2007-11-26 12:07:49 UTC (rev 7364)
@@ -6,19 +6,19 @@
     <text name="txt" width="100"/>
     <method name="showFloater" args="xpos, ypos, itemwidth, itemlabel">
       myfloater.bringToFront();
-      this.setX(xpos);
-      this.setY(ypos);
-      this.setWidth(itemwidth);
-      this.txt.setText(itemlabel);
-      this.setVisible(true)
+      this.setAttribute("x", xpos);
+      this.setAttribute("y", ypos);
+      this.setAttribute("width", itemwidth);
+      this.txt.setAttribute("text", itemlabel);
+      this.setAttribute("visible", true)
       this.gm = new LzDelegate(this, "cancelFloater", LzGlobalMouse, 
"onmouseup");
-      this.setVisible(true);
+      this.setAttribute("visible", true);
       this.dragger.apply();
     </method>
 
     <method name="cancelFloater">
       this.dragger.remove();
-      this.setVisible(false);
+      this.setAttribute("visible", false);
     </method>
   </class>
   

Modified: 
openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$12.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$12.lzx     
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$12.lzx     
2007-11-26 12:07:49 UTC (rev 7364)
@@ -19,19 +19,19 @@
     
     <method name="showFloater" args="xpos, ypos, itemwidth, dataNode">
       myfloater.bringToFront();
-      this.setX(xpos);
-      this.setY(ypos);
-      this.setWidth(itemwidth);
-      this.datapath.setPointer(dataNode);
-      this.setVisible(true)
+      this.setAttribute("x", xpos);
+      this.setAttribute("y", ypos);
+      this.setAttribute("width", itemwidth);
+      this.datapath.setAttribute("p", dataNode);
+      this.setAttribute("visible", true)
       this.gm = new LzDelegate(this, "cancelFloater", LzGlobalMouse, 
"onmouseup");
-      this.setVisible(true);
+      this.setAttribute("visible", true);
       this.dragger.apply();
     </method>
     
     <method name="cancelFloater">
       this.dragger.remove();
-      this.setVisible(false);
+      this.setAttribute("visible", false);
     </method>
   </class>
   

Modified: 
openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$16.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$16.lzx     
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$16.lzx     
2007-11-26 12:07:49 UTC (rev 7364)
@@ -1,7 +1,7 @@
 
 <canvas height="140">
   <class name="coloredRect" width="20" height="80"
-         onclick="this.setWidth(this.width+2)"/>
+         onclick="this.setAttribute('width', this.width+2)" />
 
   <view x="10" y="10" name="container">
     <simplelayout name="slayout" axis="x" spacing="10"/>

Modified: 
openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$18.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$18.lzx     
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$18.lzx     
2007-11-26 12:07:49 UTC (rev 7364)
@@ -1,7 +1,7 @@
 
 <canvas height="100">
   <class name="col" clickable="true" bgcolor="blue" 
-         width="20" height="80" onclick="this.setWidth(this.width+2)"/>
+         width="20" height="80" onclick="this.setAttribute('width', 
this.width+2)"/>
   <layout>
     <attribute name="spacing" value="10" type="number"/>
     <method name="addSubview" args="s">

Modified: openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$2.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$2.lzx      
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$2.lzx      
2007-11-26 12:07:49 UTC (rev 7364)
@@ -1,7 +1,7 @@
 
 <canvas height="140">
   <class name="coloredRect" width="20" height="80"
-         onclick="this.setWidth(this.width+2)"/>
+         onclick="this.setAttribute('width', this.width+2)"/>
     <view x="10" y="10" name="container">
       <simplelayout axis="x" spacing="10"/>
       <coloredRect bgcolor="red"/>

Modified: openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$5.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$5.lzx      
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$5.lzx      
2007-11-26 12:07:49 UTC (rev 7364)
@@ -11,13 +11,13 @@
   
   <button x="205" y="110">Increase width of container
     <handler name="onclick">
-      container.setWidth(container.width + 10);
+      container.setAttribute("width", container.width + 10);
     </handler>
   </button>
   
   <button x="10" y="110">Decrease width of container
     <handler name="onclick">
-      container.setWidth(container.width - 10);
+      container.setAttribute("width", container.width - 10);
     </handler>
   </button>
 </canvas>

Modified: openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$7.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$7.lzx      
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$7.lzx      
2007-11-26 12:07:49 UTC (rev 7364)
@@ -6,7 +6,7 @@
   <view id="floater" width="50" height="50" visible="false">
     <!-- Animate to the coordinates of a given view -->
     <method name="goTo" args="whichBox">
-      this.setVisible(true);
+      this.setAttribute("visible", true);
       this.bringToFront();
       var destX = whichBox.getAttributeRelative("x", canvas);
       var destY = whichBox.getAttributeRelative("y", canvas);

Modified: openlaszlo/trunk/docs/src/developers/programs/lzunit-$4.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/lzunit-$4.lzx 2007-11-26 
12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/lzunit-$4.lzx 2007-11-26 
12:07:49 UTC (rev 7364)
@@ -31,7 +31,7 @@
 
       <method name="tearDown">
         // Reset pointer to starting position
-        nav.setXPath(start)
+        nav.setAttribute("xpath", start)
       </method>
 
       <method name="testsettext">

Modified: openlaszlo/trunk/docs/src/developers/programs/media-resources-$9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/media-resources-$9.lzx        
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/media-resources-$9.lzx        
2007-11-26 12:07:49 UTC (rev 7364)
@@ -4,7 +4,7 @@
   <view> 
     <simplelayout axis="x" spacing="2"/> 
     <text valign="middle">Type url:</text> 
-    <edittext width="500" id="url">http:../resources/logo.gif</edittext>
+    <edittext width="500" id="url">http:resources/logo.gif</edittext>
   </view>
   <text>(also try resources/logo.swf)</text> 
   <command onselect="butt.doit();" key="['Enter']" active="true"/> 
@@ -14,7 +14,7 @@
     Make request 
     <handler name="onclick"> this.doit(); </handler> 
     <method name="doit"> <![CDATA[ 
-      status.setText("Requesting: " + url.getText()); 
+      status.setAttribute("text", "Requesting: " + url.getText()); 
       // Determine caching from checkboxes 
       var caching = 'none';
       if (ccache.getValue() & scache.getValue()) { 
@@ -24,7 +24,7 @@
       } else if (scache.getValue()) { 
           caching = 'serveronly'; 
       } 
-      me.setSource(url.getText(), caching); 
+      me.setAttribute("source", url.getText(), caching); 
     ]]></method> 
   </button> 
   <button onclick="me.stop()"> Stop </button> 
@@ -33,13 +33,13 @@
   <text multiline="true" width="200" height="100" id="status"/> 
   <view id="me"> 
     <handler name="onload" args="e"> 
-      status.setText('loaded: ' + e); 
+      status.setAttribute("text", 'loaded: ' + e); 
     </handler> 
     <handler name="onerror" args="e"> 
-      status.setText('error: ' + e); 
+      status.setAttribute("text", 'error: ' + e); 
     </handler> 
     <handler name="ontimeout" args="e"> 
-      status.setText('timeout: ' + e); 
+      status.setAttribute("text", 'timeout: ' + e); 
     </handler> 
   </view> 
 </canvas>

Modified: 
openlaszlo/trunk/docs/src/developers/programs/performance-tuning-$11.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/performance-tuning-$11.lzx    
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/performance-tuning-$11.lzx    
2007-11-26 12:07:49 UTC (rev 7364)
@@ -22,9 +22,9 @@
   <method name="toggle" args="list">
     var xpath = list.datapath.xpath;
     if (xpath == "letters:/") {
-      list.setDatapath("numbers:/");
+      list.setAttribute("datapath", "numbers:/");
     } else {
-      list.setDatapath("letters:/");
+      list.setAttribute("datapath", "letters:/");
     }
   </method>
 

Modified: openlaszlo/trunk/docs/src/developers/programs/rpc-$15.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/rpc-$15.lzx   2007-11-26 
12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/rpc-$15.lzx   2007-11-26 
12:07:49 UTC (rev 7364)
@@ -10,7 +10,7 @@
     <method name="v2e" args="v">
         Debug.write('setting', v, 'to mydataset');
         var de = LzDataElement.valueToElement(v);
-        myDataset.setChildNodes( de.childNodes )
+        myDataset.setAttribute("childNodes", de.childNodes )
         Debug.write(myDataset.serialize());
     </method>
 

Modified: openlaszlo/trunk/docs/src/developers/programs/rpc-$17.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/rpc-$17.lzx   2007-11-26 
12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/rpc-$17.lzx   2007-11-26 
12:07:49 UTC (rev 7364)
@@ -40,16 +40,16 @@
 
             <method name="gotData">
                 this.setAttribute('clickable', false);
-                this.t.setText(this.text);
+                this.t.setAttribute("text", this.text);
             </method>
 
             <handler name="onclick">
                 if (text == "Region-A") {
-                    this.regions.setDatapath("element/i[1-6]");
+                    this.regions.setAttribute("datapath", "element/i[1-6]");
                 } else if (text == "Region-B") {
-                    this.regions.setDatapath("element/i[7-12]");
+                    this.regions.setAttribute("datapath", "element/i[7-12]");
                 } else {
-                    this.regions.setDatapath("element/i[12-]");
+                    this.regions.setsetAttribute("datapath", "element/i[12-]");
                 }
                 var myDel = new LzDelegate(this, "gotData");
                 myDel.dataobject = this.datapath.p;

Modified: openlaszlo/trunk/docs/src/developers/programs/rpc-soap-$5.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/rpc-soap-$5.lzx       
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/rpc-soap-$5.lzx       
2007-11-26 12:07:49 UTC (rev 7364)
@@ -36,7 +36,7 @@
 
         <handler name="ondata" args="value">
             Debug.write(value);
-            result.setText(value);
+            result.setAttribute("text", value);
         </handler>
 
         <remotecall funcname="Add">

Modified: openlaszlo/trunk/docs/src/developers/programs/supportclasses.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/supportclasses.lzx    
2007-11-26 12:06:25 UTC (rev 7363)
+++ openlaszlo/trunk/docs/src/developers/programs/supportclasses.lzx    
2007-11-26 12:07:49 UTC (rev 7364)
@@ -1,5 +1,5 @@
 <library>
-    <class name="ruler_element" 
oninit="this.digit_display.setText(this.digit)" >
+    <class name="ruler_element" 
oninit="this.digit_display.setAttribute('text', this.digit)" >
         <attribute name="digit" value="100" type="string" />
         
         <view  bgcolor="0x1D2B64"  width="100%" height="1" />
@@ -43,8 +43,8 @@
         <!-- view bgcolor="red" x="-6" y="-6" stretches="both" /--> <!-- 
resource="box3.png" -->
         <text name="title" fgcolor="white" align="center" valign="middle" 
pixellock="true" >BBBB</text>
         <method name="setup" >
-            this.title.setText(this.id)
-            this.title.setX(Math.floor((this.width - 
this.title.getTextWidth())/2.0));
+            this.title.setAttribute("text", this.id)
+            this.title.setAttribute("x", Math.floor((this.width - 
this.title.getTextWidth())/2.0));
         </method>
     </class>
     
@@ -56,8 +56,8 @@
         <attribute name="label" type="string" />
         <text name="title" align="center" valign="middle" pixellock="true" 
>ROTATION</text>
         <handler name="oninit" >
-            this.title.setText(this.label)
-            this.title.setX(Math.floor((this.width - 
this.title.getTextWidth())/2.0));
+            this.title.setAttribute("text", this.label)
+            this.title.setAttribute("x", Math.floor((this.width - 
this.title.getTextWidth())/2.0));
         </handler>
     </class>
  
@@ -69,7 +69,7 @@
     </class>
 
   
-    <class name="header" height="20" width="100%" bgcolor="0x1D2B64" 
oninit="this.title.setText(this.label);" >
+    <class name="header" height="20" width="100%" bgcolor="0x1D2B64" 
oninit="this.title.setAttribute('text', this.label);" >
         <attribute name="label" type="string"/>
         <text name="title" x="5" y="3" width="100%" fgcolor="white"> 
Header</text>
     </class>
@@ -82,11 +82,11 @@
         </view>
         <simplelayout axis="x"/>
         <method name="setdisplay" args="t">
-            this.display.tx.setText(t)
+            this.display.tx.setAttribute("text", t)
         </method>
     </class>
 
-    <class name="descriptor" height="36" width="100%" 
oninit="this.title.setText(this.label); 
this.descript.setText(this.description); " >
+    <class name="descriptor" height="36" width="100%" 
oninit="this.title.setAttribute('text', this.label); 
this.descript.setAttribute('text', this.description); " >
         <attribute name="label" type="string"/>
         <attribute name="description" type="string"/>
         <view width="100%" height="100%" bgcolor="0xFFFFFF" opacity="0.3"/>

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/text-tutorial-$6.lzx
===================================================================
--- 
openlaszlo/trunk/docs/src/developers/tutorials/programs/text-tutorial-$6.lzx    
    2007-11-26 12:06:25 UTC (rev 7363)
+++ 
openlaszlo/trunk/docs/src/developers/tutorials/programs/text-tutorial-$6.lzx    
    2007-11-26 12:07:49 UTC (rev 7364)
@@ -1,18 +1,15 @@
-
 <canvas >
-   <include href="extensions/html.lzx"/>
-   <class name="browser" extends="window" resizable="true" bgcolor="silver">
-      <edittext name="txt" text="http://openlaszlo.org/"; width="300"/>
-      <button x="310" onclick="parent.htmlview.setSrc(parent.txt.getText()); 
parent.htmlview.setAttribute('visible', true)">
-      Load
-      </button>
+  <include href="extensions/html.lzx"/>
+  <class name="browser" extends="window" resizable="true" bgcolor="silver">
+    <edittext name="txt" text="http://openlaszlo.org/"; width="300"/>
+    <button x="310" onclick="parent.htmlview.setSrc(parent.txt.getText()); 
parent.htmlview.setAttribute('visible', true)">Load</button>
       <html name="htmlview"
-            width="${parent.width - 19}" 
-            height="${parent.height - 74}"
-            x="${parent.x + 7}" 
-            y="${parent.y + 53}"/>
-   </class>
-   <browser width="500" height="500" x="10" y="10"/>
+        widthoffset="-19" 
+        heightoffset="74"
+        xoffset="7" 
+        yoffset="53"/>
+  </class>
+  <browser width="500" height="500" x="10" y="10"/>
 </canvas>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
 * Copyright 2007 Laszlo Systems, Inc.  All Rights Reserved.                   *


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to