src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java

changeset 182
47a62d8d98b4
parent 1
9a66ca7c79fa
child 184
905e151a185a
equal deleted inserted replaced
178:4efd44aa85ff 182:47a62d8d98b4
89 * Print class page indicator 89 * Print class page indicator
90 */ 90 */
91 protected void navLinkClass() { 91 protected void navLinkClass() {
92 navCellRevStart(); 92 navCellRevStart();
93 fontStyle("NavBarFont1Rev"); 93 fontStyle("NavBarFont1Rev");
94 boldText("doclet.Class"); 94 strongText("doclet.Class");
95 fontEnd(); 95 fontEnd();
96 navCellEnd(); 96 navCellEnd();
97 } 97 }
98 98
99 /** 99 /**
183 String name = classDoc.name() + 183 String name = classDoc.name() +
184 getTypeParameterLinks(linkInfo); 184 getTypeParameterLinks(linkInfo);
185 if (configuration().linksource) { 185 if (configuration().linksource) {
186 printSrcLink(classDoc, name); 186 printSrcLink(classDoc, name);
187 } else { 187 } else {
188 bold(name); 188 strong(name);
189 } 189 }
190 if (!isInterface) { 190 if (!isInterface) {
191 Type superclass = Util.getFirstVisibleSuperClass(classDoc, 191 Type superclass = Util.getFirstVisibleSuperClass(classDoc,
192 configuration()); 192 configuration());
193 if (superclass != null) { 193 if (superclass != null) {
256 */ 256 */
257 public void writeClassDeprecationInfo() { 257 public void writeClassDeprecationInfo() {
258 hr(); 258 hr();
259 Tag[] deprs = classDoc.tags("deprecated"); 259 Tag[] deprs = classDoc.tags("deprecated");
260 if (Util.isDeprecated(classDoc)) { 260 if (Util.isDeprecated(classDoc)) {
261 boldText("doclet.Deprecated"); 261 strongText("doclet.Deprecated");
262 if (deprs.length > 0) { 262 if (deprs.length > 0) {
263 Tag[] commentTags = deprs[0].inlineTags(); 263 Tag[] commentTags = deprs[0].inlineTags();
264 if (commentTags.length > 0) { 264 if (commentTags.length > 0) {
265 space(); 265 space();
266 printInlineDeprecatedComment(classDoc, deprs[0]); 266 printInlineDeprecatedComment(classDoc, deprs[0]);
305 new LinkInfoImpl( 305 new LinkInfoImpl(
306 LinkInfoImpl.CONTEXT_TREE, 306 LinkInfoImpl.CONTEXT_TREE,
307 classDoc, false)); 307 classDoc, false));
308 if (configuration.shouldExcludeQualifier( 308 if (configuration.shouldExcludeQualifier(
309 classDoc.containingPackage().name())) { 309 classDoc.containingPackage().name())) {
310 bold(type.asClassDoc().name() + typeParameters); 310 strong(type.asClassDoc().name() + typeParameters);
311 } else { 311 } else {
312 bold(type.asClassDoc().qualifiedName() + typeParameters); 312 strong(type.asClassDoc().qualifiedName() + typeParameters);
313 } 313 }
314 } else { 314 } else {
315 print(getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_TREE_PARENT, 315 print(getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_TREE_PARENT,
316 type instanceof ClassDoc ? (ClassDoc) type : type, 316 type instanceof ClassDoc ? (ClassDoc) type : type,
317 configuration.getClassName(type.asClassDoc()), false))); 317 configuration.getClassName(type.asClassDoc()), false)));
357 } 357 }
358 List subclasses = classtree.subs(classDoc, false); 358 List subclasses = classtree.subs(classDoc, false);
359 if (subclasses.size() > 0) { 359 if (subclasses.size() > 0) {
360 dl(); 360 dl();
361 dt(); 361 dt();
362 boldText("doclet.Subclasses"); 362 strongText("doclet.Subclasses");
363 writeClassLinks(LinkInfoImpl.CONTEXT_SUBCLASSES, 363 writeClassLinks(LinkInfoImpl.CONTEXT_SUBCLASSES,
364 subclasses); 364 subclasses);
365 } 365 }
366 } 366 }
367 } 367 }
373 if (classDoc.isInterface()) { 373 if (classDoc.isInterface()) {
374 List subInterfaces = classtree.allSubs(classDoc, false); 374 List subInterfaces = classtree.allSubs(classDoc, false);
375 if (subInterfaces.size() > 0) { 375 if (subInterfaces.size() > 0) {
376 dl(); 376 dl();
377 dt(); 377 dt();
378 boldText("doclet.Subinterfaces"); 378 strongText("doclet.Subinterfaces");
379 writeClassLinks(LinkInfoImpl.CONTEXT_SUBINTERFACES, 379 writeClassLinks(LinkInfoImpl.CONTEXT_SUBINTERFACES,
380 subInterfaces); 380 subInterfaces);
381 } 381 }
382 } 382 }
383 } 383 }
395 } 395 }
396 List implcl = classtree.implementingclasses(classDoc); 396 List implcl = classtree.implementingclasses(classDoc);
397 if (implcl.size() > 0) { 397 if (implcl.size() > 0) {
398 dl(); 398 dl();
399 dt(); 399 dt();
400 boldText("doclet.Implementing_Classes"); 400 strongText("doclet.Implementing_Classes");
401 writeClassLinks(LinkInfoImpl.CONTEXT_IMPLEMENTED_CLASSES, 401 writeClassLinks(LinkInfoImpl.CONTEXT_IMPLEMENTED_CLASSES,
402 implcl); 402 implcl);
403 } 403 }
404 } 404 }
405 405
411 // it doesn't walk up the tree like we want it to. 411 // it doesn't walk up the tree like we want it to.
412 List interfaceArray = Util.getAllInterfaces(classDoc, configuration); 412 List interfaceArray = Util.getAllInterfaces(classDoc, configuration);
413 if (classDoc.isClass() && interfaceArray.size() > 0) { 413 if (classDoc.isClass() && interfaceArray.size() > 0) {
414 dl(); 414 dl();
415 dt(); 415 dt();
416 boldText("doclet.All_Implemented_Interfaces"); 416 strongText("doclet.All_Implemented_Interfaces");
417 writeClassLinks(LinkInfoImpl.CONTEXT_IMPLEMENTED_INTERFACES, 417 writeClassLinks(LinkInfoImpl.CONTEXT_IMPLEMENTED_INTERFACES,
418 interfaceArray); 418 interfaceArray);
419 } 419 }
420 } 420 }
421 421
427 // it doesn't walk up the tree like we want it to. 427 // it doesn't walk up the tree like we want it to.
428 List interfaceArray = Util.getAllInterfaces(classDoc, configuration); 428 List interfaceArray = Util.getAllInterfaces(classDoc, configuration);
429 if (classDoc.isInterface() && interfaceArray.size() > 0) { 429 if (classDoc.isInterface() && interfaceArray.size() > 0) {
430 dl(); 430 dl();
431 dt(); 431 dt();
432 boldText("doclet.All_Superinterfaces"); 432 strongText("doclet.All_Superinterfaces");
433 writeClassLinks(LinkInfoImpl.CONTEXT_SUPER_INTERFACES, 433 writeClassLinks(LinkInfoImpl.CONTEXT_SUPER_INTERFACES,
434 interfaceArray); 434 interfaceArray);
435 } 435 }
436 } 436 }
437 437
568 ClassDoc outerClass = classDoc.containingClass(); 568 ClassDoc outerClass = classDoc.containingClass();
569 if (outerClass != null) { 569 if (outerClass != null) {
570 dl(); 570 dl();
571 dt(); 571 dt();
572 if (outerClass.isInterface()) { 572 if (outerClass.isInterface()) {
573 boldText("doclet.Enclosing_Interface"); 573 strongText("doclet.Enclosing_Interface");
574 } else { 574 } else {
575 boldText("doclet.Enclosing_Class"); 575 strongText("doclet.Enclosing_Class");
576 } 576 }
577 dd(); 577 dd();
578 printLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS, outerClass, 578 printLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS, outerClass,
579 false)); 579 false));
580 ddEnd(); 580 ddEnd();

mercurial