List bindingList = new ArrayList( ); if ( handle instanceof ReportElementHandle ) { Iterator iterator = getBindingColumnIterator( handle ); while ( iterator.hasNext( ) ) { bindingList.add( iterator.next( ) ); } if ( handle instanceof ListingHandle ) { SlotHandle groupSlotHandle = ( (ListingHandle) handle ) .getGroups( ); for ( Iterator iter = groupSlotHandle.iterator( ); iter .hasNext( ); ) { GroupHandle group = (GroupHandle) iter.next( ); for ( Iterator columnIter = group.columnBindingsIterator( ); columnIter .hasNext( ); ) { bindingList.add( columnIter.next( ) ); } } } bindingList.addAll( 0, getAllColumnBindingList( handle .getContainer( ), true ) ); } return bindingList;
return getAllColumnBindingList( handle, true );
	public static List getAllColumnBindingList( DesignElementHandle handle,			boolean includeSelf )	{		List bindingList = new ArrayList( );		if ( handle instanceof ReportElementHandle )		{			Iterator iterator = getBindingColumnIterator( handle );			while ( iterator.hasNext( ) )			{				bindingList.add( iterator.next( ) );			}			if ( handle instanceof ListingHandle )			{				SlotHandle groupSlotHandle = ( (ListingHandle) handle )						.getGroups( );				for ( Iterator iter = groupSlotHandle.iterator( ); iter						.hasNext( ); )				{					GroupHandle group = (GroupHandle) iter.next( );					for ( Iterator columnIter = group.columnBindingsIterator( ); columnIter							.hasNext( ); )					{						bindingList.add( columnIter.next( ) );					}				}			}			bindingList.addAll( 0, getAllColumnBindingList( handle					.getContainer( ), true ) );		}		return bindingList;	}