On Fri, Feb 10, 2012 at 08:26, Jeroen Smit <jeroen.s...@ortec.com> wrote:
> Hi,****
>
> ** **
>
> I am using Qx 1.4.1 and I am currently trying to use cell editors.****
>
> When looking at the code in setCellEditorFactory in columnmodel\Basic.js I
> noticed the following statements in that function:****
>
> ** **
>
> var oldRenderer = this.__columnDataArr[col].headerRenderer;****
>
> if (oldRenderer !== this.__editorFactory) {****
>
> oldRenderer.dispose();****
>
> }****
>
> ** **
>
> It seems to be a copy of the content of setDataCellRenderer and that the
> code should do something with “this.__columnDataArr[col].editorFactory”.**
> **
>
> Is that correct?
>
Actually, I believe it is correct. this.__headerRenderer holds the one and
only copy of the qx.ui.table.columnmodel.Basic.DEFAULT_HEADER_RENDERER()
which is used by default for all columns. That test is ensuring that only
renderers which were explicitly set by the user get disposed, and not this
default one which is in use by many columns.
Derrell
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel