langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/PackageIndexWriter.java
equal
deleted
inserted
replaced
173 * @param body the documentation tree to which the overview header will be added |
173 * @param body the documentation tree to which the overview header will be added |
174 */ |
174 */ |
175 @Override |
175 @Override |
176 protected void addOverviewHeader(Content body) { |
176 protected void addOverviewHeader(Content body) { |
177 addConfigurationTitle(body); |
177 addConfigurationTitle(body); |
178 if (!utils.getBody(configuration.overviewElement).isEmpty()) { |
178 if (!utils.getFullBody(configuration.overviewElement).isEmpty()) { |
179 HtmlTree subTitleDiv = new HtmlTree(HtmlTag.DIV); |
179 HtmlTree subTitleDiv = new HtmlTree(HtmlTag.DIV); |
180 subTitleDiv.addStyle(HtmlStyle.subTitle); |
180 subTitleDiv.addStyle(HtmlStyle.subTitle); |
181 addSummaryComment(configuration.overviewElement, subTitleDiv); |
181 addSummaryComment(configuration.overviewElement, subTitleDiv); |
182 Content div = HtmlTree.DIV(HtmlStyle.header, subTitleDiv); |
182 Content div = HtmlTree.DIV(HtmlStyle.header, subTitleDiv); |
183 Content descBody = new ContentBuilder(); |
183 Content descBody = new ContentBuilder(); |
203 * |
203 * |
204 * @param htmltree the documentation tree to which the overview comment will |
204 * @param htmltree the documentation tree to which the overview comment will |
205 * be added |
205 * be added |
206 */ |
206 */ |
207 protected void addOverviewComment(Content htmltree) { |
207 protected void addOverviewComment(Content htmltree) { |
208 if (!utils.getBody(configuration.overviewElement).isEmpty()) { |
208 if (!utils.getFullBody(configuration.overviewElement).isEmpty()) { |
209 htmltree.addContent(getMarkerAnchor(SectionName.OVERVIEW_DESCRIPTION)); |
209 htmltree.addContent(getMarkerAnchor(SectionName.OVERVIEW_DESCRIPTION)); |
210 addInlineComment(configuration.overviewElement, htmltree); |
210 addInlineComment(configuration.overviewElement, htmltree); |
211 } |
211 } |
212 } |
212 } |
213 |
213 |