On Wed, May 25, 2011 at 22:57, <[email protected]>wrote:
>
> I've subclassed the abstract table model, and the subclass holds an array
> of items that are represented by rows in the table.
>
> When that array gets updated, or when one of the items in the array
> changes, I fire a "dataChanged" event which prompts the table to re-render
> the area of the table that has changed.
>
> I believe this is how it's intended to be used? it certainly works.
>
Yes, the table model is supposed to do that. When the table model (some
subclass of qx.ui.table.model.Abstract) fires the "dataChanged" event. The
qx.ui.table.Table object receives the event, and calls a function requesting
that the set of rows specified in the event data be updated. The listener
function looks like this:
_onTableModelDataChanged : function(evt)
{
var data = evt.getData();
this._updateTableData(
data.firstRow, data.lastRow,
data.firstColumn, data.lastColumn,
data.removeStart, data.removeCount
);
},
There is no provision for null. The event data is expected to contain a
valid map.
Please file an issue in bugzilla for this. The documentation for dataChanged
should instead say,
"The data property of the event will contain a map having the following
attributes..."
and should mention, additionally, that when rows are being removed, the
members removeStart and removeCount are included as well.
Derrell
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel