87 * |
87 * |
88 * @param unicode Unicode for which member list information to be generated |
88 * @param unicode Unicode for which member list information to be generated |
89 * @param memberlist List of members for the unicode character |
89 * @param memberlist List of members for the unicode character |
90 * @param contentTree the content tree to which the information will be added |
90 * @param contentTree the content tree to which the information will be added |
91 */ |
91 */ |
92 protected void addContents(Character unicode, List<? extends Doc> memberlist, |
92 protected void addContents(Character uc, List<? extends Doc> memberlist, |
93 Content contentTree) { |
93 Content contentTree) { |
94 contentTree.addContent(getMarkerAnchor("_" + unicode + "_")); |
94 String unicode = uc.toString(); |
95 Content headContent = new StringContent(unicode.toString()); |
95 contentTree.addContent(getMarkerAnchorForIndex(unicode)); |
|
96 Content headContent = new StringContent(unicode); |
96 Content heading = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, false, |
97 Content heading = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, false, |
97 HtmlStyle.title, headContent); |
98 HtmlStyle.title, headContent); |
98 contentTree.addContent(heading); |
99 contentTree.addContent(heading); |
99 int memberListSize = memberlist.size(); |
100 int memberListSize = memberlist.size(); |
100 // Display the list only if there are elements to be displayed. |
101 // Display the list only if there are elements to be displayed. |
251 } |
252 } |
252 } |
253 } |
253 addPreQualifiedClassLink(LinkInfoImpl.Kind.INDEX, containing, |
254 addPreQualifiedClassLink(LinkInfoImpl.Kind.INDEX, containing, |
254 false, contentTree); |
255 false, contentTree); |
255 } |
256 } |
|
257 |
|
258 /** |
|
259 * Get the marker anchor which will be added to the index documentation tree. |
|
260 * |
|
261 * @param anchorNameForIndex the anchor name attribute for index page |
|
262 * @return a content tree for the marker anchor |
|
263 */ |
|
264 public Content getMarkerAnchorForIndex(String anchorNameForIndex) { |
|
265 return getMarkerAnchor(getNameForIndex(anchorNameForIndex), null); |
|
266 } |
|
267 |
|
268 /** |
|
269 * Generate a valid HTML name for member index page. |
|
270 * |
|
271 * @param unicode the string that needs to be converted to valid HTML name. |
|
272 * @return a valid HTML name string. |
|
273 */ |
|
274 public String getNameForIndex(String unicode) { |
|
275 return "I:" + getName(unicode); |
|
276 } |
256 } |
277 } |