src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File langtools Sdiff src/share/classes/com/sun/tools/doclets/formats/html

src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java

Print this page


   1 /*
   2  * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 128         if (configuration.packagesheader.length() > 0) {
 129             headerContent = new RawHtml(replaceDocRootDir(configuration.packagesheader));
 130         } else {
 131             headerContent = new RawHtml(replaceDocRootDir(configuration.header));
 132         }
 133         Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, true,
 134                 HtmlStyle.bar, headerContent);
 135         body.addContent(heading);
 136     }
 137 
 138     /**
 139      * Do nothing as there is no overview information in this page.
 140      */
 141     protected void addOverviewHeader(Content body) {
 142     }
 143 
 144     /**
 145      * Adds "All Classes" link for the top of the left-hand frame page to the
 146      * documentation tree.
 147      *
 148      * @param body the Content object to which the all classes link should be added
 149      */
 150     protected void addAllClassesLink(Content body) {
 151         Content linkContent = getHyperLink(DocPaths.ALLCLASSES_FRAME,
 152                 allclassesLabel, "", "packageFrame");
 153         Content div = HtmlTree.DIV(HtmlStyle.indexHeader, linkContent);
 154         body.addContent(div);













 155     }
 156 
 157     /**
 158      * {@inheritDoc}
 159      */
 160     protected void addNavigationBarFooter(Content body) {
 161         Content p = HtmlTree.P(getSpace());
 162         body.addContent(p);
 163     }
 164 }
   1 /*
   2  * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 128         if (configuration.packagesheader.length() > 0) {
 129             headerContent = new RawHtml(replaceDocRootDir(configuration.packagesheader));
 130         } else {
 131             headerContent = new RawHtml(replaceDocRootDir(configuration.header));
 132         }
 133         Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, true,
 134                 HtmlStyle.bar, headerContent);
 135         body.addContent(heading);
 136     }
 137 
 138     /**
 139      * Do nothing as there is no overview information in this page.
 140      */
 141     protected void addOverviewHeader(Content body) {
 142     }
 143 
 144     /**
 145      * Adds "All Classes" link for the top of the left-hand frame page to the
 146      * documentation tree.
 147      *
 148      * @param div the Content object to which the all classes link should be added
 149      */
 150     protected void addAllClassesLink(Content div) {
 151         Content linkContent = getHyperLink(DocPaths.ALLCLASSES_FRAME,
 152                 allclassesLabel, "", "packageFrame");
 153         Content span = HtmlTree.SPAN(linkContent);
 154         div.addContent(span);
 155     }
 156 
 157     /**
 158      * Adds "All Profiles" link for the top of the left-hand frame page to the
 159      * documentation tree.
 160      *
 161      * @param div the Content object to which the all profiles link should be added
 162      */
 163     protected void addAllProfilesLink(Content div) {
 164         Content linkContent = getHyperLink(DocPaths.PROFILE_OVERVIEW_FRAME,
 165                 allprofilesLabel, "", "profileListFrame");
 166         Content span = HtmlTree.SPAN(linkContent);
 167         div.addContent(span);
 168     }
 169 
 170     /**
 171      * {@inheritDoc}
 172      */
 173     protected void addNavigationBarFooter(Content body) {
 174         Content p = HtmlTree.P(getSpace());
 175         body.addContent(p);
 176     }
 177 }
src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File