343 } |
343 } |
344 |
344 |
345 /** |
345 /** |
346 * Print use info. |
346 * Print use info. |
347 */ |
347 */ |
348 protected void printUseInfo(Object mems, String heading) { |
348 protected void printUseInfo(List<? extends ProgramElementDoc> mems, String heading) { |
349 if (mems == null) { |
349 if (mems == null) { |
350 return; |
350 return; |
351 } |
351 } |
352 List members = (List)mems; |
352 List<? extends ProgramElementDoc> members = mems; |
353 if (members.size() > 0) { |
353 if (members.size() > 0) { |
354 writer.tableIndexSummary(); |
354 writer.tableIndexSummary(); |
355 writer.tableUseInfoHeaderStart("#CCCCFF"); |
355 writer.tableUseInfoHeaderStart("#CCCCFF"); |
356 writer.print(heading); |
356 writer.print(heading); |
357 writer.tableHeaderEnd(); |
357 writer.tableHeaderEnd(); |
358 for (Iterator it = members.iterator(); it.hasNext(); ) { |
358 for (Iterator<? extends ProgramElementDoc> it = members.iterator(); it.hasNext(); ) { |
359 ProgramElementDoc pgmdoc = (ProgramElementDoc)it.next(); |
359 ProgramElementDoc pgmdoc = it.next(); |
360 ClassDoc cd = pgmdoc.containingClass(); |
360 ClassDoc cd = pgmdoc.containingClass(); |
361 |
361 |
362 writer.printSummaryLinkType(this, pgmdoc); |
362 writer.printSummaryLinkType(this, pgmdoc); |
363 if (cd != null && !(pgmdoc instanceof ConstructorDoc) |
363 if (cd != null && !(pgmdoc instanceof ConstructorDoc) |
364 && !(pgmdoc instanceof ClassDoc)) { |
364 && !(pgmdoc instanceof ClassDoc)) { |