Revision: 3804
          http://vexi.svn.sourceforge.net/vexi/?rev=3804&view=rev
Author:   jeffbuhrt
Date:     2010-02-17 18:50:23 +0000 (Wed, 17 Feb 2010)

Log Message:
-----------
allow using selected on a selectgroup (vs having to use a 
myradio.group.selected), also allow reading the group

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/selectcontainer.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/selectcontainer.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/selectcontainer.t      
2010-02-17 18:48:16 UTC (rev 3803)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/selectcontainer.t      
2010-02-17 18:50:23 UTC (rev 3804)
@@ -1,6 +1,6 @@
 <!-- Copyright 2009 - see COPYING for details [LGPL] -->
 
-<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="org.vexi.lib.role">
+<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="org.vexi.lib.role" 
xmlns:rdt="vexi.util.redirect" >
     <meta:doc>
         <author>Charles Goodwin</author>
         <desc>
@@ -18,6 +18,17 @@
         thisbox.v_content = thisbox;
         thisbox.v_listgroup;
         
+        /** access to the group */
+        thisbox.group ++= function() {
+               return thisbox.v_listgroup;
+        }
+        
+        /** allow trapping/putting to selected */
+        v_listgroup ++= function(v) {
+               cascade = v;
+               rdt..addRedirect(thisbox, thisbox.v_listgroup, "selected");
+        }
+        
         /** select the first available item in the list */
         thisbox.selectFirst = function() {
             var group = v_listgroup;


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

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to