205 throw new DocletAbortException(); |
207 throw new DocletAbortException(); |
206 } |
208 } |
207 } |
209 } |
208 |
210 |
209 /** |
211 /** |
210 * Print the class use list. |
212 * Generate the class use list. |
211 */ |
213 */ |
212 protected void generateClassUseFile() throws IOException { |
214 protected void generateClassUseFile() throws IOException { |
213 |
215 Content body = getClassUseHeader(); |
214 printClassUseHeader(); |
216 HtmlTree div = new HtmlTree(HtmlTag.DIV); |
215 |
217 div.addStyle(HtmlStyle.classUseContainer); |
216 if (pkgSet.size() > 0) { |
218 if (pkgSet.size() > 0) { |
217 generateClassUse(); |
219 addClassUse(div); |
218 } else { |
220 } else { |
219 printText("doclet.ClassUse_No.usage.of.0", |
221 div.addContent(getResource("doclet.ClassUse_No.usage.of.0", |
220 classdoc.qualifiedName()); |
222 classdoc.qualifiedName())); |
221 p(); |
223 } |
222 } |
224 body.addContent(div); |
223 |
225 addNavLinks(false, body); |
224 printClassUseFooter(); |
226 addBottom(body); |
225 } |
227 printHtmlDocument(null, true, body); |
226 |
228 } |
227 protected void generateClassUse() throws IOException { |
229 |
|
230 /** |
|
231 * Add the class use documentation. |
|
232 * |
|
233 * @param contentTree the content tree to which the class use information will be added |
|
234 */ |
|
235 protected void addClassUse(Content contentTree) throws IOException { |
|
236 HtmlTree ul = new HtmlTree(HtmlTag.UL); |
|
237 ul.addStyle(HtmlStyle.blockList); |
228 if (configuration.packages.length > 1) { |
238 if (configuration.packages.length > 1) { |
229 generatePackageList(); |
239 addPackageList(ul); |
230 generatePackageAnnotationList(); |
240 addPackageAnnotationList(ul); |
231 } |
241 } |
232 generateClassList(); |
242 addClassList(ul); |
233 } |
243 contentTree.addContent(ul); |
234 |
244 } |
235 protected void generatePackageList() throws IOException { |
245 |
236 tableIndexSummary(useTableSummary); |
246 /** |
237 tableCaptionStart(); |
247 * Add the packages list that use the given class. |
238 printText("doclet.ClassUse_Packages.that.use.0", |
248 * |
239 getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, |
249 * @param contentTree the content tree to which the packages list will be added |
240 false))); |
250 */ |
241 tableCaptionEnd(); |
251 protected void addPackageList(Content contentTree) throws IOException { |
242 summaryTableHeader(packageTableHeader, "col"); |
252 Content table = HtmlTree.TABLE(0, 3, 0, useTableSummary, |
243 |
253 getTableCaption(configuration().getText( |
|
254 "doclet.ClassUse_Packages.that.use.0", |
|
255 getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, |
|
256 false))))); |
|
257 table.addContent(getSummaryTableHeader(packageTableHeader, "col")); |
|
258 Content tbody = new HtmlTree(HtmlTag.TBODY); |
|
259 Iterator<PackageDoc> it = pkgSet.iterator(); |
|
260 for (int i = 0; it.hasNext(); i++) { |
|
261 PackageDoc pkg = it.next(); |
|
262 HtmlTree tr = new HtmlTree(HtmlTag.TR); |
|
263 if (i % 2 == 0) { |
|
264 tr.addStyle(HtmlStyle.altColor); |
|
265 } else { |
|
266 tr.addStyle(HtmlStyle.rowColor); |
|
267 } |
|
268 addPackageUse(pkg, tr); |
|
269 tbody.addContent(tr); |
|
270 } |
|
271 table.addContent(tbody); |
|
272 Content li = HtmlTree.LI(HtmlStyle.blockList, table); |
|
273 contentTree.addContent(li); |
|
274 } |
|
275 |
|
276 /** |
|
277 * Add the package annotation list. |
|
278 * |
|
279 * @param contentTree the content tree to which the package annotation list will be added |
|
280 */ |
|
281 protected void addPackageAnnotationList(Content contentTree) throws IOException { |
|
282 if ((!classdoc.isAnnotationType()) || |
|
283 pkgToPackageAnnotations == null || |
|
284 pkgToPackageAnnotations.size() == 0) { |
|
285 return; |
|
286 } |
|
287 Content table = HtmlTree.TABLE(0, 3, 0, useTableSummary, |
|
288 getTableCaption(configuration().getText( |
|
289 "doclet.ClassUse_PackageAnnotation", |
|
290 getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, |
|
291 false))))); |
|
292 table.addContent(getSummaryTableHeader(packageTableHeader, "col")); |
|
293 Content tbody = new HtmlTree(HtmlTag.TBODY); |
|
294 Iterator<PackageDoc> it = pkgToPackageAnnotations.iterator(); |
|
295 for (int i = 0; it.hasNext(); i++) { |
|
296 PackageDoc pkg = it.next(); |
|
297 HtmlTree tr = new HtmlTree(HtmlTag.TR); |
|
298 if (i % 2 == 0) { |
|
299 tr.addStyle(HtmlStyle.altColor); |
|
300 } else { |
|
301 tr.addStyle(HtmlStyle.rowColor); |
|
302 } |
|
303 Content tdFirst = HtmlTree.TD(HtmlStyle.colFirst, |
|
304 getPackageLink(pkg, new StringContent(pkg.name()))); |
|
305 tr.addContent(tdFirst); |
|
306 HtmlTree tdLast = new HtmlTree(HtmlTag.TD); |
|
307 tdLast.addStyle(HtmlStyle.colLast); |
|
308 if (pkg != null) { |
|
309 addSummaryComment(pkg, tdLast); |
|
310 } else { |
|
311 tdLast.addContent(getSpace()); |
|
312 } |
|
313 tr.addContent(tdLast); |
|
314 tbody.addContent(tr); |
|
315 } |
|
316 table.addContent(tbody); |
|
317 Content li = HtmlTree.LI(HtmlStyle.blockList, table); |
|
318 contentTree.addContent(li); |
|
319 } |
|
320 |
|
321 /** |
|
322 * Add the class list that use the given class. |
|
323 * |
|
324 * @param contentTree the content tree to which the class list will be added |
|
325 */ |
|
326 protected void addClassList(Content contentTree) throws IOException { |
|
327 HtmlTree ul = new HtmlTree(HtmlTag.UL); |
|
328 ul.addStyle(HtmlStyle.blockList); |
244 for (Iterator<PackageDoc> it = pkgSet.iterator(); it.hasNext();) { |
329 for (Iterator<PackageDoc> it = pkgSet.iterator(); it.hasNext();) { |
245 PackageDoc pkg = it.next(); |
330 PackageDoc pkg = it.next(); |
246 generatePackageUse(pkg); |
331 Content li = HtmlTree.LI(HtmlStyle.blockList, getMarkerAnchor(pkg.name())); |
247 } |
332 Content link = new RawHtml( |
248 tableEnd(); |
333 configuration.getText("doclet.ClassUse_Uses.of.0.in.1", |
249 space(); |
334 getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, |
250 p(); |
|
251 } |
|
252 |
|
253 protected void generatePackageAnnotationList() throws IOException { |
|
254 if ((! classdoc.isAnnotationType()) || |
|
255 pkgToPackageAnnotations == null || |
|
256 pkgToPackageAnnotations.size() == 0) |
|
257 return; |
|
258 tableIndexSummary(useTableSummary); |
|
259 tableCaptionStart(); |
|
260 printText("doclet.ClassUse_PackageAnnotation", |
|
261 getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, |
|
262 false))); |
|
263 tableCaptionEnd(); |
|
264 summaryTableHeader(packageTableHeader, "col"); |
|
265 for (Iterator<PackageDoc> it = pkgToPackageAnnotations.iterator(); it.hasNext();) { |
|
266 PackageDoc pkg = it.next(); |
|
267 trBgcolorStyle("white", "TableRowColor"); |
|
268 summaryRow(0); |
|
269 //Just want an anchor here. |
|
270 printPackageLink(pkg, pkg.name(), true); |
|
271 summaryRowEnd(); |
|
272 summaryRow(0); |
|
273 printSummaryComment(pkg); |
|
274 space(); |
|
275 summaryRowEnd(); |
|
276 trEnd(); |
|
277 } |
|
278 tableEnd(); |
|
279 space(); |
|
280 p(); |
|
281 } |
|
282 |
|
283 protected void generateClassList() throws IOException { |
|
284 for (Iterator<PackageDoc> it = pkgSet.iterator(); it.hasNext();) { |
|
285 PackageDoc pkg = it.next(); |
|
286 anchor(pkg.name()); |
|
287 tableIndexSummary(); |
|
288 tableHeaderStart("#CCCCFF"); |
|
289 printText("doclet.ClassUse_Uses.of.0.in.1", |
|
290 getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, |
|
291 classdoc, false)), |
335 classdoc, false)), |
292 getPackageLink(pkg, Util.getPackageName(pkg), false)); |
336 getPackageLinkString(pkg, Util.getPackageName(pkg), false))); |
293 tableHeaderEnd(); |
337 Content heading = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, link); |
294 tableEnd(); |
338 li.addContent(heading); |
295 space(); |
339 addClassUse(pkg, li); |
296 p(); |
340 ul.addContent(li); |
297 generateClassUse(pkg); |
341 } |
298 } |
342 Content li = HtmlTree.LI(HtmlStyle.blockList, ul); |
299 } |
343 contentTree.addContent(li); |
300 |
344 } |
301 /** |
345 |
302 * Print the package use list. |
346 /** |
303 */ |
347 * Add the package use information. |
304 protected void generatePackageUse(PackageDoc pkg) throws IOException { |
348 * |
305 trBgcolorStyle("white", "TableRowColor"); |
349 * @param pkg the package that uses the given class |
306 summaryRow(0); |
350 * @param contentTree the content tree to which the package use information will be added |
307 //Just want an anchor here. |
351 */ |
308 printHyperLink("", pkg.name(), Util.getPackageName(pkg), true); |
352 protected void addPackageUse(PackageDoc pkg, Content contentTree) throws IOException { |
309 summaryRowEnd(); |
353 Content tdFirst = HtmlTree.TD(HtmlStyle.colFirst, |
310 summaryRow(0); |
354 getHyperLink("", pkg.name(), new StringContent(Util.getPackageName(pkg)))); |
311 printSummaryComment(pkg); |
355 contentTree.addContent(tdFirst); |
312 space(); |
356 HtmlTree tdLast = new HtmlTree(HtmlTag.TD); |
313 summaryRowEnd(); |
357 tdLast.addStyle(HtmlStyle.colLast); |
314 trEnd(); |
358 if (pkg != null) |
315 } |
359 addSummaryComment(pkg, tdLast); |
316 |
360 else |
317 /** |
361 tdLast.addContent(getSpace()); |
318 * Print the class use list. |
362 contentTree.addContent(tdLast); |
319 */ |
363 } |
320 protected void generateClassUse(PackageDoc pkg) throws IOException { |
364 |
|
365 /** |
|
366 * Add the class use information. |
|
367 * |
|
368 * @param pkg the package that uses the given class |
|
369 * @param contentTree the content tree to which the class use information will be added |
|
370 */ |
|
371 protected void addClassUse(PackageDoc pkg, Content contentTree) throws IOException { |
321 String classLink = getLink(new LinkInfoImpl( |
372 String classLink = getLink(new LinkInfoImpl( |
322 LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, false)); |
373 LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, false)); |
323 String pkgLink = getPackageLink(pkg, Util.getPackageName(pkg), false); |
374 String pkgLink = getPackageLinkString(pkg, Util.getPackageName(pkg), false); |
324 classSubWriter.printUseInfo(pkgToClassAnnotations.get(pkg.name()), |
375 classSubWriter.addUseInfo(pkgToClassAnnotations.get(pkg.name()), |
325 configuration.getText("doclet.ClassUse_Annotation", classLink, |
376 configuration.getText("doclet.ClassUse_Annotation", classLink, |
326 pkgLink), classUseTableSummary); |
377 pkgLink), classUseTableSummary, contentTree); |
327 classSubWriter.printUseInfo(pkgToClassTypeParameter.get(pkg.name()), |
378 classSubWriter.addUseInfo(pkgToClassTypeParameter.get(pkg.name()), |
328 configuration.getText("doclet.ClassUse_TypeParameter", classLink, |
379 configuration.getText("doclet.ClassUse_TypeParameter", classLink, |
329 pkgLink), classUseTableSummary); |
380 pkgLink), classUseTableSummary, contentTree); |
330 classSubWriter.printUseInfo(pkgToSubclass.get(pkg.name()), |
381 classSubWriter.addUseInfo(pkgToSubclass.get(pkg.name()), |
331 configuration.getText("doclet.ClassUse_Subclass", classLink, |
382 configuration.getText("doclet.ClassUse_Subclass", classLink, |
332 pkgLink), subclassUseTableSummary); |
383 pkgLink), subclassUseTableSummary, contentTree); |
333 classSubWriter.printUseInfo(pkgToSubinterface.get(pkg.name()), |
384 classSubWriter.addUseInfo(pkgToSubinterface.get(pkg.name()), |
334 configuration.getText("doclet.ClassUse_Subinterface", classLink, |
385 configuration.getText("doclet.ClassUse_Subinterface", classLink, |
335 pkgLink), subinterfaceUseTableSummary); |
386 pkgLink), subinterfaceUseTableSummary, contentTree); |
336 classSubWriter.printUseInfo(pkgToImplementingClass.get(pkg.name()), |
387 classSubWriter.addUseInfo(pkgToImplementingClass.get(pkg.name()), |
337 configuration.getText("doclet.ClassUse_ImplementingClass", classLink, |
388 configuration.getText("doclet.ClassUse_ImplementingClass", classLink, |
338 pkgLink), classUseTableSummary); |
389 pkgLink), classUseTableSummary, contentTree); |
339 fieldSubWriter.printUseInfo(pkgToField.get(pkg.name()), |
390 fieldSubWriter.addUseInfo(pkgToField.get(pkg.name()), |
340 configuration.getText("doclet.ClassUse_Field", classLink, |
391 configuration.getText("doclet.ClassUse_Field", classLink, |
341 pkgLink), fieldUseTableSummary); |
392 pkgLink), fieldUseTableSummary, contentTree); |
342 fieldSubWriter.printUseInfo(pkgToFieldAnnotations.get(pkg.name()), |
393 fieldSubWriter.addUseInfo(pkgToFieldAnnotations.get(pkg.name()), |
343 configuration.getText("doclet.ClassUse_FieldAnnotations", classLink, |
394 configuration.getText("doclet.ClassUse_FieldAnnotations", classLink, |
344 pkgLink), fieldUseTableSummary); |
395 pkgLink), fieldUseTableSummary, contentTree); |
345 fieldSubWriter.printUseInfo(pkgToFieldTypeParameter.get(pkg.name()), |
396 fieldSubWriter.addUseInfo(pkgToFieldTypeParameter.get(pkg.name()), |
346 configuration.getText("doclet.ClassUse_FieldTypeParameter", classLink, |
397 configuration.getText("doclet.ClassUse_FieldTypeParameter", classLink, |
347 pkgLink), fieldUseTableSummary); |
398 pkgLink), fieldUseTableSummary, contentTree); |
348 methodSubWriter.printUseInfo(pkgToMethodAnnotations.get(pkg.name()), |
399 methodSubWriter.addUseInfo(pkgToMethodAnnotations.get(pkg.name()), |
349 configuration.getText("doclet.ClassUse_MethodAnnotations", classLink, |
400 configuration.getText("doclet.ClassUse_MethodAnnotations", classLink, |
350 pkgLink), methodUseTableSummary); |
401 pkgLink), methodUseTableSummary, contentTree); |
351 methodSubWriter.printUseInfo(pkgToMethodParameterAnnotations.get(pkg.name()), |
402 methodSubWriter.addUseInfo(pkgToMethodParameterAnnotations.get(pkg.name()), |
352 configuration.getText("doclet.ClassUse_MethodParameterAnnotations", classLink, |
403 configuration.getText("doclet.ClassUse_MethodParameterAnnotations", classLink, |
353 pkgLink), methodUseTableSummary); |
404 pkgLink), methodUseTableSummary, contentTree); |
354 methodSubWriter.printUseInfo(pkgToMethodTypeParameter.get(pkg.name()), |
405 methodSubWriter.addUseInfo(pkgToMethodTypeParameter.get(pkg.name()), |
355 configuration.getText("doclet.ClassUse_MethodTypeParameter", classLink, |
406 configuration.getText("doclet.ClassUse_MethodTypeParameter", classLink, |
356 pkgLink), methodUseTableSummary); |
407 pkgLink), methodUseTableSummary, contentTree); |
357 methodSubWriter.printUseInfo(pkgToMethodReturn.get(pkg.name()), |
408 methodSubWriter.addUseInfo(pkgToMethodReturn.get(pkg.name()), |
358 configuration.getText("doclet.ClassUse_MethodReturn", classLink, |
409 configuration.getText("doclet.ClassUse_MethodReturn", classLink, |
359 pkgLink), methodUseTableSummary); |
410 pkgLink), methodUseTableSummary, contentTree); |
360 methodSubWriter.printUseInfo(pkgToMethodReturnTypeParameter.get(pkg.name()), |
411 methodSubWriter.addUseInfo(pkgToMethodReturnTypeParameter.get(pkg.name()), |
361 configuration.getText("doclet.ClassUse_MethodReturnTypeParameter", classLink, |
412 configuration.getText("doclet.ClassUse_MethodReturnTypeParameter", classLink, |
362 pkgLink), methodUseTableSummary); |
413 pkgLink), methodUseTableSummary, contentTree); |
363 methodSubWriter.printUseInfo(pkgToMethodArgs.get(pkg.name()), |
414 methodSubWriter.addUseInfo(pkgToMethodArgs.get(pkg.name()), |
364 configuration.getText("doclet.ClassUse_MethodArgs", classLink, |
415 configuration.getText("doclet.ClassUse_MethodArgs", classLink, |
365 pkgLink), methodUseTableSummary); |
416 pkgLink), methodUseTableSummary, contentTree); |
366 methodSubWriter.printUseInfo(pkgToMethodArgTypeParameter.get(pkg.name()), |
417 methodSubWriter.addUseInfo(pkgToMethodArgTypeParameter.get(pkg.name()), |
367 configuration.getText("doclet.ClassUse_MethodArgsTypeParameters", classLink, |
418 configuration.getText("doclet.ClassUse_MethodArgsTypeParameters", classLink, |
368 pkgLink), methodUseTableSummary); |
419 pkgLink), methodUseTableSummary, contentTree); |
369 methodSubWriter.printUseInfo(pkgToMethodThrows.get(pkg.name()), |
420 methodSubWriter.addUseInfo(pkgToMethodThrows.get(pkg.name()), |
370 configuration.getText("doclet.ClassUse_MethodThrows", classLink, |
421 configuration.getText("doclet.ClassUse_MethodThrows", classLink, |
371 pkgLink), methodUseTableSummary); |
422 pkgLink), methodUseTableSummary, contentTree); |
372 constrSubWriter.printUseInfo(pkgToConstructorAnnotations.get(pkg.name()), |
423 constrSubWriter.addUseInfo(pkgToConstructorAnnotations.get(pkg.name()), |
373 configuration.getText("doclet.ClassUse_ConstructorAnnotations", classLink, |
424 configuration.getText("doclet.ClassUse_ConstructorAnnotations", classLink, |
374 pkgLink), constructorUseTableSummary); |
425 pkgLink), constructorUseTableSummary, contentTree); |
375 constrSubWriter.printUseInfo(pkgToConstructorParameterAnnotations.get(pkg.name()), |
426 constrSubWriter.addUseInfo(pkgToConstructorParameterAnnotations.get(pkg.name()), |
376 configuration.getText("doclet.ClassUse_ConstructorParameterAnnotations", classLink, |
427 configuration.getText("doclet.ClassUse_ConstructorParameterAnnotations", classLink, |
377 pkgLink), constructorUseTableSummary); |
428 pkgLink), constructorUseTableSummary, contentTree); |
378 constrSubWriter.printUseInfo(pkgToConstructorArgs.get(pkg.name()), |
429 constrSubWriter.addUseInfo(pkgToConstructorArgs.get(pkg.name()), |
379 configuration.getText("doclet.ClassUse_ConstructorArgs", classLink, |
430 configuration.getText("doclet.ClassUse_ConstructorArgs", classLink, |
380 pkgLink), constructorUseTableSummary); |
431 pkgLink), constructorUseTableSummary, contentTree); |
381 constrSubWriter.printUseInfo(pkgToConstructorArgTypeParameter.get(pkg.name()), |
432 constrSubWriter.addUseInfo(pkgToConstructorArgTypeParameter.get(pkg.name()), |
382 configuration.getText("doclet.ClassUse_ConstructorArgsTypeParameters", classLink, |
433 configuration.getText("doclet.ClassUse_ConstructorArgsTypeParameters", classLink, |
383 pkgLink), constructorUseTableSummary); |
434 pkgLink), constructorUseTableSummary, contentTree); |
384 constrSubWriter.printUseInfo(pkgToConstructorThrows.get(pkg.name()), |
435 constrSubWriter.addUseInfo(pkgToConstructorThrows.get(pkg.name()), |
385 configuration.getText("doclet.ClassUse_ConstructorThrows", classLink, |
436 configuration.getText("doclet.ClassUse_ConstructorThrows", classLink, |
386 pkgLink), constructorUseTableSummary); |
437 pkgLink), constructorUseTableSummary, contentTree); |
387 } |
438 } |
388 |
439 |
389 /** |
440 /** |
390 * Print the header for the class use Listing. |
441 * Get the header for the class use Listing. |
391 */ |
442 * |
392 protected void printClassUseHeader() { |
443 * @return a content tree representing the class use header |
|
444 */ |
|
445 protected Content getClassUseHeader() { |
393 String cltype = configuration.getText(classdoc.isInterface()? |
446 String cltype = configuration.getText(classdoc.isInterface()? |
394 "doclet.Interface": |
447 "doclet.Interface":"doclet.Class"); |
395 "doclet.Class"); |
|
396 String clname = classdoc.qualifiedName(); |
448 String clname = classdoc.qualifiedName(); |
397 printHtmlHeader(configuration.getText("doclet.Window_ClassUse_Header", |
449 String title = configuration.getText("doclet.Window_ClassUse_Header", |
398 cltype, clname), null, true); |
450 cltype, clname); |
399 printTop(); |
451 Content bodyTree = getBody(true, getWindowTitle(title)); |
400 navLinks(true); |
452 addTop(bodyTree); |
401 hr(); |
453 addNavLinks(true, bodyTree); |
402 center(); |
454 Content headContent = getResource("doclet.ClassUse_Title", cltype, clname); |
403 h2(); |
455 Content heading = HtmlTree.HEADING(HtmlConstants.CLASS_PAGE_HEADING, |
404 strongText("doclet.ClassUse_Title", cltype, clname); |
456 true, HtmlStyle.title, headContent); |
405 h2End(); |
457 Content div = HtmlTree.DIV(HtmlStyle.header, heading); |
406 centerEnd(); |
458 bodyTree.addContent(div); |
407 } |
459 return bodyTree; |
408 |
460 } |
409 /** |
461 |
410 * Print the footer for the class use Listing. |
462 /** |
411 */ |
463 * Get this package link. |
412 protected void printClassUseFooter() { |
464 * |
413 hr(); |
465 * @return a content tree for the package link |
414 navLinks(false); |
466 */ |
415 printBottom(); |
467 protected Content getNavLinkPackage() { |
416 printBodyHtmlEnd(); |
468 Content linkContent = getHyperLink("../package-summary.html", "", |
417 } |
469 packageLabel); |
418 |
470 Content li = HtmlTree.LI(linkContent); |
419 |
471 return li; |
420 /** |
472 } |
421 * Print this package link |
473 |
422 */ |
474 /** |
423 protected void navLinkPackage() { |
475 * Get class page link. |
424 navCellStart(); |
476 * |
425 printHyperLink("../package-summary.html", "", |
477 * @return a content tree for the class page link |
426 configuration.getText("doclet.Package"), true, "NavBarFont1"); |
478 */ |
427 navCellEnd(); |
479 protected Content getNavLinkClass() { |
428 } |
480 Content linkContent = new RawHtml(getLink(new LinkInfoImpl( |
429 |
481 LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, "", |
430 /** |
482 configuration.getText("doclet.Class"), false))); |
431 * Print class page indicator |
483 Content li = HtmlTree.LI(linkContent); |
432 */ |
484 return li; |
433 protected void navLinkClass() { |
485 } |
434 navCellStart(); |
486 |
435 printLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_USE_HEADER, classdoc, "", |
487 /** |
436 configuration.getText("doclet.Class"), true, "NavBarFont1")); |
488 * Get the use link. |
437 navCellEnd(); |
489 * |
438 } |
490 * @return a content tree for the use link |
439 |
491 */ |
440 /** |
492 protected Content getNavLinkClassUse() { |
441 * Print class use link |
493 Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, useLabel); |
442 */ |
494 return li; |
443 protected void navLinkClassUse() { |
495 } |
444 navCellRevStart(); |
496 |
445 fontStyle("NavBarFont1Rev"); |
497 /** |
446 strongText("doclet.navClassUse"); |
498 * Get the tree link. |
447 fontEnd(); |
499 * |
448 navCellEnd(); |
500 * @return a content tree for the tree link |
449 } |
501 */ |
450 |
502 protected Content getNavLinkTree() { |
451 protected void navLinkTree() { |
503 Content linkContent = classdoc.containingPackage().isIncluded() ? |
452 navCellStart(); |
504 getHyperLink("../package-tree.html", "", treeLabel) : |
453 if (classdoc.containingPackage().isIncluded()) { |
505 getHyperLink(relativePath + "overview-tree.html", "", treeLabel); |
454 printHyperLink("../package-tree.html", "", |
506 Content li = HtmlTree.LI(linkContent); |
455 configuration.getText("doclet.Tree"), true, "NavBarFont1"); |
507 return li; |
456 } else { |
508 } |
457 printHyperLink(relativePath + "overview-tree.html", "", |
|
458 configuration.getText("doclet.Tree"), true, "NavBarFont1"); |
|
459 } |
|
460 navCellEnd(); |
|
461 } |
|
462 |
|
463 } |
509 } |