[Laszlo-checkins] r10564 - in openlaszlo/trunk: examples/components lps/components/base lps/components/lz
hqm@openlaszlo.org
hqm at openlaszlo.org
Fri Aug 1 14:29:01 PDT 2008
Author: hqm
Date: 2008-08-01 14:28:58 -0700 (Fri, 01 Aug 2008)
New Revision: 10564
Modified:
openlaszlo/trunk/examples/components/grid_example.lzx
openlaszlo/trunk/lps/components/base/basegrid.lzx
openlaszlo/trunk/lps/components/base/basegridrow.lzx
openlaszlo/trunk/lps/components/lz/gridcolumn.lzx
openlaszlo/trunk/lps/components/lz/gridtext.lzx
Log:
Change 20080801-hqm-D by hqm at badtzmaru.home on 2008-08-01 01:50:11 EDT
in /Users/hqm/openlaszlo/trunk4
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fixes for grid in swf9
New Features:
Bugs Fixed: lpp-6722
Technical Reviewer: ptw
QA Reviewer: pbr
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
+ needed to declare some args on functions
+ bug in compiler with named children inside of states; they don't get declared as
instance vars of the parent class.
+ When LPP-6741 is fixed, the attribute name declarations in this patch which
represent the named child views of states will need to be removed, as they will
be automatically added by the tag compiler.
Tests:
examples/components/grid_example.lzx in swf9
Modified: openlaszlo/trunk/examples/components/grid_example.lzx
===================================================================
--- openlaszlo/trunk/examples/components/grid_example.lzx 2008-08-01 21:27:31 UTC (rev 10563)
+++ openlaszlo/trunk/examples/components/grid_example.lzx 2008-08-01 21:28:58 UTC (rev 10564)
@@ -34,7 +34,7 @@
<attribute name="datasel"
value="${ workdef == '1' ? 2 : 1 }"/>
- <method name="checkDataSel" args="v">
+ <method name="checkDataSel" args="v=null">
if ( !this._initcomplete ) return;
this.selectItem( datasel );
</method>
Modified: openlaszlo/trunk/lps/components/base/basegrid.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basegrid.lzx 2008-08-01 21:27:31 UTC (rev 10563)
+++ openlaszlo/trunk/lps/components/base/basegrid.lzx 2008-08-01 21:28:58 UTC (rev 10564)
@@ -12,6 +12,8 @@
the datacontext of the grid. -->
<attribute name="contentdatapath" value="*" type="string"/>
+ <attribute name="_selector" value="null"/>
+
<!--- Optional height for the rows contained by the grid. If no
value is given for this attribute, it will be set to the
calculated height of rows. -->
@@ -269,7 +271,7 @@
}
}
- if ( onselect ) this.onselect.sendEvent(item);
+ if ( this.onselect ) this.onselect.sendEvent(item);
]]>
</method>
Modified: openlaszlo/trunk/lps/components/base/basegridrow.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basegridrow.lzx 2008-08-01 21:27:31 UTC (rev 10563)
+++ openlaszlo/trunk/lps/components/base/basegridrow.lzx 2008-08-01 21:28:58 UTC (rev 10564)
@@ -12,6 +12,8 @@
<attribute name="focusable" value="true"/>
<attribute name="focustrap" value="true"/>
+ <attribute name="ownerGrid" value="null"/>
+
<attribute name="highlighted" value="false"/>
<attribute name="highlightColor" type="color" value="black"/>
<attribute name="selectedColor" type="color" value="black"/>
@@ -27,7 +29,7 @@
<attribute name="bgcolor"
value="${this.getBGColor( this.highlighted, this.selected )}"/>
- <method name="getBGColor" args="hi, sel">
+ <method name="getBGColor" args="hi=null, sel=null">
if ( this.selected ) return this.selectedColor;
if ( this.highlighted ) return this.highlightColor;
return this.regularColor;
Modified: openlaszlo/trunk/lps/components/lz/gridcolumn.lzx
===================================================================
--- openlaszlo/trunk/lps/components/lz/gridcolumn.lzx 2008-08-01 21:27:31 UTC (rev 10563)
+++ openlaszlo/trunk/lps/components/lz/gridcolumn.lzx 2008-08-01 21:28:58 UTC (rev 10564)
@@ -12,6 +12,9 @@
<!--- If set to false, the column cannot be resized. -->
<attribute name="resizable" value="true" type="boolean"/>
+ <attribute name="mybutton" value="null"/>
+ <attribute name="resizer" value="null"/>
+
<!--- If true, the column header is clickable and will initiate a
sort -->
<attribute name="sortable" type="boolean" value="true"/>
Modified: openlaszlo/trunk/lps/components/lz/gridtext.lzx
===================================================================
--- openlaszlo/trunk/lps/components/lz/gridtext.lzx 2008-08-01 21:27:31 UTC (rev 10563)
+++ openlaszlo/trunk/lps/components/lz/gridtext.lzx 2008-08-01 21:28:58 UTC (rev 10564)
@@ -49,6 +49,8 @@
<attribute name="focusable" value="${!editing &&
parent.editable}"/>
+ <attribute name="editbox" value="null"/>
+
<method name="init">
if ( parent.editable ){
this.editDel = new LzDelegate( this, 'startEditing' );
More information about the Laszlo-checkins
mailing list