Question 1: What creates the get<Property> functions? I frequently see this: QxFoo.addProperty({name:"bar", type:QxConst.TYPEOF_NUMBER});
Later I see this code: var foo = QxFoo(); foo.setBar("bar"); When I grep for setBar I can't find it. Does addProperty automatically create getters/setters? When I try this on my own objects I have to hand code the getters and setters. Where is the magic? Question 2: How can I use the shorthand setters on properties for my own objects? For the Qooxdoo UI components this works: var qta = new QxAtom("foo"); qta.set({top:10, right:10, width:"70%"}); // shorthand notation? When I create my own properties on objects though I must use: var my_object = new myFoo(); myFoo.top = 10; myFoo.right=10); // these work though but I would rather use the .set "shorthand" myFoo.set({top:10, right:10}) // generates an error! How do you configure the properties to allow the shorthand notation? Please not top and right are delcared via .addProperties in the underlying object definition. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Qooxdoo-devel mailing list Qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel