91 |
91 |
92 /** |
92 /** |
93 * {@inheritDoc} |
93 * {@inheritDoc} |
94 */ |
94 */ |
95 public String getTableSummary() { |
95 public String getTableSummary() { |
96 return configuration().getText("doclet.Member_Table_Summary", |
96 return configuration.getText("doclet.Member_Table_Summary", |
97 configuration().getText("doclet.Nested_Class_Summary"), |
97 configuration.getText("doclet.Nested_Class_Summary"), |
98 configuration().getText("doclet.nested_classes")); |
98 configuration.getText("doclet.nested_classes")); |
99 } |
99 } |
100 |
100 |
101 /** |
101 /** |
102 * {@inheritDoc} |
102 * {@inheritDoc} |
103 */ |
103 */ |
104 public String getCaption() { |
104 public String getCaption() { |
105 return configuration().getText("doclet.Nested_Classes"); |
105 return configuration.getText("doclet.Nested_Classes"); |
106 } |
106 } |
107 |
107 |
108 /** |
108 /** |
109 * {@inheritDoc} |
109 * {@inheritDoc} |
110 */ |
110 */ |
111 public String[] getSummaryTableHeader(ProgramElementDoc member) { |
111 public String[] getSummaryTableHeader(ProgramElementDoc member) { |
112 String[] header; |
112 String[] header; |
113 if (member.isInterface()) { |
113 if (member.isInterface()) { |
114 header = new String[] { |
114 header = new String[] { |
115 writer.getModifierTypeHeader(), |
115 writer.getModifierTypeHeader(), |
116 configuration().getText("doclet.0_and_1", |
116 configuration.getText("doclet.0_and_1", |
117 configuration().getText("doclet.Interface"), |
117 configuration.getText("doclet.Interface"), |
118 configuration().getText("doclet.Description")) |
118 configuration.getText("doclet.Description")) |
119 }; |
119 }; |
120 } |
120 } |
121 else { |
121 else { |
122 header = new String[] { |
122 header = new String[] { |
123 writer.getModifierTypeHeader(), |
123 writer.getModifierTypeHeader(), |
124 configuration().getText("doclet.0_and_1", |
124 configuration.getText("doclet.0_and_1", |
125 configuration().getText("doclet.Class"), |
125 configuration.getText("doclet.Class"), |
126 configuration().getText("doclet.Description")) |
126 configuration.getText("doclet.Description")) |
127 }; |
127 }; |
128 } |
128 } |
129 return header; |
129 return header; |
130 } |
130 } |
131 |
131 |
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.CONTEXT_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); |
158 labelHeading.addContent(writer.getSpace()); |
158 labelHeading.addContent(writer.getSpace()); |
159 labelHeading.addContent(classLink); |
159 labelHeading.addContent(classLink); |
160 inheritedTree.addContent(labelHeading); |
160 inheritedTree.addContent(labelHeading); |
164 * {@inheritDoc} |
164 * {@inheritDoc} |
165 */ |
165 */ |
166 protected void addSummaryLink(int context, ClassDoc cd, ProgramElementDoc member, |
166 protected void addSummaryLink(int 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(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); |
172 } |
172 } |
173 |
173 |
174 /** |
174 /** |
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(LinkInfoImpl.CONTEXT_MEMBER, |
180 writer.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.CONTEXT_MEMBER, |
181 (ClassDoc)member, false)))); |
181 (ClassDoc)member, false)))); |
182 } |
182 } |
183 |
183 |
184 /** |
184 /** |
185 * {@inheritDoc} |
185 * {@inheritDoc} |