// 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 < widget.visibleCols.size() ) {
DynamicColumn<BaseColumn> mergeCol = widget.visibleCols.get( iCol + colSpan );
BaseColumn mergeModelCol = mergeCol.getModelColumn();
if ( !( mergeModelCol instanceof BRLVariableColumn ) ) {
break;
}
BRLVariableColumn mergeBRLColumn = (BRLVariableColumn) mergeModelCol;
BRLColumn<?, ?> mergeBRLColumnParent = model.getBRLColumn( mergeBRLColumn );
if ( mergeBRLColumnParent != brlColumnParent ) {
break;
}
width = width + mergeCol.getWidth();