[Laszlo-checkins] r10216 - in openlaszlo/trunk/docs/src/developers: programs tutorials/programs
jcrowley@openlaszlo.org
jcrowley at openlaszlo.org
Thu Jul 3 17:52:43 PDT 2008
Author: jcrowley
Date: 2008-07-03 17:52:27 -0700 (Thu, 03 Jul 2008)
New Revision: 10216
Modified:
openlaszlo/trunk/docs/src/developers/programs/browser-integration-$8.lzx
openlaszlo/trunk/docs/src/developers/programs/browser-integration-$9.lzx
openlaszlo/trunk/docs/src/developers/programs/class-inheritance-$17.lzx
openlaszlo/trunk/docs/src/developers/programs/data-accessing-lzdataelement.lzx
openlaszlo/trunk/docs/src/developers/programs/delegates-$3.lzx
openlaszlo/trunk/docs/src/developers/programs/input-devices-$10.lzx
openlaszlo/trunk/docs/src/developers/programs/input-devices-$3.lzx
openlaszlo/trunk/docs/src/developers/programs/input-devices-$4.lzx
openlaszlo/trunk/docs/src/developers/programs/input-devices-$7.lzx
openlaszlo/trunk/docs/src/developers/programs/introductory-classes-$17.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/testdriven-10.lzx
openlaszlo/trunk/docs/src/developers/programs/testdriven-8.lzx
openlaszlo/trunk/docs/src/developers/programs/testdriven-9.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$10.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$11.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$3.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$4.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$5.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$6.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$7.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$8.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$9.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/window-tutorial-$11.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/window-tutorial-$8.lzx
Log:
Change 20080703-laszlo-0 by laszlo at T43-L3XEXMW on 2008-07-03 18:46:17 EDT
in /home/laszlo/src/svn/openlaszlo/trunk-liquid
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: SWF8: drawview-examples don't work in RingDing, Update doc examples for lz.
New Features:
Bugs Fixed: LPP-6602 - SWF8: drawview-examples don't work in RingDing
LPP-6585 - Update doc examples for lz.
Technical Reviewer: max
QA Reviewer: promanik
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details: Ran convert_required.pl script on the example files
in the docs source. Went through the affected files
cleaning up any additional warnings or errors or issues.
Manually fixed bugs with the drawview examples, where
oninit needed to be changed to oncontext.
Tests: Run the affected files listed below with debug=true and
note that there are no errors and that they work as expected.
testdriven-8.lzx still has issues (and I'm filing a bug on
them right now) but I'm skipping over getting it to work
for now since I want to get the rest of these changes in
quickly.
Modified: openlaszlo/trunk/docs/src/developers/programs/browser-integration-$8.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/browser-integration-$8.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/browser-integration-$8.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -1,8 +1,8 @@
<canvas height="27" >
- <button onclick="LzBrowser.loadURL('http://www.laszlosystems.com','_blank');" text="Click Me!"/>
+ <button onclick="lz.Browser.loadURL('http://www.laszlosystems.com','_blank');" text="Click Me!"/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/browser-integration-$9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/browser-integration-$9.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/browser-integration-$9.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -1,10 +1,10 @@
<canvas height="56" >
<simplelayout/>
- <button onclick="LzBrowser.loadURL('http://www.openlaszlo.org','newOpenLaszloWindow');" text="OpenLaszlo Homepage"/>
- <button onclick="LzBrowser.loadURL('http://www.mylaszlo.com','newOpenLaszloWindow');" text="myLaszlo.com"/>
+ <button onclick="lz.Browser.loadURL('http://www.openlaszlo.org','newOpenLaszloWindow');" text="OpenLaszlo Homepage"/>
+ <button onclick="lz.Browser.loadURL('http://www.mylaszlo.com','newOpenLaszloWindow');" text="myLaszlo.com"/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/class-inheritance-$17.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/class-inheritance-$17.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/class-inheritance-$17.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -6,10 +6,10 @@
<view name="redbox" bgcolor="red" width="100" height="100"/>
- <!-- Create new mybox with cyan bgcolor and place it in canvas.redbox. -->
+ <!-- Create new lz.mybox with cyan bgcolor and place it in canvas.redbox. -->
<button x="110" text="add cyan"
onclick="if (canvas.redbox['cyan'] == null)
- new mybox(canvas.redbox, { name: 'cyan', bgcolor: 0x00ffff })"/>
+ new lz.mybox(canvas.redbox, { name: 'cyan', bgcolor: 0x00ffff })"/>
<!-- Remove cyan view from redbox. -->
<button x="110" y="30" text="remove cyan"
@@ -17,6 +17,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/data-accessing-lzdataelement.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/data-accessing-lzdataelement.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/data-accessing-lzdataelement.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -19,7 +19,7 @@
<button>Get LzDataElement via datapointer
<handler name="onclick">
- var dp = new LzDatapointer();
+ var dp = new lz.datapointer();
dp.setAttribute("xpath","ds:/addressbook/contacts");
Debug.write(dp.p);
</handler>
@@ -42,6 +42,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/delegates-$3.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/delegates-$3.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/delegates-$3.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -9,14 +9,14 @@
if( typeof this.del == "undefined" ) {
this.del = new LzDelegate( this, "updateTimer" );
- LzTimer.addTimer( this.del, 1000 );
+ lz.Timer.addTimer( this.del, 1000 );
} else {
- LzTimer.resetTimer( this.del, 1000 );
+ lz.Timer.resetTimer( this.del, 1000 );
}
</method>
</text>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/input-devices-$10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/input-devices-$10.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/input-devices-$10.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -9,7 +9,7 @@
<view width="100" height="100" bgcolor="0x333399"
focusable="true"
- oninit="LzFocus.setFocus(this)">
+ oninit="lz.Focus.setFocus(this)">
<handler name="oninit">
this.keyCodes = new Array()
@@ -32,6 +32,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/input-devices-$3.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/input-devices-$3.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/input-devices-$3.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -3,14 +3,14 @@
<resource name="waitcursor" src="resources/lzwaitcursor_rsc.swf"/>
<button onclick="setCursor()" text="Click me to change the cursor for 1/2 second">
<method name="setCursor">
- LzCursor.setCursorGlobal('waitcursor');
- // call LzCursor.restoreCursor() after 1/2 second
- var del= new LzDelegate(LzCursor, 'restoreCursor');
- LzTimer.addTimer(del, 500);
+ lz.Cursor.setCursorGlobal('waitcursor');
+ // call lz.Cursor.restoreCursor() after 1/2 second
+ var del= new LzDelegate(lz.Cursor, 'restoreCursor');
+ lz.Timer.addTimer(del, 500);
</method>
</button>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/input-devices-$4.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/input-devices-$4.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/input-devices-$4.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -2,24 +2,24 @@
<canvas>
<view width="100" height="100" bgcolor="green">
<handler name="onclick">
- LzCursor.showHandCursor(true);
+ lz.Cursor.showHandCursor(true);
</handler>
</view>
<view x="110" width="100" height="100" bgcolor="yellow">
<handler name="onmouseover">
- LzCursor.showHandCursor(true);
+ lz.Cursor.showHandCursor(true);
</handler>
<handler name="onmouseout">
- LzCursor.showHandCursor(false);
+ lz.Cursor.showHandCursor(false);
</handler>
</view>
<view x="220" width="100" height="100" bgcolor="red">
<handler name="onclick">
- LzCursor.showHandCursor(false);
+ lz.Cursor.showHandCursor(false);
</handler>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/input-devices-$7.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/input-devices-$7.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/input-devices-$7.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -4,19 +4,19 @@
<view width="300" height="300" bgcolor="red" clickable="true" >
<attribute name="moustracker_del" value="$once{ new LzDelegate( this, 'trackmouse' )}" />
<handler name="onmousedown" >
- moustracker_del.register(LzIdle,'onidle');
+ moustracker_del.register(lz.Idle,'onidle');
</handler>
<handler name="onmouseup" >
moustracker_del.unregisterAll();
</handler>
- <method name="trackmouse" >
+ <method name="trackmouse" args="v">
Debug.write("mousex,mousey =", this.getMouse('x'),this.getMouse('y'));
</method>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/introductory-classes-$17.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/introductory-classes-$17.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/introductory-classes-$17.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -1,6 +1,6 @@
<canvas height="75">
<script>
- var foo = new LzView(canvas, {width: 50, height: 50,
+ var foo = new lz.view(canvas, {width: 50, height: 50,
x: 150, y: 0,
bgcolor: 0,
name: "myview"});
Modified: openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$10.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$10.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -5,7 +5,7 @@
<attribute name="text" type="text"/>
<text name="txt" text="${parent.text}" resize="true"/>
<handler name="onmousedown">
- this.f = new LzView(canvas, {width: this.width,
+ this.f = new lz.view(canvas, {width: this.width,
height: this.height,
bgcolor: this.bgcolor,
x: this.getAttributeRelative("x", canvas),
@@ -19,16 +19,16 @@
</handler>
<method name="startDraggingFloater">
- this.d = new LzDelegate(this, "adjustFloaterPosition", LzIdle, "onidle");
- this.gm = new LzDelegate(this, "cancelFloater", LzGlobalMouse, "onmouseup");
+ this.d = new LzDelegate(this, "adjustFloaterPosition", lz.Idle, "onidle");
+ this.gm = new LzDelegate(this, "cancelFloater", lz.GlobalMouse, "onmouseup");
</method>
- <method name="adjustFloaterPosition">
+ <method name="adjustFloaterPosition" args="v">
this.f.setAttribute("x", canvas.getMouse("x")-this.x_offset);
this.f.setAttribute("y", canvas.getMouse("y")-this.y_offset);
</method>
- <method name="cancelFloater">
+ <method name="cancelFloater" args="v">
this.gm.unregisterAll();
this.d.unregisterAll();
this.f.destroy();
@@ -57,6 +57,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$11.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$11.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$11.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -11,12 +11,12 @@
this.setAttribute("width", itemwidth);
this.txt.setAttribute("text", itemlabel);
this.setAttribute("visible", true)
- this.gm = new LzDelegate(this, "cancelFloater", LzGlobalMouse, "onmouseup");
+ this.gm = new LzDelegate(this, "cancelFloater", lz.GlobalMouse, "onmouseup");
this.setAttribute("visible", true);
this.dragger.apply();
</method>
- <method name="cancelFloater">
+ <method name="cancelFloater" args="v">
this.dragger.remove();
this.setAttribute("visible", false);
</method>
@@ -58,6 +58,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$12.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$12.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$12.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -24,12 +24,12 @@
this.setAttribute("width", itemwidth);
this.datapath.setAttribute("p", dataNode);
this.setAttribute("visible", true)
- this.gm = new LzDelegate(this, "cancelFloater", LzGlobalMouse, "onmouseup");
+ this.gm = new LzDelegate(this, "cancelFloater", lz.GlobalMouse, "onmouseup");
this.setAttribute("visible", true);
this.dragger.apply();
</method>
- <method name="cancelFloater">
+ <method name="cancelFloater" args="v">
this.dragger.remove();
this.setAttribute("visible", false);
</method>
@@ -73,6 +73,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/testdriven-10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/testdriven-10.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/testdriven-10.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -11,7 +11,7 @@
<handler name="onclick">
if (goButton.go==true) {
if (goButton.counter<Number.MAX_VALUE) {
- foo = new LzDelegate(this, "count", LzIdle, "onidle");
+ foo = new LzDelegate(this, "count", lz.Idle, "onidle");
this.setAttribute('text', 'Stop');
this.setAttribute('go', false);
}
@@ -24,7 +24,7 @@
}
</handler>
-<method name="count">
+<method name="count" args="v">
Debug.write(counter);
counter=counter+1;
</method>
@@ -44,4 +44,4 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
-* X_LZ_COPYRIGHT_END ****************************************************** -->
\ No newline at end of file
+* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/testdriven-8.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/testdriven-8.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/testdriven-8.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -3,11 +3,15 @@
<include href="lzunit"/>
<simplelayout axis="y" spacing="10"/>
- <method name="wake" event="oninit">
- foo = new LzDelegate(this, "sleep", LzIdle, "onidle");
+ <handler name="oninit">
+ this.wake();
+ </handler>
+
+ <method name="wake">
+ foo = new LzDelegate(this, "sleep", lz.Idle, "onidle");
</method>
- <method name="sleep">
+ <method name="sleep" args="v">
Debug.write("Sleeping");
</method>
@@ -20,4 +24,4 @@
</TestSuite>
</canvas>
-<!-- Copyright 2001-2007 Laszlo Systems, Inc. -->
\ No newline at end of file
+<!-- Copyright 2001-2008 Laszlo Systems, Inc. -->
Modified: openlaszlo/trunk/docs/src/developers/programs/testdriven-9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/testdriven-9.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/programs/testdriven-9.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -11,7 +11,7 @@
<handler name="onclick">
if (goButton.go==true) {
if (goButton.counter<Number.MAX_VALUE) {
- foo = new LzDelegate(this, "count", LzIdle, "onidle");
+ foo = new LzDelegate(this, "count", lz.Idle, "onidle");
this.setAttribute('text', 'Stop');
this.setAttribute('go', false);
}
@@ -43,4 +43,4 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
-* X_LZ_COPYRIGHT_END ****************************************************** -->
\ No newline at end of file
+* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$10.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$10.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -1,7 +1,7 @@
<canvas height="200" proxied="false">
<drawview height="200" width="200">
- <handler name="oninit">
+ <handler name="oncontext">
this.moveTo(40,40)
this.lineTo(80,40)
this.lineTo(80, 80)
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$11.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$11.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$11.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -3,7 +3,7 @@
<class name="circle" extends="drawview" >
<attribute name="circlecolor" value="white"/>
<attribute name="r" value="100"/>
- <handler name="oninit">
+ <handler name="oncontext">
this.redraw();
</handler>
<handler name="onr">
@@ -49,6 +49,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$3.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$3.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$3.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -1,6 +1,6 @@
<canvas height="200" proxied="false">
<drawview height="200" width="200">
- <handler name="oninit">
+ <handler name="oncontext">
this.moveTo(100,100);
this.lineTo(200,100);
this.quadraticCurveTo(120, 200, 300, 100);
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$4.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$4.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$4.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -1,7 +1,7 @@
<canvas height="200" proxied="false">
<drawview height="200" width="200">
- <handler name="oninit">
+ <handler name="oncontext">
this.moveTo(100,100);
this.lineTo(200,100);
this.quadraticCurveTo(120, 200, 300, 100)
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$5.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$5.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$5.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -1,7 +1,7 @@
<canvas height="200" proxied="false">
<drawview height="200" width="200">
- <handler name="oninit">
+ <handler name="oncontext">
this.moveTo(100,100);
this.lineTo(200,100);
this.quadraticCurveTo(120, 200, 300, 100)
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$6.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$6.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$6.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -1,7 +1,7 @@
<canvas height="200" proxied="false">
<drawview height="200" width="200">
- <handler name="oninit">
+ <handler name="oncontext">
this.moveTo(100,100);
this.lineTo(200,100);
this.quadraticCurveTo(120, 200, 300, 100)
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$7.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$7.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$7.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -1,7 +1,7 @@
<canvas height="200" proxied="false">
<drawview height="200" width="200">
- <handler name="oninit">
+ <handler name="oncontext">
this.moveTo(100,100);
this.lineTo(200,100);
this.quadraticCurveTo(120, 200, 300, 100)
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$8.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$8.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$8.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -1,7 +1,7 @@
<canvas height="200" proxied="false">
<drawview height="150" width="300" bgcolor="blue">
- <handler name="oninit">
+ <handler name="oncontext">
this.moveTo(100,100);
this.lineTo(200,100);
this.quadraticCurveTo(120, 200, 300, 100)
@@ -17,6 +17,6 @@
</drawview>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$9.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/drawview-intro-$9.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -1,7 +1,7 @@
<canvas height="200" proxied="false">
<drawview height="200" width="200">
- <handler name="oninit">
+ <handler name="oncontext">
this.moveTo(100,100);
this.lineTo(200,100);
this.quadraticCurveTo(120, 200, 300, 100)
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/window-tutorial-$11.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/window-tutorial-$11.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/window-tutorial-$11.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -57,18 +57,18 @@
<method name="startResize">
// set distances from right and bottom edges
- this.resizeOffsetX = this.getAttribute('width')
+ this.resizeOffsetX = this.width
- this.getMouse('x');
- this.resizeOffsetY = this.getAttribute('height')
+ this.resizeOffsetY = this.height
- this.getMouse('y');
- if (!this.getAttribute('sizerDel')) {
+ if (!this['sizerDel']) {
this.sizerDel = new LzDelegate(this, 'adjustSize',
- LzIdle, 'onidle');
+ lz.Idle, 'onidle');
}
</method>
- <method name="adjustSize">
+ <method name="adjustSize" args="v">
<![CDATA[
var newWidth = this.getMouse('x') + this.resizeOffsetX;
var newHeight = this.getMouse('y') + this.resizeOffsetY;
@@ -107,6 +107,6 @@
</mediaWindow>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/window-tutorial-$8.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/window-tutorial-$8.lzx 2008-07-04 00:10:58 UTC (rev 10215)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/window-tutorial-$8.lzx 2008-07-04 00:52:27 UTC (rev 10216)
@@ -54,18 +54,18 @@
<method name="startResize">
// set distances from right and bottom edges
- this.resizeOffsetX = this.getAttribute('width')
+ this.resizeOffsetX = this.width
- this.getMouse('x');
- this.resizeOffsetY = this.getAttribute('height')
+ this.resizeOffsetY = this.height
- this.getMouse('y');
- if (!this.getAttribute('sizerDel')) {
+ if (!this['sizerDel']) {
this.sizerDel = new LzDelegate(this, 'adjustSize',
- LzIdle, 'onidle');
+ lz.Idle, 'onidle');
}
</method>
- <method name="adjustSize">
+ <method name="adjustSize" args="v">
var newWidth = this.getMouse('x') + this.resizeOffsetX;
var newHeight = this.getMouse('y') + this.resizeOffsetY;
@@ -80,6 +80,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
More information about the Laszlo-checkins
mailing list