38 import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTree; |
38 import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTree; |
39 import jdk.javadoc.internal.doclets.formats.html.markup.Links; |
39 import jdk.javadoc.internal.doclets.formats.html.markup.Links; |
40 import jdk.javadoc.internal.doclets.formats.html.markup.StringContent; |
40 import jdk.javadoc.internal.doclets.formats.html.markup.StringContent; |
41 import jdk.javadoc.internal.doclets.toolkit.Content; |
41 import jdk.javadoc.internal.doclets.toolkit.Content; |
42 import jdk.javadoc.internal.doclets.toolkit.util.DocFileIOException; |
42 import jdk.javadoc.internal.doclets.toolkit.util.DocFileIOException; |
|
43 import jdk.javadoc.internal.doclets.toolkit.util.DocPath; |
43 import jdk.javadoc.internal.doclets.toolkit.util.DocPaths; |
44 import jdk.javadoc.internal.doclets.toolkit.util.DocPaths; |
44 |
45 |
45 /** |
46 /** |
46 * Class to generate file for each module contents in the left-hand bottom |
47 * Class to generate file for each module contents in the left-hand bottom |
47 * frame. This will list all the Class Kinds in the module. A click on any |
48 * frame. This will list all the Class Kinds in the module. A click on any |
98 Content mdlLabel = new StringContent(mdlName); |
99 Content mdlLabel = new StringContent(mdlName); |
99 HtmlTree body = mdlgen.getBody(false, mdlgen.getWindowTitle(mdlName)); |
100 HtmlTree body = mdlgen.getBody(false, mdlgen.getWindowTitle(mdlName)); |
100 HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN)) |
101 HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN)) |
101 ? HtmlTree.MAIN() |
102 ? HtmlTree.MAIN() |
102 : body; |
103 : body; |
|
104 DocPath moduleSummary = configuration.useModuleDirectories |
|
105 ? DocPaths.DOT_DOT.resolve(configuration.docPaths.moduleSummary(moduleElement)) |
|
106 : configuration.docPaths.moduleSummary(moduleElement); |
103 Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, HtmlStyle.bar, |
107 Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, HtmlStyle.bar, |
104 mdlgen.links.createLink(configuration.docPaths.moduleSummary(moduleElement), mdlLabel, "", "classFrame")); |
108 mdlgen.links.createLink(moduleSummary, mdlLabel, "", "classFrame")); |
105 htmlTree.addContent(heading); |
109 htmlTree.addContent(heading); |
106 HtmlTree div = new HtmlTree(HtmlTag.DIV); |
110 HtmlTree div = new HtmlTree(HtmlTag.DIV); |
107 div.setStyle(HtmlStyle.indexContainer); |
111 div.setStyle(HtmlStyle.indexContainer); |
108 mdlgen.addClassListing(div); |
112 mdlgen.addClassListing(div); |
109 htmlTree.addContent(div); |
113 htmlTree.addContent(div); |