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

changeset 2147
130b8c0e570e
parent 1993
240f424cc0d5
child 2233
4a6f853f8721
equal deleted inserted replaced
2146:7de97abc4a5c 2147:130b8c0e570e
252 Content parameterLinks = getTypeParameterLinks(linkInfo); 252 Content parameterLinks = getTypeParameterLinks(linkInfo);
253 if (configuration.linksource) { 253 if (configuration.linksource) {
254 addSrcLink(classDoc, className, pre); 254 addSrcLink(classDoc, className, pre);
255 pre.addContent(parameterLinks); 255 pre.addContent(parameterLinks);
256 } else { 256 } else {
257 Content span = HtmlTree.SPAN(HtmlStyle.strong, className); 257 Content span = HtmlTree.SPAN(HtmlStyle.typeNameLabel, className);
258 span.addContent(parameterLinks); 258 span.addContent(parameterLinks);
259 pre.addContent(span); 259 pre.addContent(span);
260 } 260 }
261 if (!isInterface) { 261 if (!isInterface) {
262 Type superclass = Util.getFirstVisibleSuperClass(classDoc, 262 Type superclass = Util.getFirstVisibleSuperClass(classDoc,
545 public void addClassDeprecationInfo(Content classInfoTree) { 545 public void addClassDeprecationInfo(Content classInfoTree) {
546 Content hr = new HtmlTree(HtmlTag.HR); 546 Content hr = new HtmlTree(HtmlTag.HR);
547 classInfoTree.addContent(hr); 547 classInfoTree.addContent(hr);
548 Tag[] deprs = classDoc.tags("deprecated"); 548 Tag[] deprs = classDoc.tags("deprecated");
549 if (Util.isDeprecated(classDoc)) { 549 if (Util.isDeprecated(classDoc)) {
550 Content strong = HtmlTree.SPAN(HtmlStyle.strong, deprecatedPhrase); 550 Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase);
551 Content div = HtmlTree.DIV(HtmlStyle.block, strong); 551 Content div = HtmlTree.DIV(HtmlStyle.block, deprLabel);
552 if (deprs.length > 0) { 552 if (deprs.length > 0) {
553 Tag[] commentTags = deprs[0].inlineTags(); 553 Tag[] commentTags = deprs[0].inlineTags();
554 if (commentTags.length > 0) { 554 if (commentTags.length > 0) {
555 div.addContent(getSpace()); 555 div.addContent(getSpace());
556 addInlineDeprecatedComment(classDoc, deprs[0], div); 556 addInlineDeprecatedComment(classDoc, deprs[0], div);

mercurial