Author: lou
Date: 2007-11-14 10:23:14 -0800 (Wed, 14 Nov 2007)
New Revision: 7259

Removed:
   openlaszlo/trunk/docs/src/developers/programs/persistent_connection-$1.lzx
   openlaszlo/trunk/docs/src/developers/programs/persistent_connection-$3.lzx
   openlaszlo/trunk/docs/src/developers/programs/persistent_connection-$4.lzx
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-$15.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/art_assets-$8.lzx
   openlaszlo/trunk/docs/src/developers/programs/databinding-$11.lzx
   openlaszlo/trunk/docs/src/developers/programs/databinding-$15.lzx
   openlaszlo/trunk/docs/src/developers/programs/databinding-$16.lzx
   openlaszlo/trunk/docs/src/developers/programs/databinding-$2.lzx
   openlaszlo/trunk/docs/src/developers/programs/input-devices-$1.lzx
   openlaszlo/trunk/docs/src/developers/programs/input-devices-$2.lzx
   openlaszlo/trunk/docs/src/developers/programs/media-resources-$3.lzx
   openlaszlo/trunk/docs/src/developers/programs/media-resources-$5.lzx
   openlaszlo/trunk/docs/src/developers/programs/media-resources-$8.lzx
   
openlaszlo/trunk/docs/src/developers/programs/methods-events-attributes-$14.lzx
   openlaszlo/trunk/docs/src/developers/programs/text-$12.lzx
   openlaszlo/trunk/docs/src/developers/programs/text-tutorial-$14.lzx
Log:
Change 20071113-lou-U by [EMAIL PROTECTED] on 2007-11-13 12:56:27 AST
    in /Users/lou/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: change setXXX(foo) to setAtribute('XXX', foo) in the 
developers/programs directory

Bugs Fixed: LPP-5057

Technical Reviewer: J. Crowley
QA Reviewer: (pending)
Doc Reviewer: (pending)

Tests: Run all sample code and make sure it still works.



Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$10.lzx     
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$10.lzx     
2007-11-14 18:23:14 UTC (rev 7259)
@@ -45,12 +45,12 @@
   
   <!-- The TEST and RESET buttons -->
   <view x="50" y="260">
-    <richbutton label="Test" x="50" cap="rightsheer"
+    <button text="Test" x="50"
                  onclick="B11.anm.doStart();
                           B12.anm.doStart();
                           B13.anm.doStart();
                           B14.anm.doStart()"/>
-    <richbutton label="Reset" cap="leftsheer"
+    <button text="Reset" 
                  onclick="B11.setX(50);
                           B12.setX(50);
                           B13.setX(50);

Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$11.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$11.lzx     
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$11.lzx     
2007-11-14 18:23:14 UTC (rev 7259)
@@ -46,13 +46,13 @@
   
   <!-- The TEST and RESET buttons -->
   <view x="50" y="350">
-    <richbutton label="Test" x="50" cap="rightsheer"
+    <button text="Test" x="50"
                 onclick="B15.ax1.doStart(); B15.ax2.doStart();
                          B16.ax1.doStart(); B16.ax2.doStart();
                          B17.bounce();  
                          B18.bounce();
                          B19.bounce();"/>
-    <richbutton label="Reset" cap="leftsheer"
+    <button text="Reset"
                 onclick="B15.setX(50);
                          B16.setX(50);
                          B17.setX(50);

Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$12.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$12.lzx     
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$12.lzx     
2007-11-14 18:23:14 UTC (rev 7259)
@@ -25,9 +25,9 @@
 
   <!-- The TEST and RESET buttons -->
   <view x="50" y="250">
-    <richbutton label="Test" x="50" cap="rightsheer"
+    <button text="Test" x="50"
                onclick="B22.anm.doStart();B23.anm.doStart()"/>
-    <richbutton label="Reset" cap="leftsheer"
+    <button text="Reset"
                onclick="B22.setX(50);
                         B23.setX(50);
                         this.parent.P2.setDisplay(' ');"/>

Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$13.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$13.lzx     
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$13.lzx     
2007-11-14 18:23:14 UTC (rev 7259)
@@ -30,10 +30,10 @@
 
   <!-- The TEST and RESET buttons -->
   <view x="50" y="350">
-    <richbutton label="Test" x="50" cap="rightsheer"
+    <button text="Test" x="50"
                 onclick="B20.anm.doStart();
                          B21.anm.doStart()"/>
-    <richbutton label="Reset" cap="leftsheer"
+    <button text="Reset"
                 onclick="B20.setX(0);B20.setY(0);
                          B21.setX(0);B21.setY(0);
                          this.parent.P2.setDisplay(' ');"/>

Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$15.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$15.lzx     
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$15.lzx     
2007-11-14 18:23:14 UTC (rev 7259)
@@ -26,7 +26,7 @@
     
     <!-- The TEST button -->
     <view x="50" y="150">
-      <richbutton label="Test" x="50" cap="both"
+      <button text="Test" x="50"
                   onclick="V01.lyt.anm.doStart()"/>
     </view>
   </view>

Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$8.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$8.lzx      
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$8.lzx      
2007-11-14 18:23:14 UTC (rev 7259)
@@ -29,9 +29,9 @@
       
       <!-- The TEST and RESET buttons -->
       <view x="50" y="150">
-        <richbutton label="Test" x="50" cap="rightsheer"
+        <button text="Test" x="50"
                     onclick="B7.anm.doStart();B8.anm.doStart()"/>
-        <richbutton label="Reset" cap="leftsheer"
+        <button text="Reset"
                     onclick="B7.setX(50);B8.setX(50);"/>
       <simplelayout axis="x"/>
     </view>

Modified: openlaszlo/trunk/docs/src/developers/programs/animation-$9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/animation-$9.lzx      
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/animation-$9.lzx      
2007-11-14 18:23:14 UTC (rev 7259)
@@ -29,9 +29,9 @@
   
   <!-- The TEST and RESET buttons -->
   <view x="50" y="150">
-    <richbutton label="Test" x="50" cap="rightsheer"
+    <button text="Test" x="50"
                onclick="B9.anm.doStart();B10.anm.doStart()"/>
-    <richbutton label="Reset" cap="leftsheer"
+    <button text="Reset"
                onclick="B9.setX(50);B10.setX(50);this.parent.P2.setDisplay(' 
');"/>
     <simplelayout axis="x"/>
   </view>

Modified: openlaszlo/trunk/docs/src/developers/programs/art_assets-$8.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/art_assets-$8.lzx     
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/art_assets-$8.lzx     
2007-11-14 18:23:14 UTC (rev 7259)
@@ -6,7 +6,7 @@
   </resource>
   
   <view x="150" y="50" resource="face"
-         onclick="this.setResourceNumber(2);"/>
+         onclick="this.setAttribute('frame', 2);"/>
 </canvas>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
 * Copyright 2007 Laszlo Systems, Inc.  All Rights Reserved.                   *

Modified: openlaszlo/trunk/docs/src/developers/programs/databinding-$11.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/databinding-$11.lzx   
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/databinding-$11.lzx   
2007-11-14 18:23:14 UTC (rev 7259)
@@ -1,4 +1,3 @@
-
 <canvas height="150">
   <dataset name="colors">
     <value>red</value>
@@ -13,8 +12,8 @@
   <view name="swatch" width="200" height="30" 
   datapath="colors:/value[1]/text()">
     <method name="applyData" args="v">
-      setBGColor(eval(v))
-      display.setText(v)
+      setAttribute('bgcolor', eval(v))
+      display.setAttribute('text', v)
     </method>
   </view>
   <text name="display" resize="true"/>
@@ -23,7 +22,7 @@
     <attribute name="ind" value="$once{1}"/>
     <handler name="onclick">
       if (++ind == 7) ind = 1
-      swatch.setDatapath('colors:/value[' + ind + ']/text()')
+      swatch.setAttribute('datapath', 'colors:/value[' + ind + ']/text()')
     </handler>
   </button>
 </canvas>

Modified: openlaszlo/trunk/docs/src/developers/programs/databinding-$15.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/databinding-$15.lzx   
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/databinding-$15.lzx   
2007-11-14 18:23:14 UTC (rev 7259)
@@ -26,7 +26,7 @@
         <method name="compute">
         top.addNode(parent.input.getText())
         var end = top.xpathQuery('*/last()')
-        numptr.setXPath('numbers:/*[' + end + ']')
+        numptr.setAttribute('xpath', 'numbers:/*[' + end + ']')
         parent.input.clearText()
       </method>
     </button>
@@ -43,7 +43,7 @@
     <text id="result" fgcolor="blue" fontstyle="bold">
       <method name="update" args="v">
         parent.sum += Number(v)
-        this.setText(parent.sum / top.p.childNodes.length)
+        this.setAttribute('text', parent.sum / top.p.childNodes.length)
       </method>
     </text>
   </view>

Modified: openlaszlo/trunk/docs/src/developers/programs/databinding-$16.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/databinding-$16.lzx   
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/databinding-$16.lzx   
2007-11-14 18:23:14 UTC (rev 7259)
@@ -7,13 +7,13 @@
   
   <datapointer xpath="stack:/root/*[1]/name()" rerunxpath="true">
     <handler name="ondata" args="d">
-      good_result.setText(d)
+      good_result.setAttribute('text', d)
     </handler>
   </datapointer>
 
   <datapointer xpath="stack:/root/*[1]/name()">
     <handler name="ondata" args="d">
-      bad_result.setText(d)
+      bad_result.setAttribute('text', d)
     </handler>
   </datapointer>
   
@@ -30,7 +30,7 @@
     </edittext>
     <button name="bAdd" text="Push">
       <handler name="onclick" >
-        var n = parent.input.getText() 
+        var n = parent.input.getAttribute('text') 
         if (!top.p['childNodes'])
           top.addNode(n)
         else 

Modified: openlaszlo/trunk/docs/src/developers/programs/databinding-$2.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/databinding-$2.lzx    
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/databinding-$2.lzx    
2007-11-14 18:23:14 UTC (rev 7259)
@@ -2,7 +2,7 @@
 <canvas height="400" >
   <dataset name="menu" src="http://www.w3schools.com/xml/simple.xml"; 
request="true"/>
   <simplelayout axis="y"/>
-  <button onclick="t.setText(menu.serialize())">Show XML data </button>
+  <button onclick="t.setAttribute('text', menu.serialize())">Show XML data 
</button>
   <inputtext multiline="true" width="${canvas.width}" bgcolor="0xa0a0a0" 
id="t" height="300"/>
 </canvas>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************

Modified: openlaszlo/trunk/docs/src/developers/programs/input-devices-$1.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/input-devices-$1.lzx  
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/input-devices-$1.lzx  
2007-11-14 18:23:14 UTC (rev 7259)
@@ -1,11 +1,11 @@
 
 <canvas height="40">
   <view bgcolor="red"
-        onmouseover="txt.setText('onmouseover')"
-        onmouseout="txt.setText('onmouseout')"
-        onmousedown="txt.setText('onmousedown')"
-        onmouseup="txt.setText('onmouseup')"
-        onclick="txt.setText('onmouseup, onclick')"
+        onmouseover="txt.setAttribute('text', 'onmouseover')"
+        onmouseout="txt.setAttribute('text', 'onmouseout')"
+        onmousedown="txt.setAttribute('text', 'onmousedown')"
+        onmouseup="txt.setAttribute('text', 'onmouseup')"
+        onclick="txt.setAttribute('text', 'onmouseup, onclick')"
         x="10" y="10" width="20" height="20"/>
 
   <text id="txt"

Modified: openlaszlo/trunk/docs/src/developers/programs/input-devices-$2.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/input-devices-$2.lzx  
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/input-devices-$2.lzx  
2007-11-14 18:23:14 UTC (rev 7259)
@@ -4,16 +4,16 @@
          x="10" y="10"
          width="20" height="20">
     <handler name="onmousedown">
-      this.setWidth(30);
-      this.setheight(30);
-      this.setX(5);
-      this.setY(5);
+      this.setAttribute('width', 30);
+      this.setAttribute('height', 30);
+      this.setAttribute('x', 5);
+      this.setAttribute('y', 5);
     </handler>
     <handler name="onmouseup">
-      this.setWidth(20);
-      this.setheight(20);
-      this.setX(10);
-      this.setY(10);
+      this.setAttribute('width', 20);
+      this.setAttribute('height', 20);
+      this.setAttribute('x', 10);
+      this.setAttribute('y', 10);
     </handler>
   </view>
 </canvas>

Modified: openlaszlo/trunk/docs/src/developers/programs/media-resources-$3.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/media-resources-$3.lzx        
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/media-resources-$3.lzx        
2007-11-14 18:23:14 UTC (rev 7259)
@@ -12,7 +12,7 @@
       <radiobutton selected="true">1</radiobutton>
       <radiobutton>2</radiobutton>
       <handler name="onvalue" args="v">
-        myview.setResourceNumber(Number(v));
+        myview.setAttribute('frame', Number(v));
       </handler>
     </radiogroup>
   </view>

Modified: openlaszlo/trunk/docs/src/developers/programs/media-resources-$5.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/media-resources-$5.lzx        
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/media-resources-$5.lzx        
2007-11-14 18:23:14 UTC (rev 7259)
@@ -12,10 +12,10 @@
 
   <!-- attach the resource to a view with mouse events -->
   <view resource="mybutton_rsrc" 
-        onmouseover="setResourceNumber(2)"
-        onmouseout="setResourceNumber(1)"
-        onmousedown="setResourceNumber(3)"
-        onmouseup="setResourceNumber(2)"/>
+        onmouseover="setAttribute('frame', 2)"
+        onmouseout="setAttribute('frame', 1)"
+        onmousedown="setAttribute('frame', 3)"
+        onmouseup="setAttribute('frame', 2)"/>
 
 </canvas>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************

Modified: openlaszlo/trunk/docs/src/developers/programs/media-resources-$8.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/media-resources-$8.lzx        
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/media-resources-$8.lzx        
2007-11-14 18:23:14 UTC (rev 7259)
@@ -1,6 +1,6 @@
 
 <canvas height="180">
-  <view oninit="this.setSource('http:resources/logo.gif')"/>
+  <view oninit="this.setAttribute('source', 'http:resources/logo.gif')"/>
 </canvas>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
 * Copyright 2007 Laszlo Systems, Inc.  All Rights Reserved.                   *

Modified: 
openlaszlo/trunk/docs/src/developers/programs/methods-events-attributes-$14.lzx
===================================================================
--- 
openlaszlo/trunk/docs/src/developers/programs/methods-events-attributes-$14.lzx 
    2007-11-14 18:01:42 UTC (rev 7258)
+++ 
openlaszlo/trunk/docs/src/developers/programs/methods-events-attributes-$14.lzx 
    2007-11-14 18:23:14 UTC (rev 7259)
@@ -1,7 +1,7 @@
 <canvas height="20">
   <view>
-    <attribute name="width" type="number" value="20"/>
-    <attribute name="height" type="number" value="20"/>
+    <attribute name="width" value="20"/>
+    <attribute name="height" value="20"/>
     <attribute name="bgcolor" type="color" value="red"/>
   </view>
 </canvas>

Deleted: 
openlaszlo/trunk/docs/src/developers/programs/persistent_connection-$1.lzx

Deleted: 
openlaszlo/trunk/docs/src/developers/programs/persistent_connection-$3.lzx

Deleted: 
openlaszlo/trunk/docs/src/developers/programs/persistent_connection-$4.lzx

Modified: openlaszlo/trunk/docs/src/developers/programs/text-$12.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/text-$12.lzx  2007-11-14 
18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/text-$12.lzx  2007-11-14 
18:23:14 UTC (rev 7259)
@@ -9,10 +9,10 @@
   <text id="t2" bgcolor="#ccffcc" resize="true">
     Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
   </text>
-  <button text="setText(...)">
+  <button text="setAttribute('text', ...)">
     <handler name="onclick">
-      t1.setText('resize='+t1.resize);
-      t2.setText('resize='+t2.resize);
+      t1.setAttribute('text', 'resize='+t1.resize);
+      t2.setAttribute('text', 'resize='+t2.resize);
     </handler>
   </button>
 </canvas>

Modified: openlaszlo/trunk/docs/src/developers/programs/text-tutorial-$14.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/text-tutorial-$14.lzx 
2007-11-14 18:01:42 UTC (rev 7258)
+++ openlaszlo/trunk/docs/src/developers/programs/text-tutorial-$14.lzx 
2007-11-14 18:23:14 UTC (rev 7259)
@@ -7,7 +7,7 @@
    </button>
 
    <button x="100" y="15"
-      onclick="canvas.theField.setText('Hello, Laszlo!');">
+      onclick="canvas.theField.setAttribute('text', 'Hello, Laszlo!');">
          Set Text
    </button>
 
@@ -20,7 +20,7 @@
       function addText() {
       var origText = canvas.theField.getText();
       var newText = origText + " And on.";
-           canvas.theField.setText(newText);
+           canvas.theField.setAttribute('text', newText);
       }
    </script>
 


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

Reply via email to