langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java
changeset 15723 58a73dac9ee4
parent 14358 9eda9239cba0
child 16547 3dd72ee2623d
equal deleted inserted replaced
15167:f627eff81962 15723:58a73dac9ee4
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
     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.
     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
   143 
   143 
   144     /**
   144     /**
   145      * Adds "All Classes" link for the top of the left-hand frame page to the
   145      * Adds "All Classes" link for the top of the left-hand frame page to the
   146      * documentation tree.
   146      * documentation tree.
   147      *
   147      *
   148      * @param body the Content object to which the all classes link should be added
   148      * @param div the Content object to which the all classes link should be added
   149      */
   149      */
   150     protected void addAllClassesLink(Content body) {
   150     protected void addAllClassesLink(Content div) {
   151         Content linkContent = getHyperLink(DocPaths.ALLCLASSES_FRAME,
   151         Content linkContent = getHyperLink(DocPaths.ALLCLASSES_FRAME,
   152                 allclassesLabel, "", "packageFrame");
   152                 allclassesLabel, "", "packageFrame");
   153         Content div = HtmlTree.DIV(HtmlStyle.indexHeader, linkContent);
   153         Content span = HtmlTree.SPAN(linkContent);
   154         body.addContent(div);
   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);
   155     }
   168     }
   156 
   169 
   157     /**
   170     /**
   158      * {@inheritDoc}
   171      * {@inheritDoc}
   159      */
   172      */