executableElements[totalElements++] = listingDesign.getFooter( );
executableElements[totalElements++] = footer;
	void collectExecutableElements( )	{		currentElement = 0;		totalElements = 0;		endOfListing = false;		ListingDesign listingDesign = (ListingDesign) getDesign( );		int groupCount = listingDesign.getGroupCount( );		int startGroup = rset.getStartingGroupLevel( );		if ( startGroup == 0 )		{			// this is the first record			BandDesign header = listingDesign.getHeader( );			if ( header != null )			{				executableElements[totalElements++] = header;			}		}		if ( groupCount > 0 )		{			executableElements[totalElements++] = listingDesign.getGroup( 0 );		}		else		{			BandDesign detail = listingDesign.getDetail( );			if ( detail != null )			{				executableElements[totalElements++] = detail;			}		}		int endGroup = rset.getEndingGroupLevel( );		if ( endGroup <= 0 )		{			// this is the last record			BandDesign footer = listingDesign.getFooter( );			if ( footer != null )			{				executableElements[totalElements++] = listingDesign.getFooter( );			}			endOfListing = true;		}	}