< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/SubWriterHolderWriter.java

Print this page

        

@@ -67,16 +67,13 @@
 
     /**
      * Add the summary header.
      *
      * @param mw the writer for the member being documented
-     * @param typeElement the type element to be documented
      * @param memberTree the content tree to which the summary header will be added
      */
-    public void addSummaryHeader(AbstractMemberWriter mw, TypeElement typeElement,
-            Content memberTree) {
-        mw.addSummaryAnchor(typeElement, memberTree);
+    public void addSummaryHeader(AbstractMemberWriter mw, Content memberTree) {
         mw.addSummaryLabel(memberTree);
     }
 
     /**
      * Add the inherited summary header.

@@ -86,11 +83,10 @@
      * @param inheritedTree the content tree to which the inherited summary header will be added
      */
     public void addInheritedSummaryHeader(AbstractMemberWriter mw, TypeElement typeElement,
             Content inheritedTree) {
         mw.addInheritedSummaryLabel(typeElement, inheritedTree);
-        mw.addInheritedSummaryAnchor(typeElement, inheritedTree);
     }
 
     /**
      * Add the index comment.
      *

@@ -219,17 +215,19 @@
         div.setStyle(HtmlStyle.inheritedList);
         return div;
     }
 
     /**
-     * Adds the member tree with css style.
+     * Adds the member tree with css style and id attribute.
      * @param style the css style to be applied to member tree
+     * @param sectionName the section name to use for the section id attribute
      * @param memberSummaryTree the content tree representing the member summary
      * @param memberTree the content tree representing the member
      */
-    public void addMemberTree(HtmlStyle style, Content memberSummaryTree, Content memberTree) {
-        HtmlTree htmlTree = HtmlTree.SECTION(style, memberTree);
+    public void addMemberTree(HtmlStyle style, SectionName sectionName, Content memberSummaryTree, Content memberTree) {
+        HtmlTree htmlTree = HtmlTree.SECTION(style, memberTree)
+                .setId(sectionName.getName());
         memberSummaryTree.add(getMemberTree(htmlTree));
     }
 
     /**
      * Get the member tree
< prev index next >