70 * @param nextClass the next class being documented. |
70 * @param nextClass the next class being documented. |
71 * @param classTree the class tree for the given class. |
71 * @param classTree the class tree for the given class. |
72 */ |
72 */ |
73 public ClassWriterImpl (ClassDoc classDoc, |
73 public ClassWriterImpl (ClassDoc classDoc, |
74 ClassDoc prevClass, ClassDoc nextClass, ClassTree classTree) |
74 ClassDoc prevClass, ClassDoc nextClass, ClassTree classTree) |
75 throws Exception { |
75 throws Exception { |
76 super(ConfigurationImpl.getInstance(), |
76 super(ConfigurationImpl.getInstance(), DocPath.forClass(classDoc)); |
77 DirectoryManager.getDirectoryPath(classDoc.containingPackage()), |
|
78 classDoc.name() + ".html", |
|
79 DirectoryManager.getRelativePath(classDoc.containingPackage().name())); |
|
80 this.classDoc = classDoc; |
77 this.classDoc = classDoc; |
81 configuration.currentcd = classDoc; |
78 configuration.currentcd = classDoc; |
82 this.classtree = classTree; |
79 this.classtree = classTree; |
83 this.prev = prevClass; |
80 this.prev = prevClass; |
84 this.next = nextClass; |
81 this.next = nextClass; |
88 * Get this package link. |
85 * Get this package link. |
89 * |
86 * |
90 * @return a content tree for the package link |
87 * @return a content tree for the package link |
91 */ |
88 */ |
92 protected Content getNavLinkPackage() { |
89 protected Content getNavLinkPackage() { |
93 Content linkContent = getHyperLink("package-summary.html", "", |
90 Content linkContent = getHyperLink(DocPaths.PACKAGE_SUMMARY, "", |
94 packageLabel); |
91 packageLabel); |
95 Content li = HtmlTree.LI(linkContent); |
92 Content li = HtmlTree.LI(linkContent); |
96 return li; |
93 return li; |
97 } |
94 } |
98 |
95 |
110 * Get the class use link. |
107 * Get the class use link. |
111 * |
108 * |
112 * @return a content tree for the class use link |
109 * @return a content tree for the class use link |
113 */ |
110 */ |
114 protected Content getNavLinkClassUse() { |
111 protected Content getNavLinkClassUse() { |
115 Content linkContent = getHyperLink("class-use/" + filename, "", useLabel); |
112 Content linkContent = getHyperLink(DocPaths.CLASS_USE.resolve(filename), "", useLabel); |
116 Content li = HtmlTree.LI(linkContent); |
113 Content li = HtmlTree.LI(linkContent); |
117 return li; |
114 return li; |
118 } |
115 } |
119 |
116 |
120 /** |
117 /** |
565 |
562 |
566 /** |
563 /** |
567 * {@inheritDoc} |
564 * {@inheritDoc} |
568 */ |
565 */ |
569 protected Content getNavLinkTree() { |
566 protected Content getNavLinkTree() { |
570 Content treeLinkContent = getHyperLink("package-tree.html", |
567 Content treeLinkContent = getHyperLink(DocPaths.PACKAGE_TREE, |
571 "", treeLabel, "", ""); |
568 "", treeLabel, "", ""); |
572 Content li = HtmlTree.LI(treeLinkContent); |
569 Content li = HtmlTree.LI(treeLinkContent); |
573 return li; |
570 return li; |
574 } |
571 } |
575 |
572 |