[Laszlo-checkins] r9408 - in openlaszlo/trunk: WEB-INF/lps/lfc/data lps/components/base lps/components/lz test/swf9
bargull@openlaszlo.org
bargull at openlaszlo.org
Sat May 31 16:00:59 PDT 2008
Author: bargull
Date: 2008-05-31 16:00:48 -0700 (Sat, 31 May 2008)
New Revision: 9408
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataNode.lzs
openlaszlo/trunk/lps/components/base/basebutton.lzx
openlaszlo/trunk/lps/components/base/basecomponent.lzx
openlaszlo/trunk/lps/components/base/baselist.lzx
openlaszlo/trunk/lps/components/base/basetabslider.lzx
openlaszlo/trunk/lps/components/base/componentmanager.lzx
openlaszlo/trunk/lps/components/base/datalistselector.lzx
openlaszlo/trunk/lps/components/lz/checkbox.lzx
openlaszlo/trunk/test/swf9/data-6.lzx
openlaszlo/trunk/test/swf9/data-6a.lzx
Log:
Change 20080531-bargull-Dl4 by bargull at dell--p4--2-53 on 2008-05-31 17:36:08
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: weather-demo in swf9
New Features:
Bugs Fixed: LPP-6077
Technical Reviewer: hminsky
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Weather-demo compiles now and even works partially. (at least the version I've just send to Josh)
Tests:
test/swf9/data6*, test/swf9/checkbox
swf9 compiles
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataNode.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataNode.lzs 2008-05-31 22:58:49 UTC (rev 9407)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataNode.lzs 2008-05-31 23:00:48 UTC (rev 9408)
@@ -149,7 +149,7 @@
* Renamed from childOf to avoid conflict with LzNode.childOf.
* childOf still exists because it is part of the public API.
*/
-function childOfNode ( el , allowself ) {
+function childOfNode ( el , allowself=false ) {
var p = allowself ? this : this.parentNode
while ( p ){
if ( p == el ) return true;
Modified: openlaszlo/trunk/lps/components/base/basebutton.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basebutton.lzx 2008-05-31 22:58:49 UTC (rev 9407)
+++ openlaszlo/trunk/lps/components/base/basebutton.lzx 2008-05-31 23:00:48 UTC (rev 9408)
@@ -112,7 +112,7 @@
]]> </method>
<!--- When the space bar is down, basebutton shows its down state. -->
- <method name="doSpaceDown" args="e=null">
+ <method name="doSpaceDown" >
<![CDATA[
if ( this._enabled) {
this.showDown();
@@ -121,7 +121,7 @@
</method>
<!--- When the space bar is up, basebutton shows its up state. -->
- <method name="doSpaceUp" args="e=null">
+ <method name="doSpaceUp" >
<![CDATA[
if ( this._enabled) {
this.onclick.sendEvent();
@@ -131,14 +131,14 @@
</method>
<!--- Called by the button manager when this button is the default-->
- <method name="doEnterDown" args="e=null">
+ <method name="doEnterDown" >
if ( this._enabled ){
this.showDown( );
}
</method>
<!--- Called by the button manager when this button is the default-->
- <method name="doEnterUp" args="e=null">
+ <method name="doEnterUp" >
if ( this._enabled ){
if ( this.onclick ){
this.onclick.sendEvent();
Modified: openlaszlo/trunk/lps/components/base/basecomponent.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basecomponent.lzx 2008-05-31 22:58:49 UTC (rev 9407)
+++ openlaszlo/trunk/lps/components/base/basecomponent.lzx 2008-05-31 23:00:48 UTC (rev 9408)
@@ -136,25 +136,25 @@
<!--- Called if this component has the focus and the space bar goes
down -->
- <method name="doSpaceDown" args="e=null">
+ <method name="doSpaceDown" >
return false;
</method>
<!--- Called if this component has the focus and the space bar goes
up -->
- <method name="doSpaceUp" args="e=null">
+ <method name="doSpaceUp" >
return false;
</method>
<!--- Called if this component has the focus and the component
has doesenter set to true and the enter key goes down -->
- <method name="doEnterDown" args="e=null">
+ <method name="doEnterDown" >
return false;
</method>
<!--- Called if this component has the focus and the component
has doesenter set to true and the enter key goes up -->
- <method name="doEnterUp" args="e=null">
+ <method name="doEnterUp" >
return false;
</method>
Modified: openlaszlo/trunk/lps/components/base/baselist.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/baselist.lzx 2008-05-31 22:58:49 UTC (rev 9407)
+++ openlaszlo/trunk/lps/components/base/baselist.lzx 2008-05-31 23:00:48 UTC (rev 9408)
@@ -38,6 +38,10 @@
@keywords private -->
<attribute name="_initialselection" value="null"/>
+ <!--- the selector for this list (lz.listselector or lz.datalistselector)
+ @keywords private -->
+ <attribute name="_selector" value="null" />
+
<!--- This event is triggered whenever the user makes a selection it may
used as a script in the tag or as an event method. -->
<event name="onselect"/>
Modified: openlaszlo/trunk/lps/components/base/basetabslider.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basetabslider.lzx 2008-05-31 22:58:49 UTC (rev 9407)
+++ openlaszlo/trunk/lps/components/base/basetabslider.lzx 2008-05-31 23:00:48 UTC (rev 9408)
@@ -171,7 +171,7 @@
<!--- Deprecated: use this.select(atabview) instead.
@param basetabelement tabelement: tabelement to open.
@param boolean withAnimation: unused. -->
- <method name="openTab" args="tabelement,withAnimation" > <![CDATA[
+ <method name="openTab" args="tabelement,withAnimation=false" > <![CDATA[
var didopen = false;
var ot = this._selector.getSelection()[0];
if ( ot != tabelement ){
@@ -201,9 +201,10 @@
<!--- Add the new item (instantiated using itemclassname) and a new
tabelement.
- @param String txt: The name of the tabelement. -->
- <method name="addItem" args="txt" > <;
+ @param String txt: The name of the tabelement.
+ @param Object value: The value of the tabelement. -->
+ <method name="addItem" args="txt, value" > <;
this.onheight.sendEvent(); // force an update
]]> </method>
Modified: openlaszlo/trunk/lps/components/base/componentmanager.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/componentmanager.lzx 2008-05-31 22:58:49 UTC (rev 9407)
+++ openlaszlo/trunk/lps/components/base/componentmanager.lzx 2008-05-31 23:00:48 UTC (rev 9408)
@@ -83,7 +83,7 @@
]]>
</method>
- <method name="dispatchKeyTimer">
+ <method name="dispatchKeyTimer" args="ignore" >
<![CDATA[
if ( this._lastkeydown == 32 && this.lastsdown != null ){
this.lastsdown.doSpaceUp();
Modified: openlaszlo/trunk/lps/components/base/datalistselector.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/datalistselector.lzx 2008-05-31 22:58:49 UTC (rev 9407)
+++ openlaszlo/trunk/lps/components/base/datalistselector.lzx 2008-05-31 23:00:48 UTC (rev 9408)
@@ -14,7 +14,8 @@
<!--- @keywords private -->
<attribute name="_forcemulti" value="false"/>
- <attribute name="cloneManager" value="null"/>
+ <!-- already defined in LzNode -->
+ <!--<attribute name="cloneManager" value="null"/>-->
<method name="isRangeSelect" args="item">
var allowselect = false;
if (multiselect) allowselect = super.isRangeSelect(item);
Modified: openlaszlo/trunk/lps/components/lz/checkbox.lzx
===================================================================
--- openlaszlo/trunk/lps/components/lz/checkbox.lzx 2008-05-31 22:58:49 UTC (rev 9407)
+++ openlaszlo/trunk/lps/components/lz/checkbox.lzx 2008-05-31 23:00:48 UTC (rev 9408)
@@ -36,7 +36,7 @@
</multistatebutton>
<!--- toggles the value when the space bar is pressed while focused -->
- <method name="doSpaceUp" args="e=null">
+ <method name="doSpaceUp" >
<![CDATA[
if ( this._enabled ) {
this.setAttribute('value', !this.value);
Modified: openlaszlo/trunk/test/swf9/data-6.lzx
===================================================================
--- openlaszlo/trunk/test/swf9/data-6.lzx 2008-05-31 22:58:49 UTC (rev 9407)
+++ openlaszlo/trunk/test/swf9/data-6.lzx 2008-05-31 23:00:48 UTC (rev 9408)
@@ -6,7 +6,7 @@
<handler name="ondata">
Debug.warn("ondata");
- canvas.message.setText(LzDataNode.__LZXMLescape(this.serialize()));
+ canvas.message.setText(LzDataElement.__LZXMLescape(this.serialize()));
trace("got data " + this.serialize());
</handler>
Modified: openlaszlo/trunk/test/swf9/data-6a.lzx
===================================================================
--- openlaszlo/trunk/test/swf9/data-6a.lzx 2008-05-31 22:58:49 UTC (rev 9407)
+++ openlaszlo/trunk/test/swf9/data-6a.lzx 2008-05-31 23:00:48 UTC (rev 9408)
@@ -4,7 +4,7 @@
<dataset name="myData" type="http" src="data.xml">
<handler name="ondata">
- canvas.message.setText(LzDataNode.__LZXMLescape(this.serialize()));
+ canvas.message.setText(LzDataElement.__LZXMLescape(this.serialize()));
trace("got data " + this.serialize());
</handler>
More information about the Laszlo-checkins
mailing list