On Wed, Sep 10, 2008 at 8:10 AM, Rüdiger Herrmann
<[EMAIL PROTECTED]>wrote:

>
> maybe you know what's wrong with my next step, too...
>
> I back-ported the qx.Class.patch function (appeared to be the only
> change between 0.7.3 and latest from the 0.7.x legacy branch).
>
> Then I created a class (see code below) that contains one function
> (_idealKeyHandler) that should 'override' the one in
> qx.event.handler.KeyEventHandler. The defer-function calls the
> patch-method.
>
> Any idea what is missing?
>
> Thanks
> Rüdiger
>
> ------------- Code ----------------
> qx.Class.define( "org.eclipse.rwt.KeyEventPatch",
> {
>   extend : qx.core.Object,
>
>   members : {
>      _idealKeyHandler : function( keyCode, charCode, eventType,
> domEvent ) {
> this.debug( "Patched keyHandler" );
>
>       this.base( arguments );
>     }
>
>   },
>
>   defer : function( statics, members, properties ) {
>     qx.Class.patch( qx.event.handler.KeyEventHandler,
>                     org.eclipse.rwt.KeyEventPatch );
>   }
> } );
>

I think this is the documentation you're looking for:
http://qooxdoo.org/documentation/0.8/mixins
You use the include() or patch() methods on a defined Mixin, not a defined
Class.  That documentation should lead you right through everything you need
to know.

Cheers,

Derrell
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to