Revision: 3771
          http://vexi.svn.sourceforge.net/vexi/?rev=3771&view=rev
Author:   jeffbuhrt
Date:     2010-01-07 22:39:11 +0000 (Thu, 07 Jan 2010)

Log Message:
-----------
Calendar on Date Widget demo/testing. Note the text/value traps or a getter 
need to be reviewed. $date.text changes when manually input, but not when 
clicked.

Added Paths:
-----------
    trunk/widgets/org.vexi.demo/src/org/vexi/demo/feature/widgets_misc2.t

Added: trunk/widgets/org.vexi.demo/src/org/vexi/demo/feature/widgets_misc2.t
===================================================================
--- trunk/widgets/org.vexi.demo/src/org/vexi/demo/feature/widgets_misc2.t       
                        (rev 0)
+++ trunk/widgets/org.vexi.demo/src/org/vexi/demo/feature/widgets_misc2.t       
2010-01-07 22:39:11 UTC (rev 3771)
@@ -0,0 +1,51 @@
+<!-- Copyleft 2004 The Vexi Project [LGPL] -->
+
+<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="vexi.widget"
+    xmlns:demo="org.vexi.demo" xmlns:lay="vexi.layout" 
xmlns:role="org.vexi.lib.role">
+    
+    static.name = "Widgets (Misc 2)";
+    static.category = "Widgets";
+    
+    <lay:pad orient="vertical" padding="3">
+        <lay:grid cols="4">
+               <ui:box text="Datefield: " shrink="true"/>
+               <datefield id="date" />
+        
+               <ui:box text="Change the date format: " shrink="true" />
+               <option id="dateformat" >
+                       <item text="DDMMYYYY" value="DDMMYYYY"/>
+                       <item text="MMDDYYYY" value="MMDDYYYY"/>
+                       <item text="YYYYMMDD" value="YYYYMMDD"/>
+               </option>
+               
+               <ui:box/>
+               <ui:box/>
+
+               <ui:box shrink="true" text="Change the date value: " />
+               <textfield id="datevalue" align="left" width="100" />
+ 
+        </lay:grid>
+        <ui:box/>
+        
+        <separator margin="10" vshrink="true" />
+        <ui:box/>
+        
+        $dateformat.value ++= function(v) {
+               $date.textformat = v;
+               cascade = v;
+        }
+        
+        $datevalue.text ++= function(v) {
+               $date.value = $datevalue.text;
+        }
+        
+        $date.text ++= function(v) {
+               cascade = v;
+               vexi.log.info("$date.text:" + $date.text);
+        }
+        $date.value ++= function(v) {
+               cascade = v;
+               vexi.log.info("$date.value:" + $date.value);
+        }
+    </lay:pad>
+</vexi>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to