63 /** |
63 /** |
64 * @param annotationType the annotation type being documented. |
64 * @param annotationType the annotation type being documented. |
65 * @param prevType the previous class that was documented. |
65 * @param prevType the previous class that was documented. |
66 * @param nextType the next class being documented. |
66 * @param nextType the next class being documented. |
67 */ |
67 */ |
68 public AnnotationTypeWriterImpl (AnnotationTypeDoc annotationType, |
68 public AnnotationTypeWriterImpl(AnnotationTypeDoc annotationType, |
69 Type prevType, Type nextType) |
69 Type prevType, Type nextType) |
70 throws Exception { |
70 throws Exception { |
71 super(ConfigurationImpl.getInstance(), |
71 super(ConfigurationImpl.getInstance(), DocPath.forClass(annotationType)); |
72 DirectoryManager.getDirectoryPath(annotationType.containingPackage()), |
|
73 annotationType.name() + ".html", |
|
74 DirectoryManager.getRelativePath(annotationType.containingPackage().name())); |
|
75 this.annotationType = annotationType; |
72 this.annotationType = annotationType; |
76 configuration.currentcd = annotationType.asClassDoc(); |
73 configuration.currentcd = annotationType.asClassDoc(); |
77 this.prev = prevType; |
74 this.prev = prevType; |
78 this.next = nextType; |
75 this.next = nextType; |
79 } |
76 } |
82 * Get this package link. |
79 * Get this package link. |
83 * |
80 * |
84 * @return a content tree for the package link |
81 * @return a content tree for the package link |
85 */ |
82 */ |
86 protected Content getNavLinkPackage() { |
83 protected Content getNavLinkPackage() { |
87 Content linkContent = getHyperLink("package-summary.html", "", |
84 Content linkContent = getHyperLink(DocPaths.PACKAGE_SUMMARY, "", |
88 packageLabel); |
85 packageLabel); |
89 Content li = HtmlTree.LI(linkContent); |
86 Content li = HtmlTree.LI(linkContent); |
90 return li; |
87 return li; |
91 } |
88 } |
92 |
89 |
104 * Get the class use link. |
101 * Get the class use link. |
105 * |
102 * |
106 * @return a content tree for the class use link |
103 * @return a content tree for the class use link |
107 */ |
104 */ |
108 protected Content getNavLinkClassUse() { |
105 protected Content getNavLinkClassUse() { |
109 Content linkContent = getHyperLink("class-use/" + filename, "", useLabel); |
106 Content linkContent = getHyperLink(DocPaths.CLASS_USE.resolve(filename), "", useLabel); |
110 Content li = HtmlTree.LI(linkContent); |
107 Content li = HtmlTree.LI(linkContent); |
111 return li; |
108 return li; |
112 } |
109 } |
113 |
110 |
114 /** |
111 /** |
287 |
284 |
288 /** |
285 /** |
289 * {@inheritDoc} |
286 * {@inheritDoc} |
290 */ |
287 */ |
291 protected Content getNavLinkTree() { |
288 protected Content getNavLinkTree() { |
292 Content treeLinkContent = getHyperLink("package-tree.html", |
289 Content treeLinkContent = getHyperLink(DocPaths.PACKAGE_TREE, |
293 "", treeLabel, "", ""); |
290 "", treeLabel, "", ""); |
294 Content li = HtmlTree.LI(treeLinkContent); |
291 Content li = HtmlTree.LI(treeLinkContent); |
295 return li; |
292 return li; |
296 } |
293 } |
297 |
294 |