1038 return getHyperLinkString(crossPkgLink, label, isStrong, style); |
1038 return getHyperLinkString(crossPkgLink, label, isStrong, style); |
1039 } else { |
1039 } else { |
1040 return label; |
1040 return label; |
1041 } |
1041 } |
1042 } |
1042 } |
|
1043 } |
|
1044 |
|
1045 /** |
|
1046 * Return the link to the given package. |
|
1047 * |
|
1048 * @param pkg the package to link to. |
|
1049 * @param label the label for the link. |
|
1050 * @return a content tree for the package link. |
|
1051 */ |
|
1052 public Content getPackageLink(PackageDoc pkg, String label) { |
|
1053 return getPackageLink(pkg, new StringContent(label)); |
1043 } |
1054 } |
1044 |
1055 |
1045 /** |
1056 /** |
1046 * Return the link to the given package. |
1057 * Return the link to the given package. |
1047 * |
1058 * |