public static String getPathToRoot ( final WComponent component ) { StringBuffer buf = new StringBuffer ( ) ; for ( WComponent node = component ; node != null ; node = node . getParent ( ) ) { if ( buf . length ( ) != 0 ) { buf . insert ( 0 , ' ' ) ; } buf . insert ( 0 , node . getClass ( ) . getName ( ) ) ; } return buf . toString ( ) ; }
Retrieves a path of component classes from the given component to the root node . The path is formatted with one component on each line with the first line being the root node .