printBottomBorder();
}
public List<List<String>> formatRowCells(RowDetails rowDetails) {
DataExporterCallback callback = rowDetails.getTable().getCallback();
int maxRowHeight = Math.max(getTextTableExportOptions().getMinRowHeight(), getMaxRowHeight(rowDetails));
List<List<String>> rowLines = new ArrayList<List<String>>();
for (int j = 0; j < maxRowHeight; j++) {
rowLines.add(new ArrayList<String>());
}
for (int columnIndex = 0; columnIndex < columns.size(); columnIndex++) {
Column column = columns.get(columnIndex);
CellDetails cellDetails = new CellDetails(rowDetails, columnIndex);
cellDetails.setRowHeight(maxRowHeight);
cellDetails.setCellValue(rowDetails.getRow().getCellValue(cellDetails));
cellDetails.setCellAlign(cellDetails.getColumn().getAlign());
if (callback != null) {
callback.beforeCell(cellDetails);
}
List<String> cells = column.align(cellDetails, column.format(cellDetails));
for (int j = 0; j < maxRowHeight; j++) {
rowLines.get(j).add(cells.get(j));
}
if (callback != null) {
callback.afterCell(cellDetails);
}
}
return rowLines;
}