Hi,

I've come across a strange situation.

I wanted to create a Table with a Text Field in the Column Header and 
came across the following piece of code in qooxdoo 2.0.2.

In the init member "qx.ui.table.columnmodel.Basic", I found the 
following piece of code:

var headerRenderer = this.__headerRenderer ||  (this.__headerRenderer = 
new qx.ui.table.columnmodel.Basic.DEFAULT_HEADER_RENDERER());

Easy enough to understand (i.e. if the __headerRenderer is not set, use 
the default Default Renderer. Okay..

What I don't understand, since I was not able to find any code to the 
contrary, is under what conditions would __headerRenderer would be set?

I couldn't find any code in the class, to modify the value, and by 
qooxdoo class logic __headerRenderer is private!?

I was looking for a way to set this value, as the only (seemingly 
logical) solution I found, to modify the Renderer to be used for the 
Header Cell, was to create a derived class, that modifies the value 
"qx.ui.table.columnmodel.Basic.DEFAULT_HEADER_RENDERER" in the 
constructor (actually not a very logical solution, as it modifies a 
"class static" variable...)

ex:
qx.ui.table.columnmodel.Basic.DEFAULT_HEADER_RENDERER = 
tc.table.headerrenderer.Filtered;

 From the source it seems that this.__headerRenderer should have some 
setter function, but none exists.

Is this the expected behavior?

TIA
PF


------------------------------------------------------------------------------
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

Reply via email to