Re: [qooxdoo-devel] Value of inherited property

2007-10-03 Thread dperez
; widget.getEnabled() and widget.get("enabled") return the same value (which > is reassuring). Perhaps -- if dperez has a good use case -- there's a > justification for a "getRaw" method or similar? > -- > T.J. Crowder > tj at crowder software dot com >

Re: [qooxdoo-devel] Value of inherited property

2007-10-02 Thread T.J. Crowder
uring). Perhaps -- if dperez has a good use case -- there's a justification for a "getRaw" method or similar? -- T.J. Crowder tj at crowder software dot com ----- Original Message - From: "dperez" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 02, 2007 12:18 PM Subje

Re: [qooxdoo-devel] Value of inherited property

2007-10-02 Thread dperez
I know the path I've taken isn't public API, and have its risks. I have a widget that can be disabled directly because some other widget, from which it depends, isn't available. It can also be disabled if the parent widget is disabled (inside a CheckGroupBox). Sebastian Werner wrote: > > Not t

Re: [qooxdoo-devel] Value of inherited property

2007-10-02 Thread Sebastian Werner
Not to mention that this code is generated and that the values are private. You shouldn't access these directly. You are warned ;) There is currently no way to detect if the value comes from the inheritance or from a local value. In all cases I know this also makes not really sense. What is

Re: [qooxdoo-devel] Value of inherited property

2007-10-01 Thread dperez
Here is the code for the getEnabled function: function getEnabled(value) { if (this.__inherit$enabled !== undefined) { return this.__inherit$enabled; } else if (this.__user$enabled !== undefined) { return this.__user$enabled; } else { return this.__init$enabled; } }

Re: [qooxdoo-devel] Value of inherited property

2007-10-01 Thread T.J. Crowder
gt; To: Sent: Monday, October 01, 2007 3:01 PM Subject: Re: [qooxdoo-devel] Value of inherited property > > Thanks Crowder for your info, but still don't know how to tell the > difference. > > > T.J. Crowder wrote: >> >> Hi, >> >> Total Qooxdoo noob

Re: [qooxdoo-devel] Value of inherited property

2007-10-01 Thread dperez
Thanks Crowder for your info, but still don't know how to tell the difference. T.J. Crowder wrote: > > Hi, > > Total Qooxdoo noob here, but > http://qooxdoo.org/documentation/0.7/properties > has this info which may or may not help: > > "The apply method may optionally be defined for each pr

Re: [qooxdoo-devel] Value of inherited property

2007-10-01 Thread T.J. Crowder
Hi, Total Qooxdoo noob here, but http://qooxdoo.org/documentation/0.7/properties has this info which may or may not help: "The apply method may optionally be defined for each property you add to your class. As soon as you define a key "apply" in your property declaration map the method gets au