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
