protected void buildRowBody(RangeProcessor rowRange, int row, int col) throws ReportException {
Map rowModel = rowRange.getModel();
//шапка закончена - дорисовываем ячейки
for(RangeProcessor range: colsFlat) {
CellProcessor cell = table.getCell(range, rowRange);
Map cellModel = rowModel;
Map colModel = range.getModel();
if(colModel != null) {
if(cellModel != null) {
cellModel = new HashMap(cellModel);
cellModel.putAll(colModel);
} else {
cellModel = colModel;
}
}
Object cellValue = cell.getValue(cellModel);
if(cellValue instanceof Double) {
cellValue = String.format(locale, "%.1f", cellValue);
}
String style = styleToString(cell.getCellValue().getStyle());
txtRows[row] += "<td"
+ (style == null ? "": " style='" + style + "'")
+ ">"
+ (cellValue == null ? " ":cellValue.toString())
+ "</td>";