96 bodyTree.add(new BodyContents()
97 .setHeader(headerContent)
98 .addMainContent(headerDiv)
99 .addMainContent(div)
100 .setFooter(footer)
101 .toContent());
102 printHtmlDocument(null, "package index", bodyTree);
103 }
104
105 /**
106 * Add all the packages to the content tree.
107 *
108 * @param content HtmlTree content to which the links will be added
109 */
110 protected void addPackages(Content content) {
111 Table table = new Table(HtmlStyle.packagesSummary)
112 .setCaption(getTableCaption(new StringContent(resources.packageSummary)))
113 .setHeader(new TableHeader(contents.packageLabel, contents.descriptionLabel))
114 .setColumnStyles(HtmlStyle.colFirst, HtmlStyle.colLast);
115 for (PackageElement pkg : configuration.packages) {
116 if (!(configuration.nodeprecated && utils.isDeprecated(pkg))) {
117 Content packageLinkContent = getPackageLink(pkg, getPackageName(pkg));
118 Content summaryContent = new ContentBuilder();
119 addSummaryComment(pkg, summaryContent);
120 table.addRow(pkg, packageLinkContent, summaryContent);
121 }
122 }
123 content.add(table.toContent());
124 }
125 }
|
96 bodyTree.add(new BodyContents()
97 .setHeader(headerContent)
98 .addMainContent(headerDiv)
99 .addMainContent(div)
100 .setFooter(footer)
101 .toContent());
102 printHtmlDocument(null, "package index", bodyTree);
103 }
104
105 /**
106 * Add all the packages to the content tree.
107 *
108 * @param content HtmlTree content to which the links will be added
109 */
110 protected void addPackages(Content content) {
111 Table table = new Table(HtmlStyle.packagesSummary)
112 .setCaption(getTableCaption(new StringContent(resources.packageSummary)))
113 .setHeader(new TableHeader(contents.packageLabel, contents.descriptionLabel))
114 .setColumnStyles(HtmlStyle.colFirst, HtmlStyle.colLast);
115 for (PackageElement pkg : configuration.packages) {
116 if (!(configuration.getOptions().noDeprecated && utils.isDeprecated(pkg))) {
117 Content packageLinkContent = getPackageLink(pkg, getPackageName(pkg));
118 Content summaryContent = new ContentBuilder();
119 addSummaryComment(pkg, summaryContent);
120 table.addRow(pkg, packageLinkContent, summaryContent);
121 }
122 }
123 content.add(table.toContent());
124 }
125 }
|