I have a myTable class extended from qx.ui.table.Table.

1.
Its first column is set to boolean cell renderer:
this.getTableColumnModel().setDataCellRenderer(1, new
qx.ui.table.cellrenderer.Boolean());

2.
It has a property "checkboxEnabled" : 
{
    apply : "_applyCheckboxEnabled",
    check : "Boolean"
}

3. The apply function:
        _applyCheckboxEnabled : function(value)
        {        
            var cellRenderer =
this.getTableColumnModel().getDataCellRenderer(1);
            if (value)
            {
                cellRenderer.set(
                {
                    iconFalse :
"qx/decoration/Modern/table/boolean-false.png",
                    iconTrue  :
"qx/decoration/Modern/table/boolean-true.png"
                });
            }
            else
            {
                cellRenderer.set(
                {
                    iconFalse :
"myApp/decoration/table/checkbox-disabled.png",
                    iconTrue  :
"myApp/decoration/table/checkbox-checked-disabled.png"
                });
        }

The problem is:
When the checkboxEnabled is toggled the icons don't change.
But when a column is resized, moved or sorted in the table the icons change
to the actual state.

There should have be an update/refresh/flush function but I couldn't find
it.
Could anybody help with this?
Thank you.
       

-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/cellrenderer-Boolean-change-the-icons-in-runtime-bug-tp5069023p5069023.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to