public GroupDataBody derive( final boolean preserveElementInstanceIds ) { final GroupDataBody dataBody = (GroupDataBody) super.derive( preserveElementInstanceIds ); dataBody.itemBand = (ItemBand) itemBand.derive( preserveElementInstanceIds ); dataBody.noDataBand = (NoDataBand) noDataBand.derive( preserveElementInstanceIds ); dataBody.detailsHeader = (DetailsHeader) detailsHeader.derive( preserveElementInstanceIds ); dataBody.detailsFooter = (DetailsFooter) detailsFooter.derive( preserveElementInstanceIds ); dataBody.registerAsChild( dataBody.itemBand ); dataBody.registerAsChild( dataBody.noDataBand ); dataBody.registerAsChild( dataBody.detailsHeader ); dataBody.registerAsChild( dataBody.detailsFooter ); return dataBody; } }
public GroupDataBody() { setElementType( new GroupDataBodyType() ); this.noDataBand = new NoDataBand(); this.itemBand = new ItemBand(); this.detailsHeader = new DetailsHeader(); this.detailsFooter = new DetailsFooter(); registerAsChild( noDataBand ); registerAsChild( itemBand ); registerAsChild( detailsHeader ); registerAsChild( detailsFooter ); }
/** * Clones this Element, the datasource and the private stylesheet of this Element. The clone does no longer have a * parent, as the old parent would not recognize that new object anymore. * * @return a clone of this Element. */ public GroupDataBody clone() { final GroupDataBody dataBody = (GroupDataBody) super.clone(); dataBody.itemBand = (ItemBand) itemBand.clone(); dataBody.noDataBand = (NoDataBand) noDataBand.clone(); dataBody.detailsHeader = (DetailsHeader) detailsHeader.clone(); dataBody.detailsFooter = (DetailsFooter) detailsFooter.clone(); dataBody.registerAsChild( dataBody.itemBand ); dataBody.registerAsChild( dataBody.noDataBand ); dataBody.registerAsChild( dataBody.detailsHeader ); dataBody.registerAsChild( dataBody.detailsFooter ); return dataBody; }