public static List < ComponentWithContext > findComponentsByClass ( final WComponent root , final String className , final boolean includeRoot , final boolean visibleOnly ) { FindComponentsByClassVisitor visitor = new FindComponentsByClassVisitor ( root , className , includeRoot ) ; doTraverse ( root , visibleOnly , visitor ) ; return visitor . getResult ( ) == null ? Collections . EMPTY_LIST : visitor . getResult ( ) ; }
Search for components implementing a particular class name .