Re: child wrappers
Charles Goodwin <[email protected]> Wed, 9 Apr 2003 12:51:29 +0100
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <308906BE5D07D5119285009027D61C5722F6DC@NTFPS1> |
The read trap alternative to 'listen="x,y,z"' would be:
v.__x = function( dx ) {
if ( arguments.length ) return v.x;
else v.x = dx;
}
v.__y = function( dy ) {
if ( arguments.length ) return v.y;
else v.y = dy;
}
v.__z = function( dz ) {
if ( arguments.length ) return v.z;
else v.z = dz;
}
Check out xwt.standard.shared.lib.redirect in the mixdown cvs and you'll get
what I mean.
-----Original Message-----
From: Charles Goodwin [mailto:[email protected]]
Sent: 09 April 2003 12:47
To: '[email protected]'
Subject: Re: [xwt-dev] child wrappers
> Does that make sense?
Yes and it works well. :)
All the same, I do like the idea of a 'listen' syntax:
<redirect target="x" wrap="true" listen="x,y,z" />
Simply because it's so much less verbose than all the read trap method, and
it'd work for both wrap="true" and wrap="false".
_______________________________________________
http://lists.xwt.org/listinfo/dev
_______________________________________________
http://lists.xwt.org/listinfo/dev