private static String toHtmlTable ( final List < OptionWithMetaInfo > options ) { StringBuilder htmlTable = new StringBuilder ( ) ; htmlTable . append ( "<table class=\"table table-bordered\">\n" ) ; htmlTable . append ( " <thead>\n" ) ; htmlTable . append ( " <tr>\n" ) ; htmlTable . append ( " <th class=\"text-left\" style=\"width: 20%\">Key</th>\n" ) ; htmlTable . append ( " <th class=\"text-left\" style=\"width: 15%\">Default</th>\n" ) ; htmlTable . append ( " <th class=\"text-left\" style=\"width: 65%\">Description</th>\n" ) ; htmlTable . append ( " </tr>\n" ) ; htmlTable . append ( " </thead>\n" ) ; htmlTable . append ( " <tbody>\n" ) ; for ( OptionWithMetaInfo option : options ) { htmlTable . append ( toHtmlString ( option ) ) ; } htmlTable . append ( " </tbody>\n" ) ; htmlTable . append ( "</table>\n" ) ; return htmlTable . toString ( ) ; }
Transforms this configuration group into HTML formatted table . Options are sorted alphabetically by key .