// now that we have calculated the size of each column we can make a
// second pass over the TransTable to convert all percentages to
// pixels
for (int row = 0; row < table.getCellRows(); row++) {
for (int col = 0; col < table.getCellCols(); col++) {
TransCell cell = table.getCell(row, col);
if (cell != null) {
Element element = cell.getElement();
processWidthAttribute(element, tableWidth);
// finally if the cell is represents a nested table then we
// need to process it
if (cell.getTable() != null) {
// calculation
transformPercentagesToPixels(cell.getTable(),
columnWidths[col]);
}
}
}
}