On 8/12/07, Jim Hunter <[EMAIL PROTECTED]> wrote:
>
> So over-riding the current functionality of an object may not be a good
> idea, but what do I do when I need to do it? I need to ever-ride the way a
> table handles _updateStatusBar. I was able to do it with .6.5 by simply
> creating a new method for it and applying it to the Proto of the table, but
> I haven't found a way to do it yet in .7.1 so currently I have that
> functionality disabled. What I am doing is changing the message that is
> displayed on the bottom of the table. What is the official way to do this?
>
If you're writing a subclass, you can just have a method of the same name in
your subclass and it will override the superclass' method of that name. If
you want to call the superclass' method from your subclass' method, you call
this.base(arguments).
If you're trying to override the method using a mixin by calling
qx.Class.include(), it'll complain at you because you're likely to break
something by doing that. If you really, really, really know what you're
doing and want to override a method from a mixin, then call qx.Class.patch()
instead of qx.Class.include().
Derrell
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel