Here is something I don't understand:
qx.Class.include(qx.ui.form.List,qx.io.databinding.MDataManager);
for (var i in qx.ui.form.List)
qx.core.Log.error(i + ": " + qx.ui.form.List[i]);
I get the following list:
$$original: function () { <snip/>}
classname: qx.ui.form.List
name: anonymous
basename: List
toString: function () { return "[Class " + this.classname + "]"; }
prototype: [object qx.ui.form.List]
superclass: [Class qx.ui.layout.VerticalBoxLayout]
constructor: [Class qx.ui.form.List]
$$destructor: function () { this._disposeObjects("_manager"); }
$$properties: [object Object]
$$includes: [Mixin qx.io.databinding.MDataManager]
$$flatIncludes: [Mixin qx.io.databinding.MDataManager]
I am always amazed and surprised once I dive into the internals of
qooxdoo... where are all the getter and setter methods here? why don't
they show up if I do a "for (.. in..)" loop?
C.
Christian Boulanger schrieb:
> Any ideas about this problem? At the moment I am not even getting the
> first option working, so everything might be a problem of my code. Has
> anyone else ever combined mixins and inheritance? Thanks, C.
>
> Christian Boulanger schrieb:
>
>> if I am including the mixin like so:
>>
>> qx.Class.include(qx.ui.basic.Label,qx.io.databinding.MDataManager);
>>
>> everything works. However, trying to achieve the same with
>>
>> qx.Class.include(qx.core.Target,qx.io.databinding.MDataManager);
>>
>> fails. It seems I have to manually include the mixin into each class I
>> want to use it with.
>>
>> No messages in the debug log.
>>
>> It would be great if this could be fixed.
>>
>> Thanks,
>>
>> Christian
>>
>>
>>
>> Sebastian Werner schrieb:
>>
>>
>>> Mixins should work together with inheritance. So I would think that
>>> "Label" should share the methods and properties with "Target".
>>> Otherwise it may be a bug. Are sure you don't get any error
>>> informations. Any messages in the debug log?
>>>
>>> Sebastian
>>>
>>>
>>>
>>> Am 29.04.2007 um 12:01 schrieb Christian Boulanger:
>>>
>>>
>>>
>>>
>>>> Does a runtime mixin include only work for the present class or
>>>> also for
>>>> the subclasses of the class?
>>>>
>>>> In my case, I add a mixin programmatically at runtime:
>>>>
>>>> qx.Class.include(qx.core.Target,qx.io.databinding.MDataManager);
>>>>
>>>> but qx.ui.basic.Label doesn't seem to have the methods provided by the
>>>> mixin, even though it inherits from qx.core.Target. Is this intended
>>>> behaviour or am I doing something wrong?
>>>>
>>>> Christian
>>>>
>>>>
>>>>
>>>>
>>>> [EMAIL PROTECTED] schrieb:
>>>>
>>>>
>>>>
>>>>> Christian Boulanger <[EMAIL PROTECTED]> writes:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> [EMAIL PROTECTED] schrieb:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Christian Boulanger <[EMAIL PROTECTED]> writes:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>> You can define a mixin with the desired property and include
>>>>>>>>> the mixin at
>>>>>>>>> runtime into any class you want.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> but I forgot to ask: how is this done exactly? I haven't found
>>>>>>>> any example
>>>>>>>> or documentation for this on the qooxdoo website.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>> <snip/>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> And then to add this mixin to your class, you either (a) use
>>>>>>> qx.Class.include
>>>>>>> or (b) add an "include" property to your class configuration.
>>>>>>>
>>>>>>> Option (a):
>>>>>>>
>>>>>>> qx.Class.include(my.TestClass, my.MDebug);
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> This was what I was looking for. Option b) is used in many
>>>>>> qooxdoo classes and
>>>>>> therefore well-tested. I'll add this to the wiki as soon as I get
>>>>>> to it.
>>>>>>
>>>>>> Many thanks, Derrell!
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> Glad to help.
>>>>>
>>>>> BTW, you can see this method in action in the TreeVirtual_*.html
>>>>> example
>>>>> files.
>>>>>
>>>>> Derrell
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> ----
>>>>> This SF.net email is sponsored by DB2 Express
>>>>> Download DB2 Express C - the FREE version of DB2 express and take
>>>>> control of your XML. No limits. Just data. Click to get it now.
>>>>> http://sourceforge.net/powerbar/db2/
>>>>> _______________________________________________
>>>>> qooxdoo-devel mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>>
>>>>>
>>>>>
>>>>>
>>>> ----------------------------------------------------------------------
>>>> ---
>>>> This SF.net email is sponsored by DB2 Express
>>>> Download DB2 Express C - the FREE version of DB2 express and take
>>>> control of your XML. No limits. Just data. Click to get it now.
>>>> http://sourceforge.net/powerbar/db2/
>>>> _______________________________________________
>>>> qooxdoo-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>
>>>>
>>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>
>>>
>>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel