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

changeset 1736
74cd21f2c2fe
parent 1735
8ea30d59ac41
child 1738
6ea964c78845
equal deleted inserted replaced
1735:8ea30d59ac41 1736:74cd21f2c2fe
114 * @return a content tree for the previous class link 114 * @return a content tree for the previous class link
115 */ 115 */
116 public Content getNavLinkPrevious() { 116 public Content getNavLinkPrevious() {
117 Content li; 117 Content li;
118 if (prev != null) { 118 if (prev != null) {
119 Content prevLink = new RawHtml(getLink(new LinkInfoImpl(configuration, 119 Content prevLink = getLink(new LinkInfoImpl(configuration,
120 LinkInfoImpl.Kind.CLASS, prev.asClassDoc(), "", 120 LinkInfoImpl.Kind.CLASS, prev.asClassDoc(), "",
121 configuration.getText("doclet.Prev_Class"), true))); 121 configuration.getText("doclet.Prev_Class"), true));
122 li = HtmlTree.LI(prevLink); 122 li = HtmlTree.LI(prevLink);
123 } 123 }
124 else 124 else
125 li = HtmlTree.LI(prevclassLabel); 125 li = HtmlTree.LI(prevclassLabel);
126 return li; 126 return li;
132 * @return a content tree for the next class link 132 * @return a content tree for the next class link
133 */ 133 */
134 public Content getNavLinkNext() { 134 public Content getNavLinkNext() {
135 Content li; 135 Content li;
136 if (next != null) { 136 if (next != null) {
137 Content nextLink = new RawHtml(getLink(new LinkInfoImpl(configuration, 137 Content nextLink = getLink(new LinkInfoImpl(configuration,
138 LinkInfoImpl.Kind.CLASS, next.asClassDoc(), "", 138 LinkInfoImpl.Kind.CLASS, next.asClassDoc(), "",
139 configuration.getText("doclet.Next_Class"), true))); 139 configuration.getText("doclet.Next_Class"), true));
140 li = HtmlTree.LI(nextLink); 140 li = HtmlTree.LI(nextLink);
141 } 141 }
142 else 142 else
143 li = HtmlTree.LI(nextclassLabel); 143 li = HtmlTree.LI(nextclassLabel);
144 return li; 144 return li;
165 LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, 165 LinkInfoImpl linkInfo = new LinkInfoImpl(configuration,
166 LinkInfoImpl.Kind.CLASS_HEADER, annotationType, false); 166 LinkInfoImpl.Kind.CLASS_HEADER, annotationType, false);
167 Content headerContent = new StringContent(header); 167 Content headerContent = new StringContent(header);
168 Content heading = HtmlTree.HEADING(HtmlConstants.CLASS_PAGE_HEADING, true, 168 Content heading = HtmlTree.HEADING(HtmlConstants.CLASS_PAGE_HEADING, true,
169 HtmlStyle.title, headerContent); 169 HtmlStyle.title, headerContent);
170 heading.addContent(new RawHtml(getTypeParameterLinks(linkInfo))); 170 heading.addContent(getTypeParameterLinks(linkInfo));
171 div.addContent(heading); 171 div.addContent(heading);
172 bodyTree.addContent(div); 172 bodyTree.addContent(div);
173 return bodyTree; 173 return bodyTree;
174 } 174 }
175 175
220 addAnnotationInfo(annotationType, pre); 220 addAnnotationInfo(annotationType, pre);
221 pre.addContent(modifiers); 221 pre.addContent(modifiers);
222 LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, 222 LinkInfoImpl linkInfo = new LinkInfoImpl(configuration,
223 LinkInfoImpl.Kind.CLASS_SIGNATURE, annotationType, false); 223 LinkInfoImpl.Kind.CLASS_SIGNATURE, annotationType, false);
224 Content annotationName = new StringContent(annotationType.name()); 224 Content annotationName = new StringContent(annotationType.name());
225 Content parameterLinks = new RawHtml(getTypeParameterLinks(linkInfo)); 225 Content parameterLinks = getTypeParameterLinks(linkInfo);
226 if (configuration.linksource) { 226 if (configuration.linksource) {
227 addSrcLink(annotationType, annotationName, pre); 227 addSrcLink(annotationType, annotationName, pre);
228 pre.addContent(parameterLinks); 228 pre.addContent(parameterLinks);
229 } else { 229 } else {
230 Content span = HtmlTree.SPAN(HtmlStyle.strong, annotationName); 230 Content span = HtmlTree.SPAN(HtmlStyle.strong, annotationName);

mercurial