This is by design because functions of a Mixin might be used in completely
different classes. The base call implemention relies on a property on the
function which could not be applied for mixins as these methods are shared
between different classes and do not have a super class. This applies to all
reference type elements in a Mixin. These are shared between all classes
which includes that mixin.
You can still call any other methods from anywhere manually, but I do not
think that there is any well working option or even idea how this could be
solved (while still making sense) ;)
BTW: A mixin somehow also has no super() as it do not extends from an
existing class. There is not such a pattern in Java so it might be hard to
find a good match.

Cheers,
Sebastian



2009/5/6 Christian Schmidt <[email protected]>

> Doh! I have no idea. I have to talk to Fabian, but I can do this not
> until tomorrow.
>
> Perhaps, Sebastian or someone else have any idea.
>
> I'm sorry,
> Chris
>
> Matthew Gregory schrieb:
> > I don't think that will work, I've tried patching Mixins before and it
> > doesn't work.
> >
> > Christian Schmidt wrote:
> >
> >> Hi Matt,
> >>
> >> I'm not sure, but the using from qx.Class.patch() [1] could help in your
> >> case.
> >>
> >> Call this method so early as possible, e.q. in the Application.js with
> >> the new mixin that should override the "addState" method.
> >> qx.Class.patch(qx.ui.core.Widget, custom.MyMixin);
> >>
> >> If you have any problems, please ask.
> >>
> >> Cheers,
> >> Chris
> >>
> >> [1] http://demo.qooxdoo.org/current/apiviewer/#qx.Class~patch
> >>
> >> Matthew Gregory schrieb:
> >>
> >>> Hi,
> >>> Currently this.base doesn't work from within a mixin. This looks like
> it
> >>> is by design. From qx.class.__addMixin:
> >>>
> >>> if (entry.$$members) {
> >>>    this.__addMembers(clazz, entry.$$members, patch, patch, patch);
> >>>
> >>> The last parameter allows qx.Class to attach "base" to the function,
> but
> >>> it is always false for Mixins.
> >>>
> >>> Is this by design, if so why?
> >>>
> >>> I have a mixin that helps with our GUI, it needs to override
> >>> add/removeState. I can workaround the problem for now by manually doing
> >>> this in the Mixin c'tor, but i need a better solution.
> >>>
> >>> this.addState.base = qx.ui.core.Widget.prototype.addState;
> >>>
> >>> TIA,
> >>> Matt
> >>>
> >>>
> >>>
> ------------------------------------------------------------------------------
> >>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances!
> Your
> >>> production scanning environment may not be a perfect world - but thanks
> to
> >>> Kodak, there's a perfect scanner to get the job done! With the NEW
> KODAK i700
> >>> Series Scanner you'll get full speed at 300 dpi even with all image
> >>> processing features enabled. http://p.sf.net/sfu/kodak-com
> >>> _______________________________________________
> >>> qooxdoo-devel mailing list
> >>> [email protected]
> >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >>>
> >>>
> >>
> ------------------------------------------------------------------------------
> >> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> >> production scanning environment may not be a perfect world - but thanks
> to
> >> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> >> Series Scanner you'll get full speed at 300 dpi even with all image
> >> processing features enabled. http://p.sf.net/sfu/kodak-com
> >>
> >
> >
> >
> ------------------------------------------------------------------------------
> > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> > production scanning environment may not be a perfect world - but thanks
> to
> > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> > Series Scanner you'll get full speed at 300 dpi even with all image
> > processing features enabled. http://p.sf.net/sfu/kodak-com
> > _______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
>
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to