Open GoogleCodeExporter opened 9 years ago
In addition I would move the grouping of the rows from method
addHierarchicalDataRows to method addDataRowRecursively, that way all levels
get grouped:
private int addDataRowRecursively(final Sheet sheetToAddTo, final Object
rootItemId,
final int row) {
int numberAdded = 0;
addDataRow(sheetToAddTo, rootItemId, row);
numberAdded++;
if (((HierarchicalContainer) getTable().getContainerDataSource()).hasChildren(rootItemId)) {
final Collection<?> children =
((HierarchicalContainer) getTable().getContainerDataSource())
.getChildren(rootItemId);
for (final Object child : children) {
numberAdded = numberAdded + addDataRowRecursively(sheetToAddTo, child, row+numberAdded);
}
// grouping
sheet.groupRow(row + 1, row+numberAdded-1);
sheet.setRowGroupCollapsed(row + 1, true);
}
return numberAdded;
}
Original comment by petris...@googlemail.com
on 23 May 2013 at 10:56
Original issue reported on code.google.com by
TrykovY...@gmail.com
on 10 Aug 2012 at 2:58