On Tue, Oct 27, 2009 at 23:23, Gene Amtower <[email protected]> wrote:

>  Derrell,
>
> I just had to try the Playground code for the first time, and that's really
> neat!  But, doesn't your code just provide a list of the properties names
> for a given class, rather than the properties and values of an instance of a
> class?  I think that's what he was looking to get in the map output.
>
> You know, like:
>
> allowShrinkY:true
> allowShrinkX:false
> etc.
>
> Well I am enumerating the values of the properties, but you're right that
what I've done may not be what Christian is looking for. Since these
functions take a class as parameter rather than an instance, they can't
possibly provide a particular instance's property values. Maybe the inside
of the loop should contain calls akin to this:

var propGet = "myObjectInstance.get" + upperFirstChar(list[i]) + "()";
map[list[i]] = eval(propGet);

There is a method someplace that converts the first character to upper case,
what the above upperFirstChar() does. I think it's used in qx/Class.js or
qx/core/Property.js, but since I don't have the qooxdoo source in front of
me, I can't currently provide details.

Derrell
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to