On Thu, Oct 18, 2012 at 7:02 AM, Paulo Ferreira <[email protected]> wrote:
>
> As you can see:
> 1. One possible solution was to override, the qooxdoo "class static"
> member qx.ui.table.columnmodel.Basic.DEFAULT_HEADER_RENDERER
>
This is exactly the right way to do it. The reason that there is a static
variable there that defines the default header renderer, rather than just
use qx.ui.table.headerrenderer.Default directly in the init() function, is
so that the user can override it. It's a rare use case, so it's not part of
the *custom* map that's passed to the Table constructor, but it's perfectly
reasonable to override that default value.
> 2. The other was to simply ignore that __headerRenderer is a "private
> member".
>
Nope, that won't work. It'll appear to work in the "source" version of your
app, but when you do a "generate.py build" all private members' names are
obfuscated, and references to that private variable from outside of the
class in which it is defined will break.
Cheers,
Derrell
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel