return InlineSubreportProcessor.processInline(next, group.getHeader());
}
public ProcessState commit(final ProcessState next) throws ReportProcessingException
{
final Group group = next.getReport().getGroup(next.getCurrentGroupIndex());
final GroupBody body = group.getBody();
if (body instanceof CrosstabColumnGroupBody)
{
next.setAdvanceHandler(BeginCrosstabColumnAxisHandler.HANDLER);
}
else if (body instanceof GroupDataBody)
{
next.setAdvanceHandler(BeginCrosstabFactHandler.HANDLER);
}
else
{
throw new IllegalStateException("This report is totally messed up!");
}
final RootLevelBand rootLevelBand = group.getHeader();
return InlineSubreportProcessor.process(next, rootLevelBand);
}