[Laszlo-checkins] r336 - in sandbox/jgrandy: . presentationstate

jgrandy@openlaszlo.org jgrandy at openlaszlo.org
Wed Apr 26 19:34:26 EDT 2006


Author: jgrandy
Date: 2006-04-26 19:34:25 -0400 (Wed, 26 Apr 2006)
New Revision: 336

Modified:
   sandbox/jgrandy/presentationstate/presentationstate.lzx
   sandbox/jgrandy/testview.lzx
Log:
Further experimentation with presentation model pattern... the rest of the files

Modified: sandbox/jgrandy/presentationstate/presentationstate.lzx
===================================================================
--- sandbox/jgrandy/presentationstate/presentationstate.lzx	2006-04-26 23:34:14 UTC (rev 335)
+++ sandbox/jgrandy/presentationstate/presentationstate.lzx	2006-04-26 23:34:25 UTC (rev 336)
@@ -2,7 +2,8 @@
 
     <trait name="presentationstate">
     
-        <event name="onpresentationchanged"/>
+        <event name="onpresentationstatechanged"/>
+        <event name="onstylechanged"/>
         
     </trait>
 

Modified: sandbox/jgrandy/testview.lzx
===================================================================
--- sandbox/jgrandy/testview.lzx	2006-04-26 23:34:14 UTC (rev 335)
+++ sandbox/jgrandy/testview.lzx	2006-04-26 23:34:25 UTC (rev 336)
@@ -11,17 +11,18 @@
         <method name="construct" args="parent, args">
             super.construct(parent, args);
             this.model = this;
+            this.presentationstate = this;
             this.style = this;
         </method>
     </trait>
     
     <class name="intervalslider" 
            extends="sliderpresentation"
-           traits="presentationstate, pinnedvaluemodel, selfconnector"/>
+           traits="presentationstate, sliderdefaultstyle, pinnedvaluemodel, selfconnector"/>
 
     <class name="selectionslider"
            extends="sliderpresentation"
-           traits="presentationstate, singleselectionmodel, selfconnector"/>
+           traits="presentationstate, sliderdefaultstyle, singleselectionmodel, selfconnector"/>
            
     <intervalslider id="s" width="120" height="48">
         <attribute name="value" value="8"/>
@@ -30,8 +31,8 @@
     </intervalslider>
 
     <selectionslider id="t" width="120" height="48">
-        <attribute name="value" value="8"/>
-        <attribute name="domain" value="[0, 2, 4, 6, 8, 10]"/>
+        <attribute name="value" value="'apple'"/>
+        <attribute name="domain" value="['banana', 'apple', 'kiwi', 'orange']"/>
     </selectionslider>
 
     <simplelayout axis="y"/>



More information about the Laszlo-checkins mailing list