return new CrosstabDimension(rowGroup.getField(), title, summary, summaryTitle);
}
private static String findTitle(final String field, final Band titleHeader)
{
final MatcherContext context = new MatcherContext();
context.setMatchSubReportChilds(false);
NodeMatcher m = new AndMatcher(new ElementMatcher(LabelType.INSTANCE),
new AttributeMatcher(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.LABEL_FOR, field));
ReportElement match = ReportStructureMatcher.match(context, titleHeader, m);
if (match == null)