ListBandDesign header = createListBand( headerSlot ); header.setBandType( ListBandDesign.BAND_HEADER ); listItem.setHeader( header ); listItem.setRepeatHeader( handle.repeatHeader( ) );
if ( headerSlot.getCount( ) > 0 ) { ListBandDesign header = createListBand( headerSlot ); header.setBandType( ListBandDesign.BAND_HEADER ); listItem.setHeader( header ); listItem.setRepeatHeader( handle.repeatHeader( ) ); }
	public void visitList( ListHandle handle )	{		// Create ListItem		ListItemDesign listItem = new ListItemDesign( );		setupListingItem( listItem, handle );		// Header		SlotHandle headerSlot = handle.getHeader( );		ListBandDesign header = createListBand( headerSlot );		header.setBandType( ListBandDesign.BAND_HEADER );		listItem.setHeader( header );		listItem.setRepeatHeader( handle.repeatHeader( ) );		// Multiple groups		SlotHandle groupsSlot = handle.getGroups( );		for ( int i = 0; i < groupsSlot.getCount( ); i++ )		{			apply( groupsSlot.get( i ) );			if ( currentElement != null )			{				GroupDesign group = (GroupDesign) currentElement;				group.setGroupLevel(i);				listItem.addGroup( group );			}		}		// List detail		SlotHandle detailSlot = handle.getDetail( );		ListBandDesign detail =createListBand( detailSlot );		detail.setBandType( ListBandDesign.BAND_DETAIL );		listItem.setDetail( detail );		// List Footer		SlotHandle footerSlot = handle.getFooter( );		ListBandDesign footer =createListBand( footerSlot );		footer.setBandType( ListBandDesign.BAND_DETAIL );		listItem.setFooter( footer );		currentElement = listItem;	}