for (final T t : data) {
int col = 0;
// listView.insertRow(rowCount);
for (final ListColumnDescriptor<T, ?> field : listFields) {
if (!field.isViewable()) continue;
final IsPWidget renderCell = field.renderCell(rowIndex, t);
if (debugID != null) {
String headerCaption;
if (field.getHeaderCellRenderer().getCaption() != null) {
headerCaption = field.getHeaderCellRenderer().getCaption();
} else {
headerCaption = String.valueOf(col);
}
renderCell.asWidget().ensureDebugId(debugID + "[" + rowIndex + "][" + headerCaption + "]");
}
listView.addWidget(renderCell, col++, rowIndex);
}
listView.addWidget(new PSimplePanel(), col, rowIndex);
listView.addRowStyle(rowIndex, PonySDKTheme.SIMPLELIST_ROW);