< prev index next >
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AbstractIndexWriter.java
Print this page
*** 167,180 ****
contentTree.add(dl);
}
protected void addHeading(Character uc, Content contentTree) {
String unicode = uc.toString();
- contentTree.add(getMarkerAnchorForIndex(unicode));
Content headContent = new StringContent(unicode);
! Content heading = HtmlTree.HEADING(Headings.CONTENT_HEADING, false,
HtmlStyle.title, headContent);
contentTree.add(heading);
}
@SuppressWarnings("preview")
protected void addDescription(Content dl, Element element) {
--- 167,180 ----
contentTree.add(dl);
}
protected void addHeading(Character uc, Content contentTree) {
String unicode = uc.toString();
Content headContent = new StringContent(unicode);
! HtmlTree heading = HtmlTree.HEADING(Headings.CONTENT_HEADING, false,
HtmlStyle.title, headContent);
+ heading.setId(getNameForIndex(unicode));
contentTree.add(heading);
}
@SuppressWarnings("preview")
protected void addDescription(Content dl, Element element) {
*** 410,429 ****
addPreQualifiedClassLink(LinkInfoImpl.Kind.INDEX, containing,
false, contentTree);
}
/**
- * Get the marker anchor which will be added to the index documentation tree.
- *
- * @param anchorNameForIndex the anchor name attribute for index page
- * @return a content tree for the marker anchor
- */
- public Content getMarkerAnchorForIndex(String anchorNameForIndex) {
- return links.createAnchor(getNameForIndex(anchorNameForIndex));
- }
-
- /**
* Generate a valid HTML name for member index page.
*
* @param unicode the string that needs to be converted to valid HTML name.
* @return a valid HTML name string.
*/
--- 410,419 ----
< prev index next >