src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java

changeset 1740
ce4f0769b4b2
parent 1738
6ea964c78845
child 1741
4c43e51433ba
equal deleted inserted replaced
1739:e6c5b5ee9fac 1740:ce4f0769b4b2
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 *

mercurial