For editing of my table cells I use the click event. For an boolean column I
can click and set the value of the opposite value.

if(this.getTableColumnModel ().getDataCellRenderer(column) instanceof
qx.ui.table.BooleanDataCellRenderer){
        var value = table.getTableModel ().getValue(column,row);
        if(value == true)
            value = false;
        else if(value == false)
            value = true;
        table.getTableModel().setValue(column,row,value);
}

Everything works file until I make a doubleclick.
Then the value "false" or "true" appears and after leaving the cell is
empty.
How can I avoid the doubleclick event? Or is it necessary to have a
CellEditorFactory? If this is the case, please could you give me help how to
write one. I'm confused about this.

Thank you.
-- 
View this message in context: 
http://www.nabble.com/table-doubleclick-event%2C-boolean-column-and-setCellEditorFactory-tf3871257.html#a10967908
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to