langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java
changeset 30528 dadaac1f5cc2
parent 29957 7740f9657f56
child 38617 d93a7f64e231
equal deleted inserted replaced
30412:8ffdeabc7c2b 30528:dadaac1f5cc2
   117         Content tabbedCaption = new HtmlTree(HtmlTag.CAPTION);
   117         Content tabbedCaption = new HtmlTree(HtmlTag.CAPTION);
   118         for (MethodTypes type : methodTypes) {
   118         for (MethodTypes type : methodTypes) {
   119             Content captionSpan;
   119             Content captionSpan;
   120             Content span;
   120             Content span;
   121             if (type.isDefaultTab()) {
   121             if (type.isDefaultTab()) {
   122                 captionSpan = HtmlTree.SPAN(new StringContent(type.text()));
   122                 captionSpan = HtmlTree.SPAN(configuration.getResource(type.resourceKey()));
   123                 span = HtmlTree.SPAN(type.tabId(),
   123                 span = HtmlTree.SPAN(type.tabId(),
   124                         HtmlStyle.activeTableTab, captionSpan);
   124                         HtmlStyle.activeTableTab, captionSpan);
   125             } else {
   125             } else {
   126                 captionSpan = HtmlTree.SPAN(getMethodTypeLinks(type));
   126                 captionSpan = HtmlTree.SPAN(getMethodTypeLinks(type));
   127                 span = HtmlTree.SPAN(type.tabId(),
   127                 span = HtmlTree.SPAN(type.tabId(),
   140      * @param methodType the method type to be displayed as link
   140      * @param methodType the method type to be displayed as link
   141      * @return the content tree for the method type link
   141      * @return the content tree for the method type link
   142      */
   142      */
   143     public Content getMethodTypeLinks(MethodTypes methodType) {
   143     public Content getMethodTypeLinks(MethodTypes methodType) {
   144         String jsShow = "javascript:show(" + methodType.value() +");";
   144         String jsShow = "javascript:show(" + methodType.value() +");";
   145         HtmlTree link = HtmlTree.A(jsShow, new StringContent(methodType.text()));
   145         HtmlTree link = HtmlTree.A(jsShow, configuration.getResource(methodType.resourceKey()));
   146         return link;
   146         return link;
   147     }
   147     }
   148 
   148 
   149     /**
   149     /**
   150      * Add the inherited summary header.
   150      * Add the inherited summary header.