Author: hqm
Date: 2008-02-09 18:59:18 -0800 (Sat, 09 Feb 2008)
New Revision: 7993
Modified:
openlaszlo/trunk/demos/amazon/address.lzx
openlaszlo/trunk/demos/amazon/amazon.lzx
openlaszlo/trunk/demos/amazon/classlib.lzx
openlaszlo/trunk/demos/amazon/creditcard.lzx
openlaszlo/trunk/demos/calendar/cal-button.lzx
openlaszlo/trunk/demos/calendar/cal-data.lzx
openlaszlo/trunk/demos/calendar/calendar.lzx
openlaszlo/trunk/demos/calendar/day.lzx
openlaszlo/trunk/demos/calendar/event.lzx
openlaszlo/trunk/demos/calendar/eventselector.lzx
openlaszlo/trunk/demos/calendar/gridsliderlayout.lzx
openlaszlo/trunk/demos/calendar/infopanel.lzx
openlaszlo/trunk/demos/calendar/selected-daylook.lzx
openlaszlo/trunk/demos/calendar/textbox.lzx
openlaszlo/trunk/demos/calendar/vscrollbar.lzx
Log:
Change 20080209-hqm-G by [EMAIL PROTECTED] on 2008-02-09 21:54:33 EST
in /Users/hqm/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary:
New Features:
Bugs Fixed:
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Tests:
Modified: openlaszlo/trunk/demos/amazon/address.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/address.lzx 2008-02-09 23:16:43 UTC (rev
7992)
+++ openlaszlo/trunk/demos/amazon/address.lzx 2008-02-10 02:59:18 UTC (rev
7993)
@@ -102,7 +102,7 @@
<view>
<simplelayout axis="x" spacing="4"/>
<mouseview resource="ok_butt">
- <method event="onclick">
+ <handler name="onclick">
parent.parent.form.datapath.updateData();
if (parent.parent.mode=="new") {
var dp=canvas.datasets.dsAddressList.getPointer();
@@ -110,14 +110,14 @@
dp.addNodeFromPointer( parent.parent.form.datapath );
}
parent.parent.done();
- </method>
+ </handler>
</mouseview>
<mouseview resource="cancel_butt" onclick="parent.parent.done();"/>
</view>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/amazon/amazon.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/amazon.lzx 2008-02-09 23:16:43 UTC (rev
7992)
+++ openlaszlo/trunk/demos/amazon/amazon.lzx 2008-02-10 02:59:18 UTC (rev
7993)
@@ -19,35 +19,35 @@
src="http://xml.amazon.com/onca/xml3"/>
<datapointer xpath="dsKeyword:/*">
- <method event="ondata">
+ <handler name="ondata">
searchLoader.hide();
- </method>
- <method event="onerror">
+ </handler>
+ <handler name="onerror">
searchLoader.hide();
- </method>
- <method event="ontimeout">
+ </handler>
+ <handler name="ontimeout">
Debug.write( "timeout in dataset: dsKeyword" );
searchLoader.hide();
- </method>
+ </handler>
</datapointer>
<!-- dataset to retrieve one item identified by its ASIN (ASIN = Amazon's
unique identifier -->
<dataset name="dsAsin" type="http" request="false"
src="http://xml.amazon.com/onca/xml3" />
<datapointer xpath="dsAsin:/*">
- <method event="ondata">
+ <handler name="ondata">
recommend.setVisible( false );
cdinfo.setVisible( true );
cdinfo.bringToFront();
infoLoader.hide();
- </method>
- <method event="onerror">
+ </handler>
+ <handler name="onerror">
infoLoader.hide();
- </method>
- <method event="ontimeout">
+ </handler>
+ <handler name="ontimeout">
Debug.write( "timeout in dataset: dsAsin" );
infoLoader.hide();
- </method>
+ </handler>
</datapointer>
<!-- dataset to store cart items -->
@@ -105,9 +105,9 @@
<view resource="laszlo_powered" x="276" y="13"
onmouseover="setResourceNumber(2)"
onmouseout="setResourceNumber(1)">
- <method event="onclick">
+ <handler name="onclick">
LzBrowser.loadURL("http://laszlosystems.com", "_blank");
- </method>
+ </handler>
</view>
</view>
@@ -136,7 +136,7 @@
<text x="4" font="lztahoe8,Arial,Helvetica"
datapath="Artists/Artist[1]/text()" width="${parent.width-6}" resize="false"/>
<!-- When one item is clicked, a request is
sent to Amazon for deatailed informations about the item -->
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
var dsAsin=canvas.datasets.dsAsin;
var qsAsin =
"t=webservices&dev-t="+canvas.developerToken+"&AsinSearch="+parent.datapath.xpathQuery("Asin/text()")+"&mode=music&type=heavy&page=1&f=xml";
@@ -144,7 +144,7 @@
dsAsin.setQueryString(qsAsin);
dsAsin.doRequest();
]]>
- </method>
+ </handler>
</view>
</view>
@@ -246,22 +246,22 @@
<view width="${parent.width}"
height="${parent.height-20}"
datapath="Tracks" clip="true">
- <method event="ondata">
+ <handler name="ondata">
var dp = this.datapath.dupePointer();
dp.selectChild();
var numberTracks = countNodesByName( dp,
'Track' );
numberTracks = (numberTracks == 0) ? "-" :
numberTracks;
this.parent.setAnnotation( numberTracks );
- </method>
+ </handler>
<view y="8" x="8" width="${parent.width}">
<simplelayout axis="y"/>
<!-- Repeated view displaying the list of
tracks -->
<view width="${parent.width}">
<attribute name="trackid"
type="string" value=""/>
- <method event="onclonenumber" args="n">
+ <handler name="onclonenumber" args="n">
this.trackid = n+1 + '.';
- </method>
+ </handler>
<datapath xpath="Track" pooling="true"
/>
<simplelayout axis="x" spacing="4"/>
<text name="tid"
label="${parent.trackid}" width="20"/>
@@ -282,12 +282,12 @@
<datapath xpath="Reviews"
pooling="true"/>
<simplelayout axis="y" spacing="0"/>
- <method event="ondata">
+ <handler name="ondata">
var dp =
this.datapath.dupePointer();
dp.selectChild();
var numberReviews =
countNodesByName( dp, 'CustomerReview' );
this.parent.parent.parent.setAnnotation( numberReviews );
- </method>
+ </handler>
<!-- Repeated view displaying the list
of customer review -->
@@ -329,12 +329,12 @@
<mouseview resource="search_butt" y="1" onclick="search()">
<inputtext name="searchKey" x="20" y="3" fontsize="11">
- <method event="onkeydown" args="k">
+ <handler name="onkeydown" args="k">
if (k==13) {
Debug.write("Searching");
parent.search();
}
- </method>
+ </handler>
</inputtext>
<method name="search">
<![CDATA[
@@ -558,7 +558,7 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/amazon/classlib.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/classlib.lzx 2008-02-09 23:16:43 UTC (rev
7992)
+++ openlaszlo/trunk/demos/amazon/classlib.lzx 2008-02-10 02:59:18 UTC (rev
7993)
@@ -64,7 +64,7 @@
onmousedown="setResourceNumber(classroot.opened=='true'?6:3)"
onmouseup="setResourceNumber(classroot.opened=='true'?4:1)">
<attribute name="resource" value="${classroot.tabresource}"/>
- <method event="onclick">
+ <handler name="onclick">
if (classroot.opened=="true") {
classroot.close();
classroot.opened="false";
@@ -72,10 +72,10 @@
classroot.open();
classroot.opened="true";
}
- </method>
+ </handler>
</view>
<vtabsliderbutton resource="slider_drag">
- <method event="onmousedown">
+ <handler name="onmousedown">
classroot.xdoffset = this.getMouse("x")
-( (canvas.width
-classroot.getAttributeRelative('x', canvas))
@@ -84,8 +84,8 @@
if(classroot.container.content.visible != true){
classroot.container.content.setVisible(true);
}
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
if(classroot.opened != true) classroot.opened = 'true';
if ( classroot.width == parent.width ) {
// User has just closed the tab by dragging the panel
@@ -95,7 +95,7 @@
}
parent.tabButton.setResourceNumber(classroot.opened=='true'?4:1);
classroot.panelDragger.remove();
- </method>
+ </handler>
</vtabsliderbutton>
</view>
@@ -221,7 +221,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/amazon/creditcard.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/creditcard.lzx 2008-02-09 23:16:43 UTC
(rev 7992)
+++ openlaszlo/trunk/demos/amazon/creditcard.lzx 2008-02-10 02:59:18 UTC
(rev 7993)
@@ -90,7 +90,7 @@
<view>
<simplelayout axis="x" spacing="4"/>
<mouseview resource="ok_butt">
- <method event="onclick">
+ <handler name="onclick">
parent.parent.form.datapath.retrieveData();
if (parent.parent.mode=="new") {
Debug.write("new");
@@ -99,7 +99,7 @@
dp.addNodeFromPointer( parent.parent.form.datapath );
}
parent.parent.done();
- </method>
+ </handler>
</mouseview>
<mouseview resource="cancel_butt" onclick="parent.parent.done();"/>
</view>
@@ -107,7 +107,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/calendar/cal-button.lzx
===================================================================
--- openlaszlo/trunk/demos/calendar/cal-button.lzx 2008-02-09 23:16:43 UTC
(rev 7992)
+++ openlaszlo/trunk/demos/calendar/cal-button.lzx 2008-02-10 02:59:18 UTC
(rev 7993)
@@ -115,9 +115,9 @@
<attribute name="text" value="parent.label" when="always" />
</text>
- <method event="ontext" reference="this.title">
+ <handler name="ontext" reference="this.title">
this.update();
- </method>
+ </handler>
<method name="update" >
if (this.keepinitialwidth) {
@@ -198,7 +198,7 @@
</state>
- <method event="oninit" >
+ <handler name="oninit" >
this.setEnabled(this.enabled);
this.update();
@@ -211,7 +211,7 @@
// appears like a bug.
this.ocd = new LzDelegate(this,"safeclick");
- </method>
+ </handler>
<!-- OTHER METHODS -->
<method name="safeclick" >
@@ -228,7 +228,7 @@
</method>
<!-- MOUSE EVENTS -->
- <method event="onmousedown" >
+ <handler name="onmousedown" >
if ( this.enabled) {
this.mouseisdown = true;
this.domousedown();
@@ -236,9 +236,9 @@
this.bkgnd.mid.setResourceNumber( this.downRsrcNumber );
this.bkgnd.rgt.setResourceNumber( this.downRsrcNumber );
}
- </method>
+ </handler>
- <method event="onmouseup" >
+ <handler name="onmouseup" >
this.mouseisdown = false;
if (this.enabled) {
this.domouseup();
@@ -252,9 +252,9 @@
this.bkgnd.rgt.setResourceNumber( this.normalRsrcNumber );
}
}
- </method>
+ </handler>
- <method event="onmouseover" ><![CDATA[
+ <handler name="onmouseover" ><![CDATA[
if ( this.enabled) {
this.mouseisover = true;
if (this.mouseisdown) {
@@ -269,19 +269,19 @@
this.bkgnd.rgt.setResourceNumber( this.overRsrcNumber );
}
}
- ]]> </method>
+ ]]> </handler>
- <method event="onmouseout" > <![CDATA[
+ <handler name="onmouseout" > <![CDATA[
this.mouseisover = false;
this.domouseup();
this.bkgnd.lft.setResourceNumber( this.normalRsrcNumber );
this.bkgnd.mid.setResourceNumber( this.normalRsrcNumber );
this.bkgnd.rgt.setResourceNumber( this.normalRsrcNumber );
- ]]> </method>
+ ]]> </handler>
- <method event="onclick" >
+ <handler name="onclick" >
this.ocd.register(LzIdle,"onidle");
- </method>
+ </handler>
@@ -293,7 +293,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/calendar/cal-data.lzx
===================================================================
--- openlaszlo/trunk/demos/calendar/cal-data.lzx 2008-02-09 23:16:43 UTC
(rev 7992)
+++ openlaszlo/trunk/demos/calendar/cal-data.lzx 2008-02-10 02:59:18 UTC
(rev 7993)
@@ -24,10 +24,10 @@
</method>
<!-- keep going if we get an error -->
- <method event="onerror">
+ <handler name="onerror">
this.requestrunning = false;
this.doNextRequest();
- </method>
+ </handler>
<method name="loadData" args="mo, yr">
if( !datatester.hasNode( mo , yr ) ){
@@ -461,7 +461,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/calendar/calendar.lzx
===================================================================
--- openlaszlo/trunk/demos/calendar/calendar.lzx 2008-02-09 23:16:43 UTC
(rev 7992)
+++ openlaszlo/trunk/demos/calendar/calendar.lzx 2008-02-10 02:59:18 UTC
(rev 7993)
@@ -57,9 +57,9 @@
<!-- shows the day titles if necessary when the grid stops
updating -->
- <method name="showalldaytitles"
- event="onupdatestop"
- reference="calgrid.gridlayout"> <![CDATA[
+ <handler name="onupdatestop" method="showalldaytitles"
reference="calgrid.gridlayout" />
+ <method name="showalldaytitles">
+ <![CDATA[
if ( calgrid.gridlayout.displaymode != 'cell' ){
var svs = this.subviews;
for (var i = 0; i < 7; i++) {
@@ -126,13 +126,13 @@
</text>
<text name="monthtitle" fontstyle="bold"
fgcolor="#FFFFFF" y="10">
- <method event="ontext">
+ <handler name="ontext">
this.setX( Math.round( ( this.parent.width -
this.getTextWidth())/2.0) - 2);
this.setWidth (this.getTextWidth()+2);
this.parent.monthtitleshdw.setWidth
(this.getTextWidth()+2);
- </method>
+ </handler>
</text>
<calButton label="Add Event" x="496" y="5"
@@ -515,14 +515,14 @@
font="Verdana,sans-serif" />
<!-- Start the ui appearing with a cool animation when the canvas is ready
-->
- <method reference="canvas" event="oninit">
+ <handler reference="canvas" name="oninit">
slideInTopPanel.doStart(); // make the top panel slide in
loadingView.destroy();
- </method>
+ </handler>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/calendar/day.lzx
===================================================================
--- openlaszlo/trunk/demos/calendar/day.lzx 2008-02-09 23:16:43 UTC (rev
7992)
+++ openlaszlo/trunk/demos/calendar/day.lzx 2008-02-10 02:59:18 UTC (rev
7993)
@@ -192,9 +192,9 @@
</method>
- <method event="onclick" >
+ <handler name="onclick" >
calgrid.openday(this);
- </method>
+ </handler>
<method name="hilite" args="dohilite, dontupdate">
if (dohilite) {
@@ -219,21 +219,21 @@
return "calendar_day
"+d.getFullYear()+"."+(d.getMonth()+1)+"."+d.getDate();
</method>
- <method event="onopenstart" >
+ <handler name="onopenstart" >
//Debug.write('called onopenstart on day = ' + this.tostring());
this.setAttribute( 'opened' , true);
- </method>
+ </handler>
- <method event="onclosestart" >
+ <handler name="onclosestart" >
//Debug.write('called onclosestart on day = ' + this.tostring());
this.setAttribute( 'opened' , false);
- </method>
+ </handler>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/calendar/event.lzx
===================================================================
--- openlaszlo/trunk/demos/calendar/event.lzx 2008-02-09 23:16:43 UTC (rev
7992)
+++ openlaszlo/trunk/demos/calendar/event.lzx 2008-02-10 02:59:18 UTC (rev
7993)
@@ -53,14 +53,14 @@
<attribute name="endTime"
value="${this.endHour * 60 + Number( this.endMin )}"/>
- <method event="ondata">
+ <handler name="ondata">
var dts = this.defaultTimes;
for (var f in dts) {
if (! this[f]) {
this.setAttribute(f, dts[f]);
}
}
- </method>
+ </handler>
<!-- VIEWS -->
<view name="tl" bgcolor="#FFFFFF"
@@ -133,25 +133,25 @@
</state>
<!-- METHODS -->
- <method event="onmouseover">
+ <handler name="onmouseover">
this.setBGColor( this.hiColor );
- </method>
+ </handler>
- <method event="onmouseout">
+ <handler name="onmouseout">
this.setBGColor( this.normalColor );
- </method>
+ </handler>
- <method event="onmousedown">
+ <handler name="onmousedown">
this.mouseIsDown = true;
//The next line seems redundant. See: eventselector.lzx
//calgrid.daySelectionMgr.select(this.classroot);
eventselector.selectData( this );
- </method>
+ </handler>
- <method event="onmouseup">
+ <handler name="onmouseup">
this.mouseIsDown = false;
eventselector.domouseup();
- </method>
+ </handler>
</class>
@@ -201,7 +201,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/calendar/eventselector.lzx
===================================================================
--- openlaszlo/trunk/demos/calendar/eventselector.lzx 2008-02-09 23:16:43 UTC
(rev 7992)
+++ openlaszlo/trunk/demos/calendar/eventselector.lzx 2008-02-10 02:59:18 UTC
(rev 7993)
@@ -27,7 +27,7 @@
<text name="timeArea" fgcolor="#4B5D6C"
datapath="start[1]" y="5" x="2" resize="true">
<attribute name="hour" value="$path{'@hour'}"/>
- <method event="onhour">
+ <handler name="onhour">
<![CDATA[
if ( this.hour == null ) return;
h = Number( this.hour );
@@ -36,7 +36,7 @@
else if ( h==0 ) h='12';
this.setText( h + ap );
]]>
- </method>
+ </handler>
</text>
<view width="${parent.width}" height="${parent.height}"
clip="true">
@@ -92,14 +92,14 @@
<datapath p="${currenteventDP.p}"/>
<!-- METHODS -->
- <method event="oninit">
+ <handler name="oninit">
//Debug.write("ONINIT: this =" + this);
this.mdel = new LzDelegate(this,"trackmouse");
this.clipdel = new LzDelegate(this,"checkClip");
this.hidedel = new LzDelegate(this,"checkHide");
this.startDragDel = new LzDelegate(this,"startDrag");
//Debug.write("event selector.oninit");
- </method>
+ </handler>
<method name="hide">
bar.setVisible(false);
@@ -204,7 +204,7 @@
bar.gripper.button.bkgnd.setColorTransform(transColor);
</method>
- <method event="onfreedragging"><![CDATA[
+ <handler name="onfreedragging"><![CDATA[
if ( !this.clipping && !this.freedragging ){
this.clipping = true;
@@ -217,7 +217,7 @@
this.setAttribute('y', this.getAttributeRelative('y', calgrid)
);
this.setAttribute( 'height' , calgrid.height);
}]]>
- </method>
+ </handler>
<method name="checkClip"><![CDATA[
if ( followview.classroot.opened && this.freedragging ){
@@ -231,13 +231,14 @@
}]]>
</method>
- <method event="ondblclick">
+ <handler name="ondblclick">
//Debug.write("eventselector doubleclick");
infopanel.open();
// OLD cal_interior.showInfo(smallevent.event);
- </method>
+ </handler>
- <method name="domousedown" event="onmousedown"> <![CDATA[
+ <handler name="onmousedown" method="domousedown"/>
+ <method name="domousedown"><![CDATA[
//wait 150ms before starting drag; prevents moving the
//event selector on a click -- 150ms is empirical
this.origx = bar.x;
@@ -257,7 +258,8 @@
calgrid.gridlayout.startTrack(); ]]>
</method>
- <method name="domouseup" event="onmouseup"> <![CDATA[
+ <handler name="onmouseup" method="domouseup"/>
+ <method name="domouseup"><![CDATA[
if ( this.dragging ){
this.mdel.unregisterAll( );
this.setAttribute('dragging',false);
@@ -383,14 +385,14 @@
<!-- MOUSEEVENT METHODS-->
- <method event="onmousedown" >
+ <handler name="onmousedown" >
this.mouseisdown = true;
this.bkgnd.button.setResourceNumber( this.downRsrcNumber );
this.i.setX(1);
this.i.setY(1);
- </method>
+ </handler>
- <method event="onmouseup" >
+ <handler name="onmouseup" >
this.mouseisdown = false;
if (this.mouseisover) {
this.bkgnd.button.setResourceNumber( this.overRsrcNumber );
@@ -399,9 +401,9 @@
}
this.i.setX(0);
this.i.setY(0);
- </method>
+ </handler>
- <method event="onmouseover" ><![CDATA[
+ <handler name="onmouseover" ><![CDATA[
this.mouseisover = true;
if (this.mouseisdown) {
this.bkgnd.button.setResourceNumber( this.downRsrcNumber );
@@ -413,20 +415,20 @@
this.i.setY(0);
}
- ]]> </method>
+ ]]> </handler>
- <method event="onmouseout" > <![CDATA[
+ <handler name="onmouseout" > <![CDATA[
this.mouseisover = false;
this.bkgnd.button.setResourceNumber( this.normalRsrcNumber );
this.i.setX(0);
this.i.setY(0);
- ]]> </method>
+ ]]> </handler>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/calendar/gridsliderlayout.lzx
===================================================================
--- openlaszlo/trunk/demos/calendar/gridsliderlayout.lzx 2008-02-09
23:16:43 UTC (rev 7992)
+++ openlaszlo/trunk/demos/calendar/gridsliderlayout.lzx 2008-02-10
02:59:18 UTC (rev 7993)
@@ -48,12 +48,12 @@
<attribute name="addedOpenHeight" value="170" />
- <method event="oninit" > <![CDATA[
+ <handler name="oninit" > <![CDATA[
// Create delegates used by the update method.
this.updateDelegate.register( immediateparent, "onwidth");
this.updateDelegate.register( immediateparent, "onheight");
this.resetvisDL = new LzDelegate(this,'resetVisibility');
- ]]> </method>
+ ]]> </handler>
<!-- METHOD: addSubview -->
<!-- As subviews are added to this layout store their row and col.
@@ -497,7 +497,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/calendar/infopanel.lzx
===================================================================
--- openlaszlo/trunk/demos/calendar/infopanel.lzx 2008-02-09 23:16:43 UTC
(rev 7992)
+++ openlaszlo/trunk/demos/calendar/infopanel.lzx 2008-02-10 02:59:18 UTC
(rev 7993)
@@ -42,25 +42,25 @@
<resizelayout axis="y"/>
<!-- METHODS -->
- <method event="onopenstart" >
+ <handler name="onopenstart" >
// tab is about to open
this.interior.setVisible(true);
this.top.setBGColor(0xE2E4DF);
this.top.tline.setBGColor(0xB8B9B5)
this.top.bline.setBGColor(0xFDFFFF)
- </method>
+ </handler>
- <method event="onclosestart" >
+ <handler name="onclosestart" >
//tab is about to close
this.top.setBGColor(0xEEF0EB);
this.top.tline.setBGColor(0xFDFFFF)
this.top.bline.setBGColor(0xC6C7C4)
- </method>
+ </handler>
- <method event="onclosestop" >
+ <handler name="onclosestop" >
//tab is closed
this.interior.setVisible(false);
- </method>
+ </handler>
<method name="toggle">
// ugh - tabslider doesn't support closing tabs yet
@@ -102,7 +102,7 @@
</method>
</textbox>
<basebutton x="149" width="14" resource="info_larrow">
- <method event="onclick">
+ <handler name="onclick">
calgrid.keepinfoopen = true;
var thiscell = calgrid.open_day.id;
thiscell = Number(thiscell.substr(4));
@@ -121,10 +121,10 @@
calgrid.showweekview();
}
calgrid.keepinfoopen = false;
- </method>
+ </handler>
</basebutton>
<basebutton x="163" width="14" resource="info_rarrow">
- <method event="onclick">
+ <handler name="onclick">
calgrid.keepinfoopen = true;
var thiscell = calgrid.open_day.id;
thiscell = Number(thiscell.substr(4));
@@ -149,7 +149,7 @@
calgrid.showweekview();
}
calgrid.keepinfoopen = false;
- </method>
+ </handler>
</basebutton>
</view>
@@ -264,12 +264,12 @@
bgcolor="0xFDFFFF"/>
<calButton label="Apply" x="15" y="13">
- <method event="onclick">
+ <handler name="onclick">
eventDataMgr.changeTitle(sitbox.getText());
eventDataMgr.changeNotes(classroot.tabs.notes.txt.getText());
eventDataMgr.changeLocation(classroot.tabs.location.txt.getText());
eventDataMgr.changeAttendees(classroot.tabs.attendees.txt.getText());
- </method>
+ </handler>
</calButton>
<calButton label="Delete" x="${parent.width - width - 15}" y="13"
@@ -295,10 +295,10 @@
<!-- METHODS -->
- <method event="oninit">
+ <handler name="oninit">
this.setWindowTitle( "Event Info" );
this.closeDel = new LzDelegate( this , "close" );
- </method>
+ </handler>
<method name="open">
this.completeInstantiation();
@@ -346,7 +346,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/calendar/selected-daylook.lzx
===================================================================
--- openlaszlo/trunk/demos/calendar/selected-daylook.lzx 2008-02-09
23:16:43 UTC (rev 7992)
+++ openlaszlo/trunk/demos/calendar/selected-daylook.lzx 2008-02-10
02:59:18 UTC (rev 7993)
@@ -12,7 +12,7 @@
width="${parent.width - 22}" x="5"/>
<multistatebutton name="r" resource="tpRgt_multi" maxstate="1"
statelength="3"
x="${parent.m.x + parent.m.width - 1}" y="-1">
- <method event="onclick">
+ <handler name="onclick">
if (this.statenum ==0){
calgrid.openday(classroot.dayview,true)
}else{
@@ -23,7 +23,7 @@
calgrid.showmonthview();
} else calgrid.gridlayout.setopenview(null,true);
}
- </method>
+ </handler>
</multistatebutton>
</view>
<text name="day" fgcolor="#DAE3E8"
@@ -106,7 +106,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/calendar/textbox.lzx
===================================================================
--- openlaszlo/trunk/demos/calendar/textbox.lzx 2008-02-09 23:16:43 UTC (rev
7992)
+++ openlaszlo/trunk/demos/calendar/textbox.lzx 2008-02-10 02:59:18 UTC (rev
7993)
@@ -32,21 +32,21 @@
active="false"/>
-->
- <method event="onfocus">
+ <handler name="onfocus">
// [bshine 9.28.06] TODO legals does not support LzCommand //
myenter.setAttribute( "active" ,true );
- </method>
+ </handler>
- <method event="onblur">
+ <handler name="onblur">
this.datapath.updateData();
// [bshine 9.28.06] TODO legals does not support LzCommand
//myenter.setAttribute( "active" ,false );
- </method>
+ </handler>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/demos/calendar/vscrollbar.lzx
===================================================================
--- openlaszlo/trunk/demos/calendar/vscrollbar.lzx 2008-02-09 23:16:43 UTC
(rev 7992)
+++ openlaszlo/trunk/demos/calendar/vscrollbar.lzx 2008-02-10 02:59:18 UTC
(rev 7993)
@@ -20,16 +20,16 @@
<class name="basevscrollbar">
<attribute name="targetview" when="always"/>
<attribute name="stepsize" value="10"/>
- <method event="oninit">
+ <handler name="oninit">
this.initcomplete = true;
this.onheight.sendEvent();
- </method>
- <method event="onheight" reference="this.targetview">
+ </handler>
+ <handler name="onheight" reference="this.targetview">
if (this.initcomplete) {
this.thumb.updateHeight();
}
- </method>
- <method event="onheight">
+ </handler>
+ <handler name="onheight">
<![CDATA[
if (this['initcomplete']) {
// should hide thumb if the target view is smaller than the
scrollbar
@@ -49,7 +49,7 @@
}
}
]]>
- </method>
+ </handler>
<!-- set the targetView position -->
<!-- change: change in position, note: positive number scrolls down -->
@@ -100,12 +100,12 @@
<!-- up arrow -->
<view name="toparrow">
<basebuttonrepeater x="1" y="1" resource="ScrollButton_rsc" >
- <method event="onmousedown">
+ <handler name="onmousedown">
classroot.step(-1);
- </method>
- <method event="onmousestilldown">
+ </handler>
+ <handler name="onmousestilldown">
classroot.step(-1);
- </method>
+ </handler>
</basebuttonrepeater>
<view x="4" y="3" resource="ScrollArrowUp_rsc"/>
</view>
@@ -116,7 +116,7 @@
<!-- top of the scroll track -->
<attribute name="height" value="parent.height" when="always"/>
<attribute name="width" value="parent.width" when="always"/>
- <method event="onmousedown">
+ <handler name="onmousedown">
<![CDATA[
if (this.parent.getMouse( 'y' ) < parent.thumb.y) {
classroot.page(-1);
@@ -124,23 +124,23 @@
classroot.page(1);
}
]]>
- </method>
+ </handler>
</view>
<view x="1" name="thumb" id="th"
onmousedown="thumbdrag.apply();" onmouseup="thumbdrag.remove()">
<attribute name="inthumbdrag" value="false"/>
- <method event="oninit">
+ <handler name="oninit">
classroot.thumb = this;
- </method>
+ </handler>
- <method event="ony" reference="classroot.targetview">
+ <handler name="ony" reference="classroot.targetview">
// when the y position of the target view changes then update
// the thumb position, unless the thumb causes the change
if (!this.inthumbdrag) {
this.updateY();
}
- </method>
+ </handler>
<method name="updateY">
if (classroot.targetview) {
@@ -206,21 +206,21 @@
<attribute name="y" value="parent.thumb.y+parent.thumb.height"
when="always"/>
<attribute name="height" value= "parent.height - parent.thumb.y"
when="always"/>
<attribute name="width" value="parent.width" when="always"/>
- <method event="onmousedown">
+ <handler name="onmousedown">
classroot.page(1);
- </method>
+ </handler>
</view-->
</view>
<!-- down arrow -->
<view name="bottomarrow" height="13">
<basebuttonrepeater x="1" resource="ScrollButton_rsc">
- <method event="onmousedown">
+ <handler name="onmousedown">
classroot.step(1);
- </method>
- <method event="onmousestilldown">
+ </handler>
+ <handler name="onmousestilldown">
classroot.step(1);
- </method>
+ </handler>
</basebuttonrepeater>
<view x="4" y="3" resource="ScrollArrowDown_rsc" />
</view>
@@ -232,7 +232,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins