541 } else { |
541 } else { |
542 navDiv.addContent(getMarkerAnchor("navbar_bottom_firstrow")); |
542 navDiv.addContent(getMarkerAnchor("navbar_bottom_firstrow")); |
543 } |
543 } |
544 HtmlTree navList = new HtmlTree(HtmlTag.UL); |
544 HtmlTree navList = new HtmlTree(HtmlTag.UL); |
545 navList.addStyle(HtmlStyle.navList); |
545 navList.addStyle(HtmlStyle.navList); |
546 navList.addAttr(HtmlAttr.TITLE, "Navigation"); |
546 navList.addAttr(HtmlAttr.TITLE, |
|
547 configuration.getText("doclet.Navigation")); |
547 if (configuration.createoverview) { |
548 if (configuration.createoverview) { |
548 navList.addContent(getNavLinkContents()); |
549 navList.addContent(getNavLinkContents()); |
549 } |
550 } |
550 if (configuration.packages.length == 1) { |
551 if (configuration.packages.length == 1) { |
551 navList.addContent(getNavLinkPackage(configuration.packages[0])); |
552 navList.addContent(getNavLinkPackage(configuration.packages[0])); |
1297 * @param strong true if the link should be strong. |
1298 * @param strong true if the link should be strong. |
1298 * @return the link for the given member. |
1299 * @return the link for the given member. |
1299 */ |
1300 */ |
1300 public String getDocLink(int context, ClassDoc classDoc, MemberDoc doc, |
1301 public String getDocLink(int context, ClassDoc classDoc, MemberDoc doc, |
1301 String label, boolean strong) { |
1302 String label, boolean strong) { |
|
1303 return getDocLink(context, classDoc, doc, label, strong, false); |
|
1304 } |
|
1305 |
|
1306 /** |
|
1307 * Return the link for the given member. |
|
1308 * |
|
1309 * @param context the id of the context where the link will be printed. |
|
1310 * @param classDoc the classDoc that we should link to. This is not |
|
1311 * necessarily equal to doc.containingClass(). We may be |
|
1312 * inheriting comments. |
|
1313 * @param doc the member being linked to. |
|
1314 * @param label the label for the link. |
|
1315 * @param strong true if the link should be strong. |
|
1316 * @param isProperty true if the doc parameter is a JavaFX property. |
|
1317 * @return the link for the given member. |
|
1318 */ |
|
1319 public String getDocLink(int context, ClassDoc classDoc, MemberDoc doc, |
|
1320 String label, boolean strong, boolean isProperty) { |
1302 if (! (doc.isIncluded() || |
1321 if (! (doc.isIncluded() || |
1303 Util.isLinkable(classDoc, configuration))) { |
1322 Util.isLinkable(classDoc, configuration))) { |
1304 return label; |
1323 return label; |
1305 } else if (doc instanceof ExecutableMemberDoc) { |
1324 } else if (doc instanceof ExecutableMemberDoc) { |
1306 ExecutableMemberDoc emd = (ExecutableMemberDoc)doc; |
1325 ExecutableMemberDoc emd = (ExecutableMemberDoc)doc; |
1307 return getLink(new LinkInfoImpl(configuration, context, classDoc, |
1326 return getLink(new LinkInfoImpl(configuration, context, classDoc, |
1308 getAnchor(emd), label, strong)); |
1327 getAnchor(emd, isProperty), label, strong)); |
1309 } else if (doc instanceof MemberDoc) { |
1328 } else if (doc instanceof MemberDoc) { |
1310 return getLink(new LinkInfoImpl(configuration, context, classDoc, |
1329 return getLink(new LinkInfoImpl(configuration, context, classDoc, |
1311 doc.name(), label, strong)); |
1330 doc.name(), label, strong)); |
1312 } else { |
1331 } else { |
1313 return label; |
1332 return label; |
1341 return new StringContent(label); |
1360 return new StringContent(label); |
1342 } |
1361 } |
1343 } |
1362 } |
1344 |
1363 |
1345 public String getAnchor(ExecutableMemberDoc emd) { |
1364 public String getAnchor(ExecutableMemberDoc emd) { |
|
1365 return getAnchor(emd, false); |
|
1366 } |
|
1367 |
|
1368 public String getAnchor(ExecutableMemberDoc emd, boolean isProperty) { |
|
1369 if (isProperty) { |
|
1370 return emd.name(); |
|
1371 } |
1346 StringBuilder signature = new StringBuilder(emd.signature()); |
1372 StringBuilder signature = new StringBuilder(emd.signature()); |
1347 StringBuilder signatureParsed = new StringBuilder(); |
1373 StringBuilder signatureParsed = new StringBuilder(); |
1348 int counter = 0; |
1374 int counter = 0; |
1349 for (int i = 0; i < signature.length(); i++) { |
1375 for (int i = 0; i < signature.length(); i++) { |
1350 char c = signature.charAt(i); |
1376 char c = signature.charAt(i); |