Hi,
I have been trying to create a very simple CellRenderer instead of using
the ones that come with qooxdoo, by passing a simple object with the
createDataCellHtml method. Something like:
table.getTableColumnModel().setDataCellRenderer(2, {
createDataCellHtml : function(a, b) { // do stuff }
})
This object complies with the ICellRenderer interface, which is what the
TableColumnModel is expecting, but for some reason
the qx.ui.table.pane.Pane is assuming it's a
qx.ui.table.cellrenderer.Abstract and thus I get an error because the
getDefaultCellStyle method doesn't exist.
This can be seen here:
https://github.com/qooxdoo/qooxdoo/blob/master/framework/source/class/qx/ui/table/pane/Pane.js#L567
getDefaultCellStyle is not a method of the interface, it's defined in the
Abstract cell renderer.
Of course if I return an empty style it looks very bad (not even in the
right place), so my guess is that I should extend the Abstract cell
renderer rather than just implement the interface.
If this is the case I think the documentation should be a bit clearer and
indicate that the TableColumnModel actually expects a
qx.ui.table.cellrenderer.Abstract, since passing just a class that complies
the ICellRenderer will cause an error.
Cheers!
--
Román Jiménez
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel