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

changeset 182
47a62d8d98b4
parent 1
9a66ca7c79fa
child 233
5240b1120530
     1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java	Fri Dec 05 21:59:59 2008 -0800
     1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java	Thu Jan 08 16:26:59 2009 -0800
     1.3 @@ -69,9 +69,9 @@
     1.4          Tag[] deprs = doc.tags("deprecated");
     1.5          if (doc instanceof ClassDoc) {
     1.6              if (Util.isDeprecated((ProgramElementDoc) doc)) {
     1.7 -                output.append("<B>" +
     1.8 +                output.append("<STRONG>" +
     1.9                      ConfigurationImpl.getInstance().
    1.10 -                        getText("doclet.Deprecated") + "</B>&nbsp;");
    1.11 +                        getText("doclet.Deprecated") + "</STRONG>&nbsp;");
    1.12                  if (deprs.length > 0) {
    1.13                      Tag[] commentTags = deprs[0].inlineTags();
    1.14                      if (commentTags.length > 0) {
    1.15 @@ -86,9 +86,9 @@
    1.16          } else {
    1.17              MemberDoc member = (MemberDoc) doc;
    1.18              if (Util.isDeprecated((ProgramElementDoc) doc)) {
    1.19 -                output.append("<DD><B>" +
    1.20 +                output.append("<DD><STRONG>" +
    1.21                      ConfigurationImpl.getInstance().
    1.22 -                            getText("doclet.Deprecated") + "</B>&nbsp;");
    1.23 +                            getText("doclet.Deprecated") + "</STRONG>&nbsp;");
    1.24                  if (deprs.length > 0) {
    1.25                      output.append("<I>");
    1.26                      output.append(commentTagsToOutput(null, doc,
    1.27 @@ -101,9 +101,9 @@
    1.28                  }
    1.29              } else {
    1.30                  if (Util.isDeprecated(member.containingClass())) {
    1.31 -                    output.append("<DD><B>" +
    1.32 +                    output.append("<DD><STRONG>" +
    1.33                      ConfigurationImpl.getInstance().
    1.34 -                            getText("doclet.Deprecated") + "</B>&nbsp;");
    1.35 +                            getText("doclet.Deprecated") + "</STRONG>&nbsp;");
    1.36                  }
    1.37              }
    1.38          }
    1.39 @@ -123,7 +123,7 @@
    1.40      public TagletOutput getParamHeader(String header) {
    1.41          StringBuffer result = new StringBuffer();
    1.42          result.append("<DT>");
    1.43 -        result.append("<B>" +  header + "</B>");
    1.44 +        result.append("<STRONG>" +  header + "</STRONG>");
    1.45          return new TagletOutputImpl(result.toString());
    1.46      }
    1.47  
    1.48 @@ -141,8 +141,8 @@
    1.49       */
    1.50      public TagletOutput returnTagOutput(Tag returnTag) {
    1.51          TagletOutput result = new TagletOutputImpl(DocletConstants.NL + "<DT>" +
    1.52 -            "<B>" + htmlWriter.configuration.getText("doclet.Returns") +
    1.53 -            "</B>" + "<DD>" +
    1.54 +            "<STRONG>" + htmlWriter.configuration.getText("doclet.Returns") +
    1.55 +            "</STRONG>" + "<DD>" +
    1.56              htmlWriter.commentTagsToString(returnTag, null, returnTag.inlineTags(),
    1.57              false));
    1.58          return result;
    1.59 @@ -189,7 +189,7 @@
    1.60          if (result != null && result.length() > 0) {
    1.61              return result + ", " + DocletConstants.NL;
    1.62          } else {
    1.63 -            return "<DT><B>" + htmlWriter.configuration().getText("doclet.See_Also") + "</B><DD>";
    1.64 +            return "<DT><STRONG>" + htmlWriter.configuration().getText("doclet.See_Also") + "</STRONG><DD>";
    1.65          }
    1.66       }
    1.67  
    1.68 @@ -197,7 +197,7 @@
    1.69       * {@inheritDoc}
    1.70       */
    1.71      public TagletOutput simpleTagOutput(Tag[] simpleTags, String header) {
    1.72 -        String result = "<DT><B>" + header + "</B></DT>" + DocletConstants.NL +
    1.73 +        String result = "<DT><STRONG>" + header + "</STRONG></DT>" + DocletConstants.NL +
    1.74              "  <DD>";
    1.75          for (int i = 0; i < simpleTags.length; i++) {
    1.76              if (i > 0) {
    1.77 @@ -212,7 +212,7 @@
    1.78       * {@inheritDoc}
    1.79       */
    1.80      public TagletOutput simpleTagOutput(Tag simpleTag, String header) {
    1.81 -        return new TagletOutputImpl("<DT><B>" + header + "</B></DT>" + "  <DD>"
    1.82 +        return new TagletOutputImpl("<DT><STRONG>" + header + "</STRONG></DT>" + "  <DD>"
    1.83              + htmlWriter.commentTagsToString(simpleTag, null, simpleTag.inlineTags(), false)
    1.84              + "</DD>" + DocletConstants.NL);
    1.85      }
    1.86 @@ -221,8 +221,8 @@
    1.87       * {@inheritDoc}
    1.88       */
    1.89      public TagletOutput getThrowsHeader() {
    1.90 -        return new TagletOutputImpl(DocletConstants.NL + "<DT>" + "<B>" +
    1.91 -            htmlWriter.configuration().getText("doclet.Throws") + "</B>");
    1.92 +        return new TagletOutputImpl(DocletConstants.NL + "<DT>" + "<STRONG>" +
    1.93 +            htmlWriter.configuration().getText("doclet.Throws") + "</STRONG>");
    1.94      }
    1.95  
    1.96      /**

mercurial