240 * @param pkg the package that used the given package |
240 * @param pkg the package that used the given package |
241 * @param contentTree the content tree to which the information will be added |
241 * @param contentTree the content tree to which the information will be added |
242 */ |
242 */ |
243 protected void addPackageUse(PackageDoc pkg, Content contentTree) throws IOException { |
243 protected void addPackageUse(PackageDoc pkg, Content contentTree) throws IOException { |
244 Content tdFirst = HtmlTree.TD(HtmlStyle.colFirst, |
244 Content tdFirst = HtmlTree.TD(HtmlStyle.colFirst, |
245 getHyperLink("", pkg.name(), new StringContent(Util.getPackageName(pkg)))); |
245 getHyperLink("", Util.getPackageName(pkg), |
|
246 new RawHtml(Util.getPackageName(pkg)))); |
246 contentTree.addContent(tdFirst); |
247 contentTree.addContent(tdFirst); |
247 HtmlTree tdLast = new HtmlTree(HtmlTag.TD); |
248 HtmlTree tdLast = new HtmlTree(HtmlTag.TD); |
248 tdLast.addStyle(HtmlStyle.colLast); |
249 tdLast.addStyle(HtmlStyle.colLast); |
249 addSummaryComment(pkg, tdLast); |
250 if (pkg != null && pkg.name().length() != 0) { |
|
251 addSummaryComment(pkg, tdLast); |
|
252 } else { |
|
253 tdLast.addContent(getSpace()); |
|
254 } |
250 contentTree.addContent(tdLast); |
255 contentTree.addContent(tdLast); |
251 } |
256 } |
252 |
257 |
253 /** |
258 /** |
254 * Get the header for the package use listing. |
259 * Get the header for the package use listing. |