{
cellNode = cellNode.getNext();
continue;
}
TableCellRenderBox cellBox = (TableCellRenderBox) cellNode;
// we got a cell. Now check our info-struct ..
if (cellPosition >= prevInfoStruct.getCellCount())
{
cellBox.setColumnIndex(cellPosition);
cellPosition = validateSafeCellPos(cellBox, infoStruct, cellPosition);
}
else
{
cellPosition = findCellPosition(cellPosition, prevInfoStruct, infoStruct);
// OK, so we have the insertation point. Lets add our cell there ..
final int colSpan = cellBox.getColSpan();
final int rowSpan = cellBox.getRowSpan();
DataCell dataCell = new DataCell
(rowSpan, colSpan, cellBox.getInstanceId());
infoStruct.addCell(dataCell);
cellBox.setColumnIndex(cellPosition);
cellPosition += 1;
for (int i = 1; i < colSpan; i++)
{
// if there's a previous cell at the current position - check it