private BandData createRootBand() {
return createRootBand(null);
}
private BandData createRootBand(List<BandData> bands) {
BandData root = new BandData("Root", null, BandOrientation.HORIZONTAL);
root.setReportFieldFormats(Arrays.<ReportFieldFormat>asList(new ReportFieldFormatImpl("Root.param1", "%16s")));
HashMap<String, Object> rootData = new HashMap<String, Object>();
rootData.put("param1", "AAAAAA");
root.setData(rootData);
BandData band1_1 = new BandData("Band1", root, BandOrientation.HORIZONTAL);
BandData band1_2 = new BandData("Band1", root, BandOrientation.HORIZONTAL);
BandData band1_3 = new BandData("Band1", root, BandOrientation.HORIZONTAL);
BandData footer = new BandData("Footer", root, BandOrientation.HORIZONTAL);
BandData split = new BandData("Split", root, BandOrientation.HORIZONTAL);
split.setData(new HashMap<String, Object>());
Map<String, Object> datamap = new HashMap<String, Object>();
datamap.put("col1", 111);
datamap.put("col2", 222);
datamap.put("col3", 333);
datamap.put("col.nestedCol", null);
datamap.put("col.nestedBool", null);
datamap.put("cwidth", 10000);
band1_1.setData(datamap);
Map<String, Object> datamap2 = new HashMap<String, Object>();
datamap2.put("col1", 444);
datamap2.put("col2", 555);
datamap2.put("col3", 666);
datamap2.put("col.nestedCol", "NESTED1");
datamap2.put("col.nestedBool", false);
datamap2.put("cwidth", 10000);
band1_2.setData(datamap2);
Map<String, Object> datamap3 = new HashMap<String, Object>();
datamap3.put("col1", 777);
datamap3.put("col2", 888);
datamap3.put("col3", 999);
datamap3.put("col.nestedCol", "NESTED2");
datamap3.put("col.nestedBool", true);
datamap3.put("cwidth", 10000);
band1_3.setData(datamap3);
BandData band2_1 = new BandData("Band2", root, BandOrientation.HORIZONTAL);
BandData band2_2 = new BandData("Band2", root, BandOrientation.HORIZONTAL);
Map<String, Object> datamap4 = new HashMap<String, Object>();
datamap4.put("col1", 111);
datamap4.put("col2", 222);
datamap4.put("col3", 333);
datamap4.put("col4", 444);
band2_1.setData(datamap4);
Map<String, Object> datamap5 = new HashMap<String, Object>();
datamap5.put("col1", 555);
datamap5.put("col2", 666);
datamap5.put("col3", 777);
datamap5.put("col4", 888);
band2_2.setData(datamap5);
Map<String, Object> datamap6 = new HashMap<String, Object>();
datamap6.put("col1", 123);
datamap6.put("col2", 456);
datamap6.put("col3", 789);