langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java
author bpatel
Thu, 08 Jan 2009 16:26:59 -0800
changeset 1787 1aa079321cd2
parent 1264 076a3cde30d5
child 1789 7ac8c0815000
permissions -rw-r--r--
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
1264
076a3cde30d5 6754988: Update copyright year
xdono
parents: 868
diff changeset
     2
 * Copyright 1998-2008 Sun Microsystems, Inc.  All Rights Reserved.
10
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.util.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
import com.sun.javadoc.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
import java.io.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
import java.util.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
 * Generate package usage information.
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
 * @author Robert G. Field
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
public class PackageUseWriter extends SubWriterHolderWriter {
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
    final PackageDoc pkgdoc;
868
d0f233085cbb 6657907: javadoc has unchecked warnings
jjg
parents: 10
diff changeset
    41
    final SortedMap<String,Set<ClassDoc>> usingPackageToUsedClasses = new TreeMap<String,Set<ClassDoc>>();
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
     * Constructor.
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
     * @param filename the file to be generated.
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
     * @throws IOException
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
     * @throws DocletAbortException
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
    public PackageUseWriter(ConfigurationImpl configuration,
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
                            ClassUseMapper mapper, String filename,
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
                            PackageDoc pkgdoc) throws IOException {
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
        super(configuration, DirectoryManager.getDirectoryPath(pkgdoc),
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
              filename,
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
              DirectoryManager.getRelativePath(pkgdoc.name()));
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
        this.pkgdoc = pkgdoc;
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
        // by examining all classes in this package, find what packages
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
        // use these classes - produce a map between using package and
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
        // used classes.
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
        ClassDoc[] content = pkgdoc.allClasses();
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
        for (int i = 0; i < content.length; ++i) {
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
            ClassDoc usedClass = content[i];
868
d0f233085cbb 6657907: javadoc has unchecked warnings
jjg
parents: 10
diff changeset
    64
            Set<ClassDoc> usingClasses = mapper.classToClass.get(usedClass.qualifiedName());
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
            if (usingClasses != null) {
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
                for (Iterator it = usingClasses.iterator(); it.hasNext(); ) {
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
                    ClassDoc usingClass = (ClassDoc)it.next();
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
                    PackageDoc usingPackage = usingClass.containingPackage();
868
d0f233085cbb 6657907: javadoc has unchecked warnings
jjg
parents: 10
diff changeset
    69
                    Set<ClassDoc> usedClasses = usingPackageToUsedClasses
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
                        .get(usingPackage.name());
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
                    if (usedClasses == null) {
868
d0f233085cbb 6657907: javadoc has unchecked warnings
jjg
parents: 10
diff changeset
    72
                        usedClasses = new TreeSet<ClassDoc>();
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
                        usingPackageToUsedClasses.put(Util.getPackageName(usingPackage),
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
                                                      usedClasses);
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
                    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
                    usedClasses.add(usedClass);
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
                }
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
            }
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
     * Generate a class page.
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
     * @param configuration the current configuration of the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
     * @param mapper        the mapping of the class usage.
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
     * @param pkgdoc        the package doc being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
    public static void generate(ConfigurationImpl configuration,
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
                                ClassUseMapper mapper, PackageDoc pkgdoc) {
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
        PackageUseWriter pkgusegen;
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
        String filename = "package-use.html";
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
        try {
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
            pkgusegen = new PackageUseWriter(configuration,
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
                                             mapper, filename, pkgdoc);
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
            pkgusegen.generatePackageUseFile();
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
            pkgusegen.close();
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
        } catch (IOException exc) {
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
            configuration.standardmessage.error(
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
                "doclet.exception_encountered",
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
                exc.toString(), filename);
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
            throw new DocletAbortException();
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
     * Print the class use list.
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
    protected void generatePackageUseFile() throws IOException {
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
        printPackageUseHeader();
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
        if (usingPackageToUsedClasses.isEmpty()) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
            printText("doclet.ClassUse_No.usage.of.0", pkgdoc.name());
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
            p();
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
        } else {
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
            generatePackageUse();
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
        printPackageUseFooter();
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
     * Print the class use list.
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
    protected void generatePackageUse() throws IOException {
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
        if (configuration.packages.length > 1) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
            generatePackageList();
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
        generateClassList();
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
    protected void generatePackageList() throws IOException {
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
        tableIndexSummary();
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
        tableHeaderStart("#CCCCFF");
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
        printText("doclet.ClassUse_Packages.that.use.0",
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
            getPackageLink(pkgdoc, Util.getPackageName(pkgdoc), false));
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
        tableHeaderEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
        Iterator it = usingPackageToUsedClasses.keySet().iterator();
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
        while (it.hasNext()) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
            PackageDoc pkg = configuration.root.packageNamed((String)it.next());
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
            generatePackageUse(pkg);
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
        tableEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
        space();
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
        p();
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
    protected void generateClassList() throws IOException {
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
        Iterator itp = usingPackageToUsedClasses.keySet().iterator();
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
        while (itp.hasNext()) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
            String packageName = (String)itp.next();
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
            PackageDoc usingPackage = configuration.root.packageNamed(packageName);
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
            if (usingPackage != null) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
                anchor(usingPackage.name());
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
            }
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
            tableIndexSummary();
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
            tableHeaderStart("#CCCCFF");
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
            printText("doclet.ClassUse_Classes.in.0.used.by.1",
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
                getPackageLink(pkgdoc, Util.getPackageName(pkgdoc), false),
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
                getPackageLink(usingPackage,Util.getPackageName(usingPackage), false));
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
            tableHeaderEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
            Iterator itc =
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
                ((Collection)usingPackageToUsedClasses.get(packageName))
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
                .iterator();
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
            while (itc.hasNext()) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
                printClassRow((ClassDoc)itc.next(), packageName);
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
            }
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
            tableEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
            space();
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
    protected void printClassRow(ClassDoc usedClass, String packageName) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
        String path = pathString(usedClass,
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
                                 "class-use/" + usedClass.name() + ".html");
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
        trBgcolorStyle("white", "TableRowColor");
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
        summaryRow(0);
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 1264
diff changeset
   181
        strong();
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
        printHyperLink(path, packageName, usedClass.name(), true);
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 1264
diff changeset
   183
        strongEnd();
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
        println(); br();
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
        printNbsps();
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
        printIndexComment(usedClass);
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
        summaryRowEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
        trEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
     * Print the package use list.
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
    protected void generatePackageUse(PackageDoc pkg) throws IOException {
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
        trBgcolorStyle("white", "TableRowColor");
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
        summaryRow(0);
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
        //Just want an anchor here.
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
        printHyperLink("", pkg.name(), Util.getPackageName(pkg), true);
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
        summaryRowEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
        summaryRow(0);
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
        if (pkg != null) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
            printSummaryComment(pkg);
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
        space();
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
        summaryRowEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
        trEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
     * Print the header for the class use Listing.
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
    protected void printPackageUseHeader() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
        String packageLabel = configuration.getText("doclet.Package");
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
        String name = pkgdoc.name();
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
        printHtmlHeader(configuration.getText("doclet.Window_ClassUse_Header",
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
            packageLabel, name), null, true);
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
        printTop();
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
        navLinks(true);
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
        hr();
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
        center();
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
        h2();
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 1264
diff changeset
   222
        strongText("doclet.ClassUse_Title", packageLabel, name);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
        h2End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
        centerEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
     * Print the footer for the class use Listing.
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
    protected void printPackageUseFooter() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
        hr();
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
        navLinks(false);
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
        printBottom();
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
        printBodyHtmlEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
     * Print this package link
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   241
    protected void navLinkPackage() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   242
        navCellStart();
06bc494ca11e Initial load
duke
parents:
diff changeset
   243
        printHyperLink("package-summary.html", "", configuration.getText("doclet.Package"),
06bc494ca11e Initial load
duke
parents:
diff changeset
   244
                       true, "NavBarFont1");
06bc494ca11e Initial load
duke
parents:
diff changeset
   245
        navCellEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   246
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   247
06bc494ca11e Initial load
duke
parents:
diff changeset
   248
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   249
     * Print class use link
06bc494ca11e Initial load
duke
parents:
diff changeset
   250
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   251
    protected void navLinkClassUse() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   252
        navCellRevStart();
06bc494ca11e Initial load
duke
parents:
diff changeset
   253
        fontStyle("NavBarFont1Rev");
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 1264
diff changeset
   254
        strongText("doclet.navClassUse");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
        fontEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
        navCellEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
06bc494ca11e Initial load
duke
parents:
diff changeset
   259
    protected void navLinkTree() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   260
        navCellStart();
06bc494ca11e Initial load
duke
parents:
diff changeset
   261
        printHyperLink("package-tree.html", "", configuration.getText("doclet.Tree"),
06bc494ca11e Initial load
duke
parents:
diff changeset
   262
                       true, "NavBarFont1");
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
        navCellEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
06bc494ca11e Initial load
duke
parents:
diff changeset
   266
}