protected ITableContent createTableContent(IReportContent report, int colNumber, int rowCount) { ITableContent table = report.createTableContent(); for (int i = 0; i < rowCount; i++) { ITableBandContent band = report.createTableBandContent(); band.setBandType(ITableBandContent.BAND_DETAIL); IRowContent row = createRowContent(report, colNumber); band.getChildren().add(row); row.setParent(band); table.getChildren().add(band); band.setParent(table); } return table; }
private void refineBandContent(ITableBandContent content) { if (isHeaderRefined) return; Collection children = content.getChildren(); ArrayList removed = new ArrayList(); if (children != null) { Iterator itr = children.iterator(); while (itr.hasNext()) { IRowContent rowContent = (IRowContent) itr.next(); RowDesign rowDesign = (RowDesign) rowContent.getGenerateBy(); if (rowDesign != null && !rowDesign.getRepeatable()) { removed.add(rowContent); } } children.removeAll(removed); } isHeaderRefined = true; }