1 /* |
1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
147 /** |
147 /** |
148 * {@inheritDoc} |
148 * {@inheritDoc} |
149 */ |
149 */ |
150 public void addInheritedSummaryLabel(ClassDoc cd, Content inheritedTree) { |
150 public void addInheritedSummaryLabel(ClassDoc cd, Content inheritedTree) { |
151 Content classLink = new RawHtml(writer.getPreQualifiedClassLink( |
151 Content classLink = new RawHtml(writer.getPreQualifiedClassLink( |
152 LinkInfoImpl.CONTEXT_MEMBER, cd, false)); |
152 LinkInfoImpl.Kind.MEMBER, cd, false)); |
153 Content label = new StringContent(cd.isInterface() ? |
153 Content label = new StringContent(cd.isInterface() ? |
154 configuration.getText("doclet.Nested_Classes_Interface_Inherited_From_Interface") : |
154 configuration.getText("doclet.Nested_Classes_Interface_Inherited_From_Interface") : |
155 configuration.getText("doclet.Nested_Classes_Interfaces_Inherited_From_Class")); |
155 configuration.getText("doclet.Nested_Classes_Interfaces_Inherited_From_Class")); |
156 Content labelHeading = HtmlTree.HEADING(HtmlConstants.INHERITED_SUMMARY_HEADING, |
156 Content labelHeading = HtmlTree.HEADING(HtmlConstants.INHERITED_SUMMARY_HEADING, |
157 label); |
157 label); |
161 } |
161 } |
162 |
162 |
163 /** |
163 /** |
164 * {@inheritDoc} |
164 * {@inheritDoc} |
165 */ |
165 */ |
166 protected void addSummaryLink(int context, ClassDoc cd, ProgramElementDoc member, |
166 protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, |
167 Content tdSummary) { |
167 Content tdSummary) { |
168 Content strong = HtmlTree.STRONG(new RawHtml( |
168 Content strong = HtmlTree.STRONG(new RawHtml( |
169 writer.getLink(new LinkInfoImpl(configuration, context, (ClassDoc)member, false)))); |
169 writer.getLink(new LinkInfoImpl(configuration, context, (ClassDoc)member, false)))); |
170 Content code = HtmlTree.CODE(strong); |
170 Content code = HtmlTree.CODE(strong); |
171 tdSummary.addContent(code); |
171 tdSummary.addContent(code); |
175 * {@inheritDoc} |
175 * {@inheritDoc} |
176 */ |
176 */ |
177 protected void addInheritedSummaryLink(ClassDoc cd, |
177 protected void addInheritedSummaryLink(ClassDoc cd, |
178 ProgramElementDoc member, Content linksTree) { |
178 ProgramElementDoc member, Content linksTree) { |
179 linksTree.addContent(new RawHtml( |
179 linksTree.addContent(new RawHtml( |
180 writer.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.CONTEXT_MEMBER, |
180 writer.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER, |
181 (ClassDoc)member, false)))); |
181 (ClassDoc)member, false)))); |
182 } |
182 } |
183 |
183 |
184 /** |
184 /** |
185 * {@inheritDoc} |
185 * {@inheritDoc} |