}
}
protected void writeSubtotals(TableModel model, List<Integer> closedColumns)
{
TableTotaler tt = model.getTotaler();
Collections.reverse(closedColumns);
for (int i : closedColumns)
{
xml.append("<subtotal>\n");
for (HeaderCell cell : model.getHeaderCellList())
{
if (cell.isTotaled())
{
xml.append("\t<subtotal-cell ");
HtmlAttributeMap atts = cell.getHtmlAttributes();
writeAttributes(atts);
xml.append('>');
cdata( tt.formatTotal(cell, tt.getTotalForColumn(cell.getColumnNumber(), tt.asGroup(i))));
xml.append("</subtotal-cell>");
}
else
{
xml.append("\t<subtotal-cell/>");