@Override
    public void addClassesSummary(SortedSet<TypeElement> classes, String label,
            String tableSummary, List<String> tableHeader, Content summaryContentTree) {
        if(!classes.isEmpty()) {
            Content caption = getTableCaption(new RawHtml(label));
            Content table = (configuration.isOutputHtml5())
                    ? HtmlTree.TABLE(HtmlStyle.typeSummary, caption)
                    : HtmlTree.TABLE(HtmlStyle.typeSummary, tableSummary, caption);
            table.addContent(getSummaryTableHeader(tableHeader, "col"));
            Content tbody = new HtmlTree(HtmlTag.TBODY);
            boolean altColor = false;
            for (TypeElement klass : classes) {
                altColor = !altColor;
                if (!utils.isCoreClass(klass) ||
                    !configuration.isGeneratedDoc(klass)) {
                    continue;
                }
                Content classContent = getLink(new LinkInfoImpl(
                        configuration, LinkInfoImpl.Kind.PACKAGE, klass));
                Content thClass = HtmlTree.TH_ROW_SCOPE(HtmlStyle.colFirst, classContent);
                HtmlTree tr = HtmlTree.TR(thClass);
                tr.addStyle(altColor ? HtmlStyle.altColor : HtmlStyle.rowColor);

                HtmlTree tdClassDescription = new HtmlTree(HtmlTag.TD);
                tdClassDescription.addStyle(HtmlStyle.colLast);
                if (utils.isDeprecated(klass)) {
                    tdClassDescription.addContent(getDeprecatedPhrase(klass));
                    List<? extends DocTree> tags = utils.getDeprecatedTrees(klass);
                    if (!tags.isEmpty()) {
                        addSummaryDeprecatedComment(klass, tags.get(0), tdClassDescription);
                    }
                } else {
                    addSummaryComment(klass, tdClassDescription);
                }
                tr.addContent(tdClassDescription);
                tbody.addContent(tr);
            }
            table.addContent(tbody);
            Content li = HtmlTree.LI(HtmlStyle.blockList, table);
            summaryContentTree.addContent(li);
        }
    }
@ Override public void addClassesSummary ( SortedSet < TypeElement > classes , String label , String tableSummary , List < String > tableHeader , Content summaryContentTree ) { if ( ! classes . isEmpty ( ) ) { Content caption = getTableCaption ( new RawHtml ( label ) ) ; Content table = ( configuration . isOutputHtml5 ( ) ) ? HtmlTree . TABLE ( HtmlStyle . typeSummary , caption ) : HtmlTree . TABLE ( HtmlStyle . typeSummary , tableSummary , caption ) ; table . addContent ( getSummaryTableHeader ( tableHeader , "col" ) ) ; Content tbody = new HtmlTree ( HtmlTag . TBODY ) ; boolean altColor = false ; for ( TypeElement klass : classes ) { altColor = ! altColor ; if ( ! utils . isCoreClass ( klass ) || ! configuration . isGeneratedDoc ( klass ) ) { continue ; } Content classContent = getLink ( new LinkInfoImpl ( configuration , LinkInfoImpl . Kind . PACKAGE , klass ) ) ; Content thClass = HtmlTree . TH_ROW_SCOPE ( HtmlStyle . colFirst , classContent ) ; HtmlTree tr = HtmlTree . TR ( thClass ) ; tr . addStyle ( altColor ? HtmlStyle . altColor : HtmlStyle . rowColor ) ; HtmlTree tdClassDescription = new HtmlTree ( HtmlTag . TD ) ; tdClassDescription . addStyle ( HtmlStyle . colLast ) ; if ( utils . isDeprecated ( klass ) ) { tdClassDescription . addContent ( getDeprecatedPhrase ( klass ) ) ; List < ? extends DocTree > tags = utils . getDeprecatedTrees ( klass ) ; if ( ! tags . isEmpty ( ) ) { addSummaryDeprecatedComment ( klass , tags . get ( 0 ) , tdClassDescription ) ; } } else { addSummaryComment ( klass , tdClassDescription ) ; } tr . addContent ( tdClassDescription ) ; tbody . addContent ( tr ) ; } table . addContent ( tbody ) ; Content li = HtmlTree . LI ( HtmlStyle . blockList , table ) ; summaryContentTree . addContent ( li ) ; } }
{@inheritDoc}