langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java
equal
deleted
inserted
replaced
331 */ |
331 */ |
332 protected void addClassList(Content contentTree) throws IOException { |
332 protected void addClassList(Content contentTree) throws IOException { |
333 HtmlTree ul = new HtmlTree(HtmlTag.UL); |
333 HtmlTree ul = new HtmlTree(HtmlTag.UL); |
334 ul.addStyle(HtmlStyle.blockList); |
334 ul.addStyle(HtmlStyle.blockList); |
335 for (PackageDoc pkg : pkgSet) { |
335 for (PackageDoc pkg : pkgSet) { |
336 Content li = HtmlTree.LI(HtmlStyle.blockList, getMarkerAnchor(pkg.name())); |
336 Content li = HtmlTree.LI(HtmlStyle.blockList, getMarkerAnchor(getPackageAnchorName(pkg))); |
337 Content link = getResource("doclet.ClassUse_Uses.of.0.in.1", |
337 Content link = getResource("doclet.ClassUse_Uses.of.0.in.1", |
338 getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.CLASS_USE_HEADER, |
338 getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.CLASS_USE_HEADER, |
339 classdoc)), |
339 classdoc)), |
340 getPackageLink(pkg, utils.getPackageName(pkg))); |
340 getPackageLink(pkg, utils.getPackageName(pkg))); |
341 Content heading = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, link); |
341 Content heading = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, link); |
353 * @param pkg the package that uses the given class |
353 * @param pkg the package that uses the given class |
354 * @param contentTree the content tree to which the package use information will be added |
354 * @param contentTree the content tree to which the package use information will be added |
355 */ |
355 */ |
356 protected void addPackageUse(PackageDoc pkg, Content contentTree) throws IOException { |
356 protected void addPackageUse(PackageDoc pkg, Content contentTree) throws IOException { |
357 Content tdFirst = HtmlTree.TD(HtmlStyle.colFirst, |
357 Content tdFirst = HtmlTree.TD(HtmlStyle.colFirst, |
358 getHyperLink(pkg.name(), new StringContent(utils.getPackageName(pkg)))); |
358 getHyperLink(getPackageAnchorName(pkg), new StringContent(utils.getPackageName(pkg)))); |
359 contentTree.addContent(tdFirst); |
359 contentTree.addContent(tdFirst); |
360 HtmlTree tdLast = new HtmlTree(HtmlTag.TD); |
360 HtmlTree tdLast = new HtmlTree(HtmlTag.TD); |
361 tdLast.addStyle(HtmlStyle.colLast); |
361 tdLast.addStyle(HtmlStyle.colLast); |
362 addSummaryComment(pkg, tdLast); |
362 addSummaryComment(pkg, tdLast); |
363 contentTree.addContent(tdLast); |
363 contentTree.addContent(tdLast); |