yozzeff schrieb:
hi,some sort of RFI (request for improvement). what about supplying the diverse Qx widgets with an renderer concept as seen for example in java swing? what i would like to do is somethin similar to this: function MyAmountRenderer() { } MyAmountRenderer.extend(QxRowRenderer, "MyAmountRenderer"); proto.render(_widget_row, _data_row) { if (_data_row.amount >= 0) { _widget_row.setBackground("white"); } else { _widget_row.setBackground("red"); } } var lc = { name : { label : "Name", width : 100, type : "text" }, amount: { label : "Amount", width : 50, type : "text", align : "right" } }; var ld = [ {name: "brad", amount: 50}, {name: "phil", amount: 70}, {name: "greg", amount: -30} ] var lv = new QxListView(ld, lc); lv.setRowRenderer(new MyAmountRenderer()); this would create a listview with 3 rows where the first 2 have a white background whereas the last one has a red one. of course the same could be done for all QxList, QxCombobox as well. the benefit if it would be a complete decoupling between data provider and data renderer and one could put any list of objects into the QxListView (for example any json transfered list).
There are already some ideas for cell-renderer. Some guys are already working on this concept. Any details already, Til? Probably you could work together to implement this in qooxdoo :)
Sebastian
yozzeff ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
