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

changeset 1735
8ea30d59ac41
parent 1410
bfec2a1cc869
child 1736
74cd21f2c2fe
equal deleted inserted replaced
1734:8dd528992c15 1735:8ea30d59ac41
1 /* 1 /*
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 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
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 = new RawHtml(getLink(new LinkInfoImpl(configuration,
120 LinkInfoImpl.CONTEXT_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);
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 = new RawHtml(getLink(new LinkInfoImpl(configuration,
138 LinkInfoImpl.CONTEXT_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);
161 Content pkgNameContent = new StringContent(pkgname); 161 Content pkgNameContent = new StringContent(pkgname);
162 Content pkgNameDiv = HtmlTree.DIV(HtmlStyle.subTitle, pkgNameContent); 162 Content pkgNameDiv = HtmlTree.DIV(HtmlStyle.subTitle, pkgNameContent);
163 div.addContent(pkgNameDiv); 163 div.addContent(pkgNameDiv);
164 } 164 }
165 LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, 165 LinkInfoImpl linkInfo = new LinkInfoImpl(configuration,
166 LinkInfoImpl.CONTEXT_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(new RawHtml(getTypeParameterLinks(linkInfo)));
171 div.addContent(heading); 171 div.addContent(heading);
218 annotationInfoTree.addContent(new HtmlTree(HtmlTag.BR)); 218 annotationInfoTree.addContent(new HtmlTree(HtmlTag.BR));
219 Content pre = new HtmlTree(HtmlTag.PRE); 219 Content pre = new HtmlTree(HtmlTag.PRE);
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.CONTEXT_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 = new RawHtml(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);

mercurial