2008/8/16 Petr Kobalíček <[EMAIL PROTECTED]>
> I'm analyzed cellInfo an it's cellInfo.rowData :)
>
> 2008/8/17 Petr Kobalíček <[EMAIL PROTECTED]>:
> > Hi,
> >
> > How to access other columns from custom cell renderer?
>
The cellInfo object contains a bunch of useful data, and it's slightly
misnamed. It contains at least these members (I may have missed a few while
perusing the source code to create this list):
- table -- the table object
- row -- the row number
- col -- the column number
- selected -- whether this row is selected
- focusedRow -- whether this row is focused
- xPos -- the position of this column in the current column ordering
- editable -- whether this column is editable
- focusedCol -- whether this cell is focused
- styleLeft -- the offset from the left, in pixels, of this column
- styleWidth -- the width of this cell
- styleHeight -- the height of this row (currently a constant)
- rowData -- this is what you're looking for. It contains what
tableModel.getRowData(row) returns
And given that you have the table object, you can obtain just about anything
else you might need.
Most of that is documented in the interface for a cell renderer:
qx.ui.table.ICellRenderer.createDataCellHtml().
Cheers,
Derrell
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel