protected void addModulesList ( Collection < ModuleElement > modules , String text , String tableSummary , Content body ) { Content table = ( configuration . isOutputHtml5 ( ) ) ? HtmlTree . TABLE ( HtmlStyle . overviewSummary , getTableCaption ( new RawHtml ( text ) ) ) : HtmlTree . TABLE ( HtmlStyle . overviewSummary , tableSummary , getTableCaption ( new RawHtml ( text ) ) ) ; table . addContent ( getSummaryTableHeader ( moduleTableHeader , "col" ) ) ; Content tbody = new HtmlTree ( HtmlTag . TBODY ) ; addModulesList ( modules , tbody ) ; table . addContent ( tbody ) ; Content anchor = getMarkerAnchor ( text ) ; Content div = HtmlTree . DIV ( HtmlStyle . contentContainer , anchor ) ; div . addContent ( table ) ; if ( configuration . allowTag ( HtmlTag . MAIN ) ) { htmlTree . addContent ( div ) ; } else { body . addContent ( div ) ; } }
Add the list of modules .