private static IInfoPanel searchChildren ( ElementBase parent , ElementBase exclude , boolean activeOnly ) { IInfoPanel infoPanel = null ; if ( parent != null ) { for ( ElementBase child : parent . getChildren ( ) ) { if ( ( child != exclude ) && ( ( infoPanel = getInfoPanel ( child , activeOnly ) ) != null ) ) { break ; } } if ( infoPanel == null ) { for ( ElementBase child : parent . getChildren ( ) ) { if ( ( child != exclude ) && ( ( infoPanel = searchChildren ( child , null , activeOnly ) ) != null ) ) { break ; } } } } return infoPanel ; }
Search children of the specified parent for an occurrence of an active info panel . This is a recursive breadth - first search of the component tree .