switch ( iRow ) {
case 0:
// General row, all visible cells included
for ( int iCol = 0; iCol < visibleCols.size(); iCol++ ) {
DynamicColumn<BaseColumn> col = visibleCols.get( iCol );
BaseColumn modelCol = col.getModelColumn();
tce = DOM.createTD();
tce.addClassName( resources.headerText() );
tre.appendChild( tce );
// Merging
int colSpan = 1;
int width = col.getWidth();
if ( modelCol instanceof BRLVariableColumn ) {
BRLVariableColumn brlColumn = (BRLVariableColumn) col.getModelColumn();
BRLColumn<?, ?> brlColumnParent = model.getBRLColumn( brlColumn );
while ( iCol + colSpan < visibleCols.size() ) {
DynamicColumn<BaseColumn> mergeCol = visibleCols.get( iCol + colSpan );
BaseColumn mergeModelCol = mergeCol.getModelColumn();
if ( !( mergeModelCol instanceof BRLVariableColumn ) ) {
break;
}
BRLVariableColumn mergeBRLColumn = (BRLVariableColumn) mergeModelCol;
BRLColumn<?, ?> mergeBRLColumnParent = model.getBRLColumn( mergeBRLColumn );