Exemplo n.º 1
0
 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;
 }
 public void initLayout(ITableContent table) {
   String keyString =
       context.getPageHintManager().getHintMapKey(table.getInstanceID().toUniqueString());
   this.layout = new TableContentLayout(table, getOutputFormat(), context, keyString);
   this.layoutEvents = new Stack();
   UnresolvedRowHint hint = null;
   if (isFirst) {
     if (context != null) {
       hint = context.getPageHintManager().getUnresolvedRowHint(keyString);
       isFirst = false;
     }
   }
   if (hint == null) {
     hint = hintMap.get(keyString);
   }
   layout.setUnresolvedRowHint(hint);
 }