Revision: 3829
http://vexi.svn.sourceforge.net/vexi/?rev=3829&view=rev
Author: clrg
Date: 2010-03-30 16:02:48 +0000 (Tue, 30 Mar 2010)
Log Message:
-----------
Use static functions for traps
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-03-26 17:24:59 UTC (rev 3828)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/selectcontainer.t
2010-03-30 16:02:48 UTC (rev 3829)
@@ -18,17 +18,9 @@
thisbox.v_content = thisbox;
thisbox.v_listgroup;
- /** access to the group */
- thisbox.group ++= function() {
- return thisbox.v_listgroup;
- }
+ thisbox.group ++= static.groupRead;
+ thisbox.v_listgroup ++= static.listgroupWrite;
- /** 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;
@@ -67,6 +59,17 @@
</ui:box>
+ /** access to the group */
+ static.groupRead = function() {
+ return trapee.v_listgroup;
+ }
+
+ /** allow trapping/putting to selected */
+ static.listgroupWrite = function(v) {
+ cascade = v;
+ rdt..addRedirect(trapee, trapee.v_listgroup, "selected");
+ }
+
/** assign group and traps to children */
static.childrenAdded = function(c) {
cascade = c;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn