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

changeset 1735
8ea30d59ac41
parent 1410
bfec2a1cc869
child 1736
74cd21f2c2fe
equal deleted inserted replaced
1734:8dd528992c15 1735:8ea30d59ac41
1 /* 1 /*
2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
139 * @param dlTree the content tree to which the description will be added 139 * @param dlTree the content tree to which the description will be added
140 */ 140 */
141 protected void addDescription(ClassDoc cd, Content dlTree) { 141 protected void addDescription(ClassDoc cd, Content dlTree) {
142 Content link = new RawHtml( 142 Content link = new RawHtml(
143 getLink(new LinkInfoImpl(configuration, 143 getLink(new LinkInfoImpl(configuration,
144 LinkInfoImpl.CONTEXT_INDEX, cd, true))); 144 LinkInfoImpl.Kind.INDEX, cd, true)));
145 Content dt = HtmlTree.DT(link); 145 Content dt = HtmlTree.DT(link);
146 dt.addContent(" - "); 146 dt.addContent(" - ");
147 addClassInfo(cd, dt); 147 addClassInfo(cd, dt);
148 dlTree.addContent(dt); 148 dlTree.addContent(dt);
149 Content dd = new HtmlTree(HtmlTag.DD); 149 Content dd = new HtmlTree(HtmlTag.DD);
150 addComment(cd, dd); 150 addComment(cd, dd);
151 dlTree.addContent(dd); 151 dlTree.addContent(dd);
152 } 152 }
153 153
154 /** 154 /**
155 * Add the classkind(class, interface, exception, error of the class 155 * Add the classkind (class, interface, exception), error of the class
156 * passed. 156 * passed.
157 * 157 *
158 * @param cd the class being documented 158 * @param cd the class being documented
159 * @param contentTree the content tree to which the class info will be added 159 * @param contentTree the content tree to which the class info will be added
160 */ 160 */
177 member.name(); 177 member.name();
178 if (name.indexOf("<") != -1 || name.indexOf(">") != -1) { 178 if (name.indexOf("<") != -1 || name.indexOf(">") != -1) {
179 name = Util.escapeHtmlChars(name); 179 name = Util.escapeHtmlChars(name);
180 } 180 }
181 Content span = HtmlTree.SPAN(HtmlStyle.strong, 181 Content span = HtmlTree.SPAN(HtmlStyle.strong,
182 getDocLink(LinkInfoImpl.CONTEXT_INDEX, member, name)); 182 getDocLink(LinkInfoImpl.Kind.INDEX, member, name));
183 Content dt = HtmlTree.DT(span); 183 Content dt = HtmlTree.DT(span);
184 dt.addContent(" - "); 184 dt.addContent(" - ");
185 addMemberDesc(member, dt); 185 addMemberDesc(member, dt);
186 dlTree.addContent(dt); 186 dlTree.addContent(dt);
187 Content dd = new HtmlTree(HtmlTag.DD); 187 Content dd = new HtmlTree(HtmlTag.DD);
251 } else { 251 } else {
252 contentTree.addContent( 252 contentTree.addContent(
253 getResource("doclet.Method_in", classdesc)); 253 getResource("doclet.Method_in", classdesc));
254 } 254 }
255 } 255 }
256 addPreQualifiedClassLink(LinkInfoImpl.CONTEXT_INDEX, containing, 256 addPreQualifiedClassLink(LinkInfoImpl.Kind.INDEX, containing,
257 false, contentTree); 257 false, contentTree);
258 } 258 }
259 } 259 }

mercurial