// An empty cell .. ignore
continue;
}
// A empty cell with a defined background ..
final Cell cell = getCellAt(col, row);
final CellStyle style =
getCellStyleProducer().createCellStyle(null, null, background);
if (style != null)
{
cell.setCellStyle(style);
}
continue;
}
if (content.isCommited() == false)
{
throw new InvalidReportStateException("Uncommited content encountered");
}
final long contentOffset = contentProducer.getContentOffset(row, col);
final TableRectangle rectangle = sheetLayout.getTableBounds
(content.getX(), content.getY() + contentOffset,
content.getWidth(), content.getHeight(), null);
if (rectangle.isOrigin(col, row) == false)
{
// A spanned cell ..
continue;
}
final CellBackground fastBackground = cellBackgroundProducer.getBackgroundForBox
(logicalPage, sheetLayout, rectangle.getX1(), rectangle.getY1(),
rectangle.getColumnSpan(), rectangle.getRowSpan(), false, sectionType, content);
// export the cell and all content ..
final Cell cell = getCellAt(col, row);
final CellStyle style =
getCellStyleProducer().createCellStyle(content.getInstanceId(), content.getStyleSheet(), fastBackground);
if (style != null)
{
cell.setCellStyle(style);
}
if (applyCellValue(content, cell, sheetLayout, rectangle, contentOffset))
{
mergeCellRegion(rectangle, row, col, sheetLayout, logicalPage, content, contentProducer);