254 * |
254 * |
255 * @param contentTree the content tree to which the packages list will be added |
255 * @param contentTree the content tree to which the packages list will be added |
256 */ |
256 */ |
257 protected void addPackageList(Content contentTree) throws IOException { |
257 protected void addPackageList(Content contentTree) throws IOException { |
258 Content table = HtmlTree.TABLE(0, 3, 0, useTableSummary, |
258 Content table = HtmlTree.TABLE(0, 3, 0, useTableSummary, |
259 getTableCaption(configuration().getText( |
259 getTableCaption(configuration.getText( |
260 "doclet.ClassUse_Packages.that.use.0", |
260 "doclet.ClassUse_Packages.that.use.0", |
261 getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, |
261 getLink(new LinkInfoImpl(configuration, LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, |
262 false))))); |
262 false))))); |
263 table.addContent(getSummaryTableHeader(packageTableHeader, "col")); |
263 table.addContent(getSummaryTableHeader(packageTableHeader, "col")); |
264 Content tbody = new HtmlTree(HtmlTag.TBODY); |
264 Content tbody = new HtmlTree(HtmlTag.TBODY); |
265 Iterator<PackageDoc> it = pkgSet.iterator(); |
265 Iterator<PackageDoc> it = pkgSet.iterator(); |
266 for (int i = 0; it.hasNext(); i++) { |
266 for (int i = 0; it.hasNext(); i++) { |
285 * @param contentTree the content tree to which the package annotation list will be added |
285 * @param contentTree the content tree to which the package annotation list will be added |
286 */ |
286 */ |
287 protected void addPackageAnnotationList(Content contentTree) throws IOException { |
287 protected void addPackageAnnotationList(Content contentTree) throws IOException { |
288 if ((!classdoc.isAnnotationType()) || |
288 if ((!classdoc.isAnnotationType()) || |
289 pkgToPackageAnnotations == null || |
289 pkgToPackageAnnotations == null || |
290 pkgToPackageAnnotations.size() == 0) { |
290 pkgToPackageAnnotations.isEmpty()) { |
291 return; |
291 return; |
292 } |
292 } |
293 Content table = HtmlTree.TABLE(0, 3, 0, useTableSummary, |
293 Content table = HtmlTree.TABLE(0, 3, 0, useTableSummary, |
294 getTableCaption(configuration().getText( |
294 getTableCaption(configuration.getText( |
295 "doclet.ClassUse_PackageAnnotation", |
295 "doclet.ClassUse_PackageAnnotation", |
296 getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, |
296 getLink(new LinkInfoImpl(configuration, |
297 false))))); |
297 LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, false))))); |
298 table.addContent(getSummaryTableHeader(packageTableHeader, "col")); |
298 table.addContent(getSummaryTableHeader(packageTableHeader, "col")); |
299 Content tbody = new HtmlTree(HtmlTag.TBODY); |
299 Content tbody = new HtmlTree(HtmlTag.TBODY); |
300 Iterator<PackageDoc> it = pkgToPackageAnnotations.iterator(); |
300 Iterator<PackageDoc> it = pkgToPackageAnnotations.iterator(); |
301 for (int i = 0; it.hasNext(); i++) { |
301 for (int i = 0; it.hasNext(); i++) { |
302 PackageDoc pkg = it.next(); |
302 PackageDoc pkg = it.next(); |
331 for (Iterator<PackageDoc> it = pkgSet.iterator(); it.hasNext();) { |
331 for (Iterator<PackageDoc> it = pkgSet.iterator(); it.hasNext();) { |
332 PackageDoc pkg = it.next(); |
332 PackageDoc pkg = it.next(); |
333 Content li = HtmlTree.LI(HtmlStyle.blockList, getMarkerAnchor(pkg.name())); |
333 Content li = HtmlTree.LI(HtmlStyle.blockList, getMarkerAnchor(pkg.name())); |
334 Content link = new RawHtml( |
334 Content link = new RawHtml( |
335 configuration.getText("doclet.ClassUse_Uses.of.0.in.1", |
335 configuration.getText("doclet.ClassUse_Uses.of.0.in.1", |
336 getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, |
336 getLink(new LinkInfoImpl(configuration, LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, |
337 classdoc, false)), |
337 classdoc, false)), |
338 getPackageLinkString(pkg, Util.getPackageName(pkg), false))); |
338 getPackageLinkString(pkg, Util.getPackageName(pkg), false))); |
339 Content heading = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, link); |
339 Content heading = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, link); |
340 li.addContent(heading); |
340 li.addContent(heading); |
341 addClassUse(pkg, li); |
341 addClassUse(pkg, li); |
366 * |
366 * |
367 * @param pkg the package that uses the given class |
367 * @param pkg the package that uses the given class |
368 * @param contentTree the content tree to which the class use information will be added |
368 * @param contentTree the content tree to which the class use information will be added |
369 */ |
369 */ |
370 protected void addClassUse(PackageDoc pkg, Content contentTree) throws IOException { |
370 protected void addClassUse(PackageDoc pkg, Content contentTree) throws IOException { |
371 String classLink = getLink(new LinkInfoImpl( |
371 String classLink = getLink(new LinkInfoImpl(configuration, |
372 LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, false)); |
372 LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, false)); |
373 String pkgLink = getPackageLinkString(pkg, Util.getPackageName(pkg), false); |
373 String pkgLink = getPackageLinkString(pkg, Util.getPackageName(pkg), false); |
374 classSubWriter.addUseInfo(pkgToClassAnnotations.get(pkg.name()), |
374 classSubWriter.addUseInfo(pkgToClassAnnotations.get(pkg.name()), |
375 configuration.getText("doclet.ClassUse_Annotation", classLink, |
375 configuration.getText("doclet.ClassUse_Annotation", classLink, |
376 pkgLink), classUseTableSummary, contentTree); |
376 pkgLink), classUseTableSummary, contentTree); |
475 * |
475 * |
476 * @return a content tree for the class page link |
476 * @return a content tree for the class page link |
477 */ |
477 */ |
478 protected Content getNavLinkClass() { |
478 protected Content getNavLinkClass() { |
479 Content linkContent = new RawHtml(getLink(new LinkInfoImpl( |
479 Content linkContent = new RawHtml(getLink(new LinkInfoImpl( |
480 LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, "", |
480 configuration, LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, |
481 configuration.getText("doclet.Class"), false))); |
481 "", configuration.getText("doclet.Class"), false))); |
482 Content li = HtmlTree.LI(linkContent); |
482 Content li = HtmlTree.LI(linkContent); |
483 return li; |
483 return li; |
484 } |
484 } |
485 |
485 |
486 /** |
486 /** |