< prev index next >
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/ModuleWriterImpl.java
Print this page
@@ -440,18 +440,16 @@
/**
* Add the summary header.
*
* @param startMarker the marker comment
- * @param markerAnchor the marker anchor for the section
* @param heading the heading for the section
* @param htmltree the content tree to which the information is added
*/
- public void addSummaryHeader(Content startMarker, SectionName markerAnchor, Content heading,
+ public void addSummaryHeader(Content startMarker, Content heading,
Content htmltree) {
htmltree.add(startMarker);
- htmltree.add(links.createAnchor(markerAnchor));
htmltree.add(HtmlTree.HEADING(Headings.ModuleDeclaration.SUMMARY_HEADING, heading));
}
/**
* Get a table, with two columns.
@@ -494,13 +492,13 @@
public void addModulesSummary(Content summaryContentTree) {
if (display(requires) || display(indirectModules)) {
TableHeader requiresTableHeader =
new TableHeader(contents.modifierLabel, contents.moduleLabel,
contents.descriptionLabel);
- HtmlTree section = HtmlTree.SECTION(HtmlStyle.modulesSummary);
- addSummaryHeader(MarkerComments.START_OF_MODULES_SUMMARY, SectionName.MODULES,
- contents.navModules, section);
+ HtmlTree section = HtmlTree.SECTION(HtmlStyle.modulesSummary)
+ .setId(SectionName.MODULES.getName());
+ addSummaryHeader(MarkerComments.START_OF_MODULES_SUMMARY, contents.navModules, section);
if (display(requires)) {
String text = resources.getText("doclet.Requires_Summary");
String tableSummary = resources.getText("doclet.Member_Table_Summary",
text,
resources.getText("doclet.modules"));
@@ -544,13 +542,13 @@
@Override
public void addPackagesSummary(Content summaryContentTree) {
if (display(packages)
|| display(indirectPackages) || display(indirectOpenPackages)) {
- HtmlTree section = HtmlTree.SECTION(HtmlStyle.packagesSummary);
- addSummaryHeader(MarkerComments.START_OF_PACKAGES_SUMMARY, SectionName.PACKAGES,
- contents.navPackages, section);
+ HtmlTree section = HtmlTree.SECTION(HtmlStyle.packagesSummary)
+ .setId(SectionName.PACKAGES.getName());;
+ addSummaryHeader(MarkerComments.START_OF_PACKAGES_SUMMARY, contents.navPackages, section);
if (display(packages)) {
addPackageSummary(section);
}
TableHeader indirectPackagesHeader =
new TableHeader(contents.fromLabel, contents.packagesLabel);
@@ -721,13 +719,13 @@
boolean haveUses = displayServices(uses, usesTrees);
boolean haveProvides = displayServices(provides.keySet(), providesTrees);
if (haveProvides || haveUses) {
- HtmlTree section = HtmlTree.SECTION(HtmlStyle.servicesSummary);
- addSummaryHeader(MarkerComments.START_OF_SERVICES_SUMMARY, SectionName.SERVICES,
- contents.navServices, section);
+ HtmlTree section = HtmlTree.SECTION(HtmlStyle.servicesSummary)
+ .setId(SectionName.SERVICES.getName());
+ addSummaryHeader(MarkerComments.START_OF_SERVICES_SUMMARY, contents.navServices, section);
TableHeader usesProvidesTableHeader =
new TableHeader(contents.typeLabel, contents.descriptionLabel);
if (haveProvides) {
String label = resources.getText("doclet.Provides_Summary");
Table table = getTable2(new StringContent(label), HtmlStyle.providesSummary,
@@ -848,14 +846,14 @@
* {@inheritDoc}
*/
@Override
public void addModuleDescription(Content moduleContentTree) {
if (!utils.getFullBody(mdle).isEmpty()) {
- Content tree = HtmlTree.SECTION(HtmlStyle.moduleDescription);
+ HtmlTree tree = HtmlTree.SECTION(HtmlStyle.moduleDescription);
+ tree.setId(SectionName.MODULE_DESCRIPTION.getName());
addDeprecationInfo(tree);
tree.add(MarkerComments.START_OF_MODULE_DESCRIPTION);
- tree.add(links.createAnchor(SectionName.MODULE_DESCRIPTION));
addInlineComment(mdle, tree);
moduleContentTree.add(tree);
}
}
< prev index next >