langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java
changeset 15559 4e397baa6e3d
parent 14358 9eda9239cba0
child 15726 27bb87e628ae
equal deleted inserted replaced
15558:151d7379ae16 15559:4e397baa6e3d
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 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
   194      *                 be added
   194      *                 be added
   195      */
   195      */
   196     protected void addOverviewComment(Content htmltree) {
   196     protected void addOverviewComment(Content htmltree) {
   197         if (root.inlineTags().length > 0) {
   197         if (root.inlineTags().length > 0) {
   198             htmltree.addContent(getMarkerAnchor("overview_description"));
   198             htmltree.addContent(getMarkerAnchor("overview_description"));
   199             HtmlTree div = new HtmlTree(HtmlTag.DIV);
   199             addInlineComment(root, htmltree);
   200             div.addStyle(HtmlStyle.subTitle);
       
   201             addInlineComment(root, div);
       
   202             htmltree.addContent(div);
       
   203         }
   200         }
   204     }
   201     }
   205 
   202 
   206     /**
   203     /**
   207      * Adds the tag information as provided in the file specified by the
   204      * Adds the tag information as provided in the file specified by the
   209      *
   206      *
   210      * @param body the documentation tree to which the overview will be added
   207      * @param body the documentation tree to which the overview will be added
   211      */
   208      */
   212     protected void addOverview(Content body) throws IOException {
   209     protected void addOverview(Content body) throws IOException {
   213         HtmlTree div = new HtmlTree(HtmlTag.DIV);
   210         HtmlTree div = new HtmlTree(HtmlTag.DIV);
   214         div.addStyle(HtmlStyle.footer);
   211         div.addStyle(HtmlStyle.contentContainer);
   215         addOverviewComment(div);
   212         addOverviewComment(div);
   216         addTagsInfo(root, div);
   213         addTagsInfo(root, div);
   217         body.addContent(div);
   214         body.addContent(div);
   218     }
   215     }
   219 
   216