private String toHTMLTable ( String propName , Map values ) { StringBuffer tableSB = new StringBuffer ( ) ; tableSB . append ( "<tr class=\"debug\"><th class=\"debug\">" ) . append ( propName ) . append ( "</th></tr>" ) ; for ( Iterator it = values . keySet ( ) . iterator ( ) ; it . hasNext ( ) ; ) { Object o = it . next ( ) ; String key = ( String ) o ; tableSB . append ( "<tr class=\"debug\"><td class=\"debug\">" ) . append ( key ) . append ( "</td><td>" ) . append ( values . get ( key ) ) . append ( "</td></tr>" ) ; } return tableSB . toString ( ) ; }
Returns an HTML table with all the values of the specified property .