executableElements[totalElements++] = listingDesign.getHeader();; executableElements[totalElements++] = listingDesign.getFooter();;
BandDesign header = listingDesign.getHeader( ); if ( header != null ) { executableElements[totalElements++] = header; } BandDesign footer = listingDesign.getFooter( ); if ( footer != null ) { executableElements[totalElements++] = footer; }
	protected void prepareToExecuteChildren()	{		ListingDesign listingDesign = (ListingDesign)getDesign();		//prepare the bands to be executed. 		executableElements = new ReportItemDesign[3];		if (rset == null || rsetEmpty)		{			executableElements[totalElements++] = listingDesign.getHeader();;			executableElements[totalElements++] = listingDesign.getFooter();;			endOfListing = true;		}		else		{			collectExecutableElements();		}	}