private void addGlobalCrosstabs() {
//For header
if (globalHeaderCrosstabs != null) {
for (Iterator iterator = globalHeaderCrosstabs.iterator(); iterator.hasNext();) {
DJCrosstab djcross = (DJCrosstab) iterator.next();
DJGroup globalGroup = createDummyGroupForCrosstabs("crosstabHeaderGroup-" + globalHeaderCrosstabs.indexOf(djcross));
globalGroup.getHeaderCrosstabs().add(djcross);
report.getColumnsGroups().add(0,globalGroup);
}
}
//For footer
if (globalFooterCrosstabs != null) {
for (Iterator iterator = globalFooterCrosstabs.iterator(); iterator.hasNext();) {
DJCrosstab djcross = (DJCrosstab) iterator.next();
DJGroup globalGroup = createDummyGroupForCrosstabs("crosstabFooterGroup-" + globalFooterCrosstabs.indexOf(djcross));
globalGroup.getFooterCrosstabs().add(djcross);
report.getColumnsGroups().add(0,globalGroup);
}
}
}