Hi,

 From what I saw in the code for setHeaderCellRenderer, it only modifies 
the Header Cell Renderer, after it has been created (i.e. the model 
initialized), and only on a column by column basis...

I actually needed is to initialize (create) all the cells from the same 
renderer (with the new filter field).

PF

On 10/17/2012 03:10 PM, Joe Stetzer wrote:
> Are you looking for "setHeaderCellRenderer" at
> http://demo.qooxdoo.org/2.0.2/apiviewer/#qx.ui.table.columnmodel.Basic~setHeaderCellRenderer
>  ?
>
> On Wed, Oct 17, 2012 at 9:45 AM, Paulo Ferreira <[email protected]
> <mailto:[email protected]>> wrote:
>
>     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]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
>
> ------------------------------------------------------------------------------
> 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
>



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