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
>
>
--
Alexander Steshenko | http://lcf.name
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel