for ( int iRow = 0; iRow < model.getData().size(); iRow++ ) {
data.addRow();
}
// Static columns, Row#
BaseColumn rowNumberCol = model.getRowNumberCol();
DynamicColumn<BaseColumn> rowNumberColumn = new DynamicColumn<BaseColumn>( rowNumberCol,
cellFactory.getCell( rowNumberCol ),
colIndex,
true,
false,
eventBus );
rowNumberColumn.setWidth( 24 );
columns.add( rowNumberColumn );
data.addColumn( colIndex,
makeRowNumberColumnData( model,
rowNumberCol,
colIndex++ ),
true );
// Static columns, Description
BaseColumn descriptionCol = model.getDescriptionCol();
DynamicColumn<BaseColumn> descriptionColumn = new DynamicColumn<BaseColumn>( descriptionCol,
cellFactory.getCell( descriptionCol ),
colIndex,
eventBus );
columnWidth = descriptionCol.getWidth();
descriptionColumn.setWidth( columnWidth <= 0 ? defaultColumnWidth : columnWidth );
columns.add( descriptionColumn );
data.addColumn( colIndex,
makeColumnData( model,