IGroupContent group = rowContent.getGroup( ); IBandContent band = rowContent.getBand( ); if ( group != null && band != null ) { int bandType = band.getBandType( ); if ( bandType == IBandContent.BAND_DETAIL ) { return group.getGroupLevel( ) + 2; } else if ( bandType == IBandContent.BAND_GROUP_HEADER || bandType == IBandContent.BAND_GROUP_FOOTER ) { return group.getGroupLevel( ) + 1; } } return -1;
IRowContent row = (IRowContent) cellContent.getParent( ); return getGroupLevel( row );
	public static int getGroupLevel( IRowContent rowContent )	{		IGroupContent group = rowContent.getGroup( );		IBandContent band = rowContent.getBand( );		if ( group != null && band != null )		{			int bandType = band.getBandType( );			if ( bandType == IBandContent.BAND_DETAIL )			{				return group.getGroupLevel( ) + 2;			}			else if ( bandType == IBandContent.BAND_GROUP_HEADER					|| bandType == IBandContent.BAND_GROUP_FOOTER )			{				return group.getGroupLevel( ) + 1;			}		}		return -1;	}