langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 10 06bc494ca11e
child 1787 1aa079321cd2
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
06bc494ca11e Initial load
duke
parents:
diff changeset
     2
 * Copyright 1997-2005 Sun Microsystems, Inc.  All Rights Reserved.
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
06bc494ca11e Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
06bc494ca11e Initial load
duke
parents:
diff changeset
    23
 * have any questions.
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
package com.sun.tools.doclets.formats.html;
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
import com.sun.tools.doclets.internal.toolkit.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
import com.sun.tools.doclets.internal.toolkit.util.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
import com.sun.javadoc.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
import java.io.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
import java.util.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
 * Class to generate file for each package contents in the right-hand
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
 * frame. This will list all the Class Kinds in the package. A click on any
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
 * class-kind will update the frame with the clicked class-kind page.
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
 * @author Atul M Dambalkar
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
public class PackageWriterImpl extends HtmlDocletWriter
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
    implements PackageSummaryWriter {
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
     * The prev package name in the alpha-order list.
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
    protected PackageDoc prev;
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
     * The next package name in the alpha-order list.
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
    protected PackageDoc next;
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
     * The package being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
    protected PackageDoc packageDoc;
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
     * The name of the output file.
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
    private static final String OUTPUT_FILE_NAME = "package-summary.html";
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
     * Constructor to construct PackageWriter object and to generate
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
     * "package-summary.html" file in the respective package directory.
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
     * For example for package "java.lang" this will generate file
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
     * "package-summary.html" file in the "java/lang" directory. It will also
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
     * create "java/lang" directory in the current or the destination directory
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
     * if it doesen't exist.
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
     * @param configuration the configuration of the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
     * @param packageDoc    PackageDoc under consideration.
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
     * @param prev          Previous package in the sorted array.
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
     * @param next            Next package in the sorted array.
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
    public PackageWriterImpl(ConfigurationImpl configuration,
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
        PackageDoc packageDoc, PackageDoc prev, PackageDoc next)
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
    throws IOException {
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
        super(configuration, DirectoryManager.getDirectoryPath(packageDoc), OUTPUT_FILE_NAME,
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
             DirectoryManager.getRelativePath(packageDoc.name()));
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
        this.prev = prev;
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
        this.next = next;
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
        this.packageDoc = packageDoc;
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
     * Return the name of the output file.
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
     * @return the name of the output file.
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
    public String getOutputFileName() {
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
        return OUTPUT_FILE_NAME;
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
     * {@inheritDoc}
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
    public void writeSummaryHeader() {}
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
     * {@inheritDoc}
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
    public void writeSummaryFooter() {}
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
     * {@inheritDoc}
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
    public void writeClassesSummary(ClassDoc[] classes, String label) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
        if(classes.length > 0) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
            Arrays.sort(classes);
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
            tableIndexSummary();
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
            boolean printedHeading = false;
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
            for (int i = 0; i < classes.length; i++) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
                if (!printedHeading) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
                    printFirstRow(label);
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
                    printedHeading = true;
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
                }
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
                if (!Util.isCoreClass(classes[i]) ||
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
                    !configuration.isGeneratedDoc(classes[i])) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
                    continue;
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
                }
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
                trBgcolorStyle("white", "TableRowColor");
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
                summaryRow(15);
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
                bold();
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
                printLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_PACKAGE,
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
                    classes[i], false));
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
                boldEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
                summaryRowEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
                summaryRow(0);
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
                if (Util.isDeprecated(classes[i])) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
                    boldText("doclet.Deprecated");
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
                    if (classes[i].tags("deprecated").length > 0) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
                        space();
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
                        printSummaryDeprecatedComment(classes[i],
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
                            classes[i].tags("deprecated")[0]);
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
                    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
                } else {
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
                    printSummaryComment(classes[i]);
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
                }
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
                summaryRowEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
                trEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
            }
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
            tableEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
            println("&nbsp;");
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
            p();
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
     * Print the table heading for the class-listing.
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
     * @param label Label for the Class kind listing.
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
    protected void printFirstRow(String label) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
        tableHeaderStart("#CCCCFF");
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
        bold(label);
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
        tableHeaderEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
     * {@inheritDoc}
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
    public void writePackageDescription() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
        if (packageDoc.inlineTags().length > 0) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
            anchor("package_description");
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
            h2(configuration.getText("doclet.Package_Description", packageDoc.name()));
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
            p();
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
            printInlineComment(packageDoc);
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
            p();
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
     * {@inheritDoc}
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
    public void writePackageTags() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
        printTags(packageDoc);
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
     * {@inheritDoc}
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
    public void writePackageHeader(String heading) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
        String pkgName = packageDoc.name();
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
        printHtmlHeader(pkgName,
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
            configuration.metakeywords.getMetaKeywords(packageDoc), true);
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
        printTop();
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
        navLinks(true);
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
        hr();
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
        writeAnnotationInfo(packageDoc);
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
        h2(configuration.getText("doclet.Package") + " " + heading);
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
        if (packageDoc.inlineTags().length > 0 && ! configuration.nocomment) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
            printSummaryComment(packageDoc);
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
            p();
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
            bold(configuration.getText("doclet.See"));
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
            br();
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
            printNbsps();
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
            printHyperLink("", "package_description",
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
                configuration.getText("doclet.Description"), true);
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
            p();
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
     * {@inheritDoc}
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
    public void writePackageFooter() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
        hr();
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
        navLinks(false);
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
        printBottom();
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
        printBodyHtmlEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
     * Print "Use" link for this pacakge in the navigation bar.
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
    protected void navLinkClassUse() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
        navCellStart();
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
        printHyperLink("package-use.html", "", configuration.getText("doclet.navClassUse"),
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
                       true, "NavBarFont1");
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
        navCellEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
     * Print "PREV PACKAGE" link in the navigation bar.
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
    protected void navLinkPrevious() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
        if (prev == null) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
            printText("doclet.Prev_Package");
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
        } else {
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
            String path = DirectoryManager.getRelativePath(packageDoc.name(),
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
                                                           prev.name());
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
            printHyperLink(path + "package-summary.html", "",
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
                configuration.getText("doclet.Prev_Package"), true);
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   241
     * Print "NEXT PACKAGE" link in the navigation bar.
06bc494ca11e Initial load
duke
parents:
diff changeset
   242
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   243
    protected void navLinkNext() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   244
        if (next == null) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   245
            printText("doclet.Next_Package");
06bc494ca11e Initial load
duke
parents:
diff changeset
   246
        } else {
06bc494ca11e Initial load
duke
parents:
diff changeset
   247
            String path = DirectoryManager.getRelativePath(packageDoc.name(),
06bc494ca11e Initial load
duke
parents:
diff changeset
   248
                                                           next.name());
06bc494ca11e Initial load
duke
parents:
diff changeset
   249
            printHyperLink(path + "package-summary.html", "",
06bc494ca11e Initial load
duke
parents:
diff changeset
   250
                configuration.getText("doclet.Next_Package"), true);
06bc494ca11e Initial load
duke
parents:
diff changeset
   251
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   252
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   253
06bc494ca11e Initial load
duke
parents:
diff changeset
   254
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
     * Print "Tree" link in the navigation bar. This will be link to the package
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
     * tree file.
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
    protected void navLinkTree() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   259
        navCellStart();
06bc494ca11e Initial load
duke
parents:
diff changeset
   260
        printHyperLink("package-tree.html", "", configuration.getText("doclet.Tree"),
06bc494ca11e Initial load
duke
parents:
diff changeset
   261
                       true, "NavBarFont1");
06bc494ca11e Initial load
duke
parents:
diff changeset
   262
        navCellEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   266
     * Highlight "Package" in the navigation bar, as this is the package page.
06bc494ca11e Initial load
duke
parents:
diff changeset
   267
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   268
    protected void navLinkPackage() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   269
        navCellRevStart();
06bc494ca11e Initial load
duke
parents:
diff changeset
   270
        fontStyle("NavBarFont1Rev");
06bc494ca11e Initial load
duke
parents:
diff changeset
   271
        boldText("doclet.Package");
06bc494ca11e Initial load
duke
parents:
diff changeset
   272
        fontEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   273
        navCellEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   274
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   275
}