public static JRDesignGroup getJRDesignGroup ( DynamicJasperDesign jd , LayoutManager layoutManager , DJGroup group ) { Map references = layoutManager . getReferencesMap ( ) ; for ( Object o : references . keySet ( ) ) { String groupName = ( String ) o ; DJGroup djGroup = ( DJGroup ) references . get ( groupName ) ; if ( group == djGroup ) { return ( JRDesignGroup ) jd . getGroupsMap ( ) . get ( groupName ) ; } } return null ; }
Returns the JRDesignGroup for the DJGroup passed