protected void addModulesList ( Collection < ModuleElement > modules , Content tbody ) { boolean altColor = true ; for ( ModuleElement mdle : modules ) { if ( ! mdle . isUnnamed ( ) ) { Content moduleLinkContent = getModuleLink ( mdle , new StringContent ( mdle . getQualifiedName ( ) . toString ( ) ) ) ; Content thModule = HtmlTree . TH_ROW_SCOPE ( HtmlStyle . colFirst , moduleLinkContent ) ; HtmlTree tdSummary = new HtmlTree ( HtmlTag . TD ) ; tdSummary . addStyle ( HtmlStyle . colLast ) ; addSummaryComment ( mdle , tdSummary ) ; HtmlTree tr = HtmlTree . TR ( thModule ) ; tr . addContent ( tdSummary ) ; tr . addStyle ( altColor ? HtmlStyle . altColor : HtmlStyle . rowColor ) ; tbody . addContent ( tr ) ; } altColor = ! altColor ; } }
Adds list of modules in the index table . Generate link to each module .