35 * Writes nested class documentation in HTML format. |
35 * Writes nested class documentation in HTML format. |
36 * |
36 * |
37 * @author Robert Field |
37 * @author Robert Field |
38 * @author Atul M Dambalkar |
38 * @author Atul M Dambalkar |
39 * @author Jamie Ho (rewrite) |
39 * @author Jamie Ho (rewrite) |
|
40 * @author Bhavesh Patel (Modified) |
40 */ |
41 */ |
41 public class NestedClassWriterImpl extends AbstractMemberWriter |
42 public class NestedClassWriterImpl extends AbstractMemberWriter |
42 implements MemberSummaryWriter { |
43 implements MemberSummaryWriter { |
43 |
44 |
44 private boolean printedSummaryHeader = false; |
45 private boolean printedSummaryHeader = false; |
145 |
146 |
146 public int getMemberKind() { |
147 public int getMemberKind() { |
147 return VisibleMemberMap.INNERCLASSES; |
148 return VisibleMemberMap.INNERCLASSES; |
148 } |
149 } |
149 |
150 |
150 public void printSummaryLabel(ClassDoc cd) { |
151 public void printSummaryLabel() { |
151 writer.strongText("doclet.Nested_Class_Summary"); |
152 writer.printText("doclet.Nested_Class_Summary"); |
|
153 } |
|
154 |
|
155 public void printTableSummary() { |
|
156 writer.tableIndexSummary(configuration().getText("doclet.Member_Table_Summary", |
|
157 configuration().getText("doclet.Nested_Class_Summary"), |
|
158 configuration().getText("doclet.nested_classes"))); |
|
159 } |
|
160 |
|
161 public void printSummaryTableHeader(ProgramElementDoc member) { |
|
162 String[] header; |
|
163 if (member.isInterface()) { |
|
164 header = new String[] { |
|
165 writer.getModifierTypeHeader(), |
|
166 configuration().getText("doclet.0_and_1", |
|
167 configuration().getText("doclet.Interface"), |
|
168 configuration().getText("doclet.Description")) |
|
169 }; |
|
170 } |
|
171 else { |
|
172 header = new String[] { |
|
173 writer.getModifierTypeHeader(), |
|
174 configuration().getText("doclet.0_and_1", |
|
175 configuration().getText("doclet.Class"), |
|
176 configuration().getText("doclet.Description")) |
|
177 }; |
|
178 } |
|
179 writer.summaryTableHeader(header, "col"); |
152 } |
180 } |
153 |
181 |
154 public void printSummaryAnchor(ClassDoc cd) { |
182 public void printSummaryAnchor(ClassDoc cd) { |
155 writer.anchor("nested_class_summary"); |
183 writer.anchor("nested_class_summary"); |
156 } |
184 } |