Hi Alexander,

thanks to you as well.

Cheers,
Fritz

On Wed, 19 May 2010, Alexander Steshenko wrote:

> It works so perfectly. Not even necessary an array if it's just one mixin.
> Like here is one of mine:
>
> qx.Class.define("desktopforum.view.ForumsList",
> {
>  extend : qx.ui.form.List,
>
>  include : desktopforum.view.ControlledView,
>
>  construct : function()
>  {
>    // Configuring the window
>    this.set({width: 300, height: 300});
>
>    // View <=> Controller
>    this.getController().setTarget(this);
>  }
> });
>
>
> On Wed, May 19, 2010 at 10:38 PM, Derrell Lipman <
> [email protected]> wrote:
>
>>
>> Cool.
>>>
>>> Now, if this would also be possible ....
>>>
>>>  qx.Class.define("my.classA", {
>>>      extend : qx.ui.window.Window,
>>>   construct : function() {
>>>        this.base(arguments);
>>>        qx.Class.include(my.classA, my.UtilMixin);
>>>
>>> ... I'd have a generic "include" mechanism for my own classes. But I fear
>>> that my.classA would first have to be completely defined, before the mixin
>>> can happen?
>>>
>>
>> Stop dreaming. You can do exactly that. Or, how about:
>>
>>   qx.Class.define("my.classA", {
>>      extend : qx.ui.window.Window,
>>      include : [my.UtilMixin],
>>      ...
>>
>> That should work fine, I think, although I've never tried it that way.
>> Mixins are included all over the core code that way.
>>
>> Derrell
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>
>
>

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to