langtools/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
author bpatel
Tue, 22 Mar 2011 18:32:41 -0700
changeset 9067 c0b85430843d
parent 7681 1f0819a3341f
child 14259 fb94a1df0d53
permissions -rw-r--r--
7025314: NLS: translatability violation on standard.properties Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
9067
c0b85430843d 7025314: NLS: translatability violation on standard.properties
bpatel
parents: 7681
diff changeset
     2
 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. 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
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2320
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2320
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
10
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
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2320
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2320
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2320
diff changeset
    23
 * questions.
10
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.markup;
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
2216
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
    28
import java.io.*;
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
    29
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
import com.sun.tools.doclets.internal.toolkit.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
import com.sun.tools.doclets.internal.toolkit.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
 * Class for the Html format code generation.
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
 * Initilizes PrintWriter with FileWriter, to enable print
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
 * related methods to generate the code to the named File through FileWriter.
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
 * @since 1.2
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
 * @author Atul M Dambalkar
2320
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    40
 * @author Bhavesh Patel (Modified)
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
public class HtmlWriter extends PrintWriter {
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
     * Name of the file, to which this writer is writing to.
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
    protected final String htmlFilename;
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
     * The window title of this file
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
    protected String winTitle;
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
     * URL file separator string("/").
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
    public static final String fileseparator =
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    58
         DirectoryManager.URL_FILE_SEPARATOR;
10
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 configuration
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
    protected Configuration configuration;
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
    /**
2216
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
    66
     * The flag to indicate whether a member details list is printed or not.
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
    67
     */
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
    68
    protected boolean memberDetailsListPrinted;
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
    69
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
    70
    /**
2320
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    71
     * Header for tables displaying packages and description..
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    72
     */
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    73
    protected final String[] packageTableHeader;
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    74
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    75
    /**
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    76
     * Summary for use tables displaying class and package use.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    77
     */
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    78
    protected final String useTableSummary;
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    79
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    80
    /**
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    81
     * Column header for class docs displaying Modifier and Type header.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    82
     */
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    83
    protected final String modifierTypeHeader;
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
    84
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    85
    public final Content overviewLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    86
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    87
    public final Content defaultPackageLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    88
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    89
    public final Content packageLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    90
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    91
    public final Content useLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    92
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    93
    public final Content prevLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    94
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    95
    public final Content nextLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    96
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    97
    public final Content prevclassLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    98
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
    99
    public final Content nextclassLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   100
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   101
    public final Content summaryLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   102
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   103
    public final Content detailLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   104
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   105
    public final Content framesLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   106
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   107
    public final Content noframesLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   108
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   109
    public final Content treeLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   110
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   111
    public final Content classLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   112
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   113
    public final Content deprecatedLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   114
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   115
    public final Content deprecatedPhrase;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   116
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   117
    public final Content allclassesLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   118
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   119
    public final Content indexLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   120
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   121
    public final Content helpLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   122
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   123
    public final Content seeLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   124
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   125
    public final Content descriptionLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   126
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   127
    public final Content prevpackageLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   128
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   129
    public final Content nextpackageLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   130
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   131
    public final Content packagesLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   132
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   133
    public final Content methodDetailsLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   134
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   135
    public final Content annotationTypeDetailsLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   136
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   137
    public final Content fieldDetailsLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   138
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   139
    public final Content constructorDetailsLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   140
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   141
    public final Content enumConstantsDetailsLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   142
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   143
    public final Content specifiedByLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   144
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   145
    public final Content overridesLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   146
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   147
    public final Content descfrmClassLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   148
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   149
    public final Content descfrmInterfaceLabel;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   150
2320
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
   151
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
     * Constructor.
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
     * @param path The directory path to be created for this file
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
     *             or null if none to be created.
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
     * @param filename File Name to which the PrintWriter will
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
     *                 do the Output.
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
     * @param docencoding Encoding to be used for this file.
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
     * @exception IOException Exception raised by the FileWriter is passed on
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
     * to next level.
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
     * @exception UnSupportedEncodingException Exception raised by the
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
     * OutputStreamWriter is passed on to next level.
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
    public HtmlWriter(Configuration configuration,
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
                      String path, String filename, String docencoding)
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
                      throws IOException, UnsupportedEncodingException {
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
        super(Util.genWriter(configuration, path, filename, docencoding));
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
        this.configuration = configuration;
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
        htmlFilename = filename;
2216
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   170
        this.memberDetailsListPrinted = false;
2320
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
   171
        packageTableHeader = new String[] {
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
   172
            configuration.getText("doclet.Package"),
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
   173
            configuration.getText("doclet.Description")
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
   174
        };
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
   175
        useTableSummary = configuration.getText("doclet.Use_Table_Summary",
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
   176
                configuration.getText("doclet.packages"));
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
   177
        modifierTypeHeader = configuration.getText("doclet.0_and_1",
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
   178
                configuration.getText("doclet.Modifier"),
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
   179
                configuration.getText("doclet.Type"));
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   180
        overviewLabel = getResource("doclet.Overview");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   181
        defaultPackageLabel = new RawHtml(
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   182
                DocletConstants.DEFAULT_PACKAGE_NAME);
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   183
        packageLabel = getResource("doclet.Package");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   184
        useLabel = getResource("doclet.navClassUse");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   185
        prevLabel = getResource("doclet.Prev");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   186
        nextLabel = getResource("doclet.Next");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   187
        prevclassLabel = getResource("doclet.Prev_Class");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   188
        nextclassLabel = getResource("doclet.Next_Class");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   189
        summaryLabel = getResource("doclet.Summary");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   190
        detailLabel = getResource("doclet.Detail");
9067
c0b85430843d 7025314: NLS: translatability violation on standard.properties
bpatel
parents: 7681
diff changeset
   191
        framesLabel = getResource("doclet.Frames");
c0b85430843d 7025314: NLS: translatability violation on standard.properties
bpatel
parents: 7681
diff changeset
   192
        noframesLabel = getResource("doclet.No_Frames");
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   193
        treeLabel = getResource("doclet.Tree");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   194
        classLabel = getResource("doclet.Class");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   195
        deprecatedLabel = getResource("doclet.navDeprecated");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   196
        deprecatedPhrase = getResource("doclet.Deprecated");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   197
        allclassesLabel = getResource("doclet.All_Classes");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   198
        indexLabel = getResource("doclet.Index");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   199
        helpLabel = getResource("doclet.Help");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   200
        seeLabel = getResource("doclet.See");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   201
        descriptionLabel = getResource("doclet.Description");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   202
        prevpackageLabel = getResource("doclet.Prev_Package");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   203
        nextpackageLabel = getResource("doclet.Next_Package");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   204
        packagesLabel = getResource("doclet.Packages");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   205
        methodDetailsLabel = getResource("doclet.Method_Detail");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   206
        annotationTypeDetailsLabel = getResource("doclet.Annotation_Type_Member_Detail");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   207
        fieldDetailsLabel = getResource("doclet.Field_Detail");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   208
        constructorDetailsLabel = getResource("doclet.Constructor_Detail");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   209
        enumConstantsDetailsLabel = getResource("doclet.Enum_Constant_Detail");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   210
        specifiedByLabel = getResource("doclet.Specified_By");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   211
        overridesLabel = getResource("doclet.Overrides");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   212
        descfrmClassLabel = getResource("doclet.Description_From_Class");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   213
        descfrmInterfaceLabel = getResource("doclet.Description_From_Interface");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   214
    }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   215
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   216
    /**
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   217
     * Get the configuration string as a content.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   218
     *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   219
     * @param key the key to look for in the configuration file
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   220
     * @return a content tree for the text
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   221
     */
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   222
    public Content getResource(String key) {
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   223
        return new StringContent(configuration.getText(key));
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   224
    }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   225
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   226
    /**
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   227
     * Get the configuration string as a content.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   228
     *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   229
     * @param key the key to look for in the configuration file
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   230
     * @param a1 string argument added to configuration text
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   231
     * @return a content tree for the text
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   232
     */
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   233
    public Content getResource(String key, String a1) {
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   234
        return new RawHtml(configuration.getText(key, a1));
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   235
    }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   236
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   237
    /**
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   238
     * Get the configuration string as a content.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   239
     *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   240
     * @param key the key to look for in the configuration file
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   241
     * @param a1 string argument added to configuration text
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   242
     * @param a2 string argument added to configuration text
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   243
     * @return a content tree for the text
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   244
     */
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   245
    public Content getResource(String key, String a1, String a2) {
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   246
        return new RawHtml(configuration.getText(key, a1, a2));
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   247
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   248
06bc494ca11e Initial load
duke
parents:
diff changeset
   249
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   250
     * Print <HTML> tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   251
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   252
    public void html() {
1863
e5de9abc0eb1 6786682: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - HTML tag should have lang attribute
bpatel
parents: 1787
diff changeset
   253
        println("<HTML lang=\"" + configuration.getLocale().getLanguage() + "\">");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   254
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
     * Print &lt;/HTML&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   259
    public void htmlEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   260
        println("</HTML>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   261
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   262
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
     * Print the script code to be embeded before the  &lt;/HEAD&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   266
    protected void printWinTitleScript(String winTitle){
06bc494ca11e Initial load
duke
parents:
diff changeset
   267
        if(winTitle != null && winTitle.length() > 0) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   268
            script();
06bc494ca11e Initial load
duke
parents:
diff changeset
   269
            println("function windowTitle()");
06bc494ca11e Initial load
duke
parents:
diff changeset
   270
            println("{");
06bc494ca11e Initial load
duke
parents:
diff changeset
   271
            println("    if (location.href.indexOf('is-external=true') == -1) {");
06bc494ca11e Initial load
duke
parents:
diff changeset
   272
            println("        parent.document.title=\"" + winTitle + "\";");
06bc494ca11e Initial load
duke
parents:
diff changeset
   273
            println("    }");
06bc494ca11e Initial load
duke
parents:
diff changeset
   274
            println("}");
06bc494ca11e Initial load
duke
parents:
diff changeset
   275
            scriptEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   276
            noScript();
06bc494ca11e Initial load
duke
parents:
diff changeset
   277
            noScriptEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   278
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   279
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   280
06bc494ca11e Initial load
duke
parents:
diff changeset
   281
    /**
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   282
     * Returns an HtmlTree for the SCRIPT tag.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   283
     *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   284
     * @return an HtmlTree for the SCRIPT tag
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   285
     */
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   286
    protected HtmlTree getWinTitleScript(){
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   287
        HtmlTree script = new HtmlTree(HtmlTag.SCRIPT);
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   288
        if(winTitle != null && winTitle.length() > 0) {
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   289
            script.addAttr(HtmlAttr.TYPE, "text/javascript");
7641
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   290
            String scriptCode = "<!--" + DocletConstants.NL +
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   291
                    "    if (location.href.indexOf('is-external=true') == -1) {" + DocletConstants.NL +
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   292
                    "        parent.document.title=\"" + winTitle + "\";" + DocletConstants.NL +
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   293
                    "    }" + DocletConstants.NL +
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   294
                    "//-->" + DocletConstants.NL;
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   295
            RawHtml scriptContent = new RawHtml(scriptCode);
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   296
            script.addContent(scriptContent);
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   297
        }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   298
        return script;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   299
    }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   300
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   301
    /**
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   302
     * Returns a content tree for the SCRIPT tag for the main page(index.html).
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   303
     *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   304
     * @return a content for the SCRIPT tag
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   305
     */
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   306
    protected Content getFramesetJavaScript(){
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   307
        HtmlTree script = new HtmlTree(HtmlTag.SCRIPT);
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   308
        script.addAttr(HtmlAttr.TYPE, "text/javascript");
7641
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   309
        String scriptCode = DocletConstants.NL + "    targetPage = \"\" + window.location.search;" + DocletConstants.NL +
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   310
                "    if (targetPage != \"\" && targetPage != \"undefined\")" + DocletConstants.NL +
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   311
                "        targetPage = targetPage.substring(1);" + DocletConstants.NL +
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   312
                "    if (targetPage.indexOf(\":\") != -1)" + DocletConstants.NL +
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   313
                "        targetPage = \"undefined\";" + DocletConstants.NL +
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   314
                "    function loadFrames() {" + DocletConstants.NL +
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   315
                "        if (targetPage != \"\" && targetPage != \"undefined\")" + DocletConstants.NL +
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   316
                "             top.classFrame.location = top.targetPage;" + DocletConstants.NL +
8b552db25f99 7006270: Several javadoc regression tests are failing on windows
bpatel
parents: 7614
diff changeset
   317
                "    }" + DocletConstants.NL;
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   318
        RawHtml scriptContent = new RawHtml(scriptCode);
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   319
        script.addContent(scriptContent);
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   320
        return script;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   321
    }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   322
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   323
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   324
     * Print the Javascript &lt;SCRIPT&gt; start tag with its type
06bc494ca11e Initial load
duke
parents:
diff changeset
   325
     * attribute.
06bc494ca11e Initial load
duke
parents:
diff changeset
   326
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   327
    public void script() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   328
        println("<SCRIPT type=\"text/javascript\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   329
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   330
06bc494ca11e Initial load
duke
parents:
diff changeset
   331
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   332
     * Print the Javascript &lt;/SCRIPT&gt; end tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   333
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   334
    public void scriptEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   335
        println("</SCRIPT>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   336
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   337
06bc494ca11e Initial load
duke
parents:
diff changeset
   338
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   339
     * Print the Javascript &lt;NOSCRIPT&gt; start tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   340
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   341
    public void noScript() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   342
        println("<NOSCRIPT>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   343
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   344
06bc494ca11e Initial load
duke
parents:
diff changeset
   345
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   346
     * Print the Javascript &lt;/NOSCRIPT&gt; end tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   347
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   348
    public void noScriptEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   349
        println("</NOSCRIPT>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   350
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   351
06bc494ca11e Initial load
duke
parents:
diff changeset
   352
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   353
     * Return the Javascript call to be embedded in the &lt;BODY&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   354
     * Return nothing if winTitle is empty.
06bc494ca11e Initial load
duke
parents:
diff changeset
   355
     * @return the Javascript call to be embedded in the &lt;BODY&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   356
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   357
    protected String getWindowTitleOnload(){
06bc494ca11e Initial load
duke
parents:
diff changeset
   358
        if(winTitle != null && winTitle.length() > 0) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   359
            return " onload=\"windowTitle();\"";
06bc494ca11e Initial load
duke
parents:
diff changeset
   360
        } else {
06bc494ca11e Initial load
duke
parents:
diff changeset
   361
            return "";
06bc494ca11e Initial load
duke
parents:
diff changeset
   362
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   363
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   364
06bc494ca11e Initial load
duke
parents:
diff changeset
   365
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   366
     * Print &lt;BODY BGCOLOR="bgcolor"&gt;, including JavaScript
06bc494ca11e Initial load
duke
parents:
diff changeset
   367
     * "onload" call to load windowtitle script.  This script shows the name
06bc494ca11e Initial load
duke
parents:
diff changeset
   368
     * of the document in the window title bar when frames are on.
06bc494ca11e Initial load
duke
parents:
diff changeset
   369
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   370
     * @param bgcolor Background color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   371
     * @param includeScript  boolean set true if printing windowtitle script
06bc494ca11e Initial load
duke
parents:
diff changeset
   372
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   373
    public void body(String bgcolor, boolean includeScript) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   374
        print("<BODY BGCOLOR=\"" + bgcolor + "\"");
06bc494ca11e Initial load
duke
parents:
diff changeset
   375
        if (includeScript) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   376
            print(getWindowTitleOnload());
06bc494ca11e Initial load
duke
parents:
diff changeset
   377
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   378
        println(">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   379
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   380
06bc494ca11e Initial load
duke
parents:
diff changeset
   381
    /**
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   382
     * Returns an HtmlTree for the BODY tag.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   383
     *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   384
     * @param includeScript  set true if printing windowtitle script
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   385
     * @param title title for the window
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   386
     * @return an HtmlTree for the BODY tag
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   387
     */
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   388
    public HtmlTree getBody(boolean includeScript, String title) {
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   389
        HtmlTree body = new HtmlTree(HtmlTag.BODY);
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   390
        // Set window title string which is later printed
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   391
        this.winTitle = title;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   392
        // Don't print windowtitle script for overview-frame, allclasses-frame
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   393
        // and package-frame
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   394
        if (includeScript) {
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   395
            body.addContent(getWinTitleScript());
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   396
            Content noScript = HtmlTree.NOSCRIPT(
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   397
                    HtmlTree.DIV(getResource("doclet.No_Script_Message")));
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   398
            body.addContent(noScript);
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   399
        }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   400
        return body;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   401
    }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   402
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   403
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   404
     * Print &lt;/BODY&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   405
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   406
    public void bodyEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   407
        println("</BODY>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   408
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   409
06bc494ca11e Initial load
duke
parents:
diff changeset
   410
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   411
     * Print &lt;TITLE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   412
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   413
    public void title() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   414
        println("<TITLE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   415
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   416
06bc494ca11e Initial load
duke
parents:
diff changeset
   417
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   418
     * Print &lt;TITLE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   419
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   420
     * @param winTitle The title of this document.
06bc494ca11e Initial load
duke
parents:
diff changeset
   421
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   422
    public void title(String winTitle) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   423
        // Set window title string which is later printed
06bc494ca11e Initial load
duke
parents:
diff changeset
   424
        this.winTitle = winTitle;
06bc494ca11e Initial load
duke
parents:
diff changeset
   425
        title();
06bc494ca11e Initial load
duke
parents:
diff changeset
   426
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   427
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   428
    /**
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   429
     * Returns an HtmlTree for the TITLE tag.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   430
     *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   431
     * @return an HtmlTree for the TITLE tag
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   432
     */
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   433
    public HtmlTree getTitle() {
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   434
        HtmlTree title = HtmlTree.TITLE(new StringContent(winTitle));
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   435
        return title;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   436
    }
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   437
06bc494ca11e Initial load
duke
parents:
diff changeset
   438
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   439
     * Print &lt;/TITLE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   440
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   441
    public void titleEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   442
        println("</TITLE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   443
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   444
06bc494ca11e Initial load
duke
parents:
diff changeset
   445
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   446
     * Print &lt;UL&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   447
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   448
    public void ul() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   449
        println("<UL>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   450
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   451
06bc494ca11e Initial load
duke
parents:
diff changeset
   452
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   453
     * Print &lt;/UL&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   454
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   455
    public void ulEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   456
        println("</UL>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   457
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   458
06bc494ca11e Initial load
duke
parents:
diff changeset
   459
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   460
     * Print &lt;LI&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   461
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   462
    public void li() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   463
        print("<LI>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   464
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   465
06bc494ca11e Initial load
duke
parents:
diff changeset
   466
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   467
     * Print &lt;LI TYPE="type"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   468
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   469
     * @param type Type string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   470
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   471
    public void li(String type) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   472
        print("<LI TYPE=\"" + type + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   473
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   474
06bc494ca11e Initial load
duke
parents:
diff changeset
   475
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   476
     * Print &lt;H1&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   477
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   478
    public void h1() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   479
        println("<H1>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   480
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   481
06bc494ca11e Initial load
duke
parents:
diff changeset
   482
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   483
     * Print &lt;/H1&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   484
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   485
    public void h1End() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   486
        println("</H1>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   487
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   488
06bc494ca11e Initial load
duke
parents:
diff changeset
   489
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   490
     * Print text with &lt;H1&gt; tag. Also adds &lt;/H1&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   491
     * at the end of the text.
06bc494ca11e Initial load
duke
parents:
diff changeset
   492
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   493
     * @param text Text to be printed with &lt;H1&gt; format.
06bc494ca11e Initial load
duke
parents:
diff changeset
   494
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   495
    public void h1(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   496
        h1();
06bc494ca11e Initial load
duke
parents:
diff changeset
   497
        println(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   498
        h1End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   499
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   500
06bc494ca11e Initial load
duke
parents:
diff changeset
   501
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   502
     * Print &lt;H2&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   503
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   504
    public void h2() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   505
        println("<H2>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   506
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   507
06bc494ca11e Initial load
duke
parents:
diff changeset
   508
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   509
     * Print text with &lt;H2&gt; tag. Also adds &lt;/H2&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   510
     *  at the end of the text.
06bc494ca11e Initial load
duke
parents:
diff changeset
   511
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   512
     * @param text Text to be printed with &lt;H2&gt; format.
06bc494ca11e Initial load
duke
parents:
diff changeset
   513
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   514
    public void h2(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   515
        h2();
06bc494ca11e Initial load
duke
parents:
diff changeset
   516
        println(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   517
        h2End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   518
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   519
06bc494ca11e Initial load
duke
parents:
diff changeset
   520
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   521
     * Print &lt;/H2&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   522
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   523
    public void h2End() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   524
        println("</H2>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   525
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   526
06bc494ca11e Initial load
duke
parents:
diff changeset
   527
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   528
     * Print &lt;H3&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   529
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   530
    public void h3() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   531
        println("<H3>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   532
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   533
06bc494ca11e Initial load
duke
parents:
diff changeset
   534
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   535
     * Print text with &lt;H3&gt; tag. Also adds &lt;/H3&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   536
     *  at the end of the text.
06bc494ca11e Initial load
duke
parents:
diff changeset
   537
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   538
     * @param text Text to be printed with &lt;H3&gt; format.
06bc494ca11e Initial load
duke
parents:
diff changeset
   539
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   540
    public void h3(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   541
        h3();
06bc494ca11e Initial load
duke
parents:
diff changeset
   542
        println(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   543
        h3End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   544
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   545
06bc494ca11e Initial load
duke
parents:
diff changeset
   546
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   547
     * Print &lt;/H3&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   548
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   549
    public void h3End() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   550
        println("</H3>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   551
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   552
06bc494ca11e Initial load
duke
parents:
diff changeset
   553
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   554
     * Print &lt;H4&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   555
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   556
    public void h4() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   557
        println("<H4>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   558
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   559
06bc494ca11e Initial load
duke
parents:
diff changeset
   560
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   561
     * Print &lt;/H4&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   562
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   563
    public void h4End() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   564
        println("</H4>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   565
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   566
06bc494ca11e Initial load
duke
parents:
diff changeset
   567
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   568
     * Print text with &lt;H4&gt; tag. Also adds &lt;/H4&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   569
     * at the end of the text.
06bc494ca11e Initial load
duke
parents:
diff changeset
   570
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   571
     * @param text Text to be printed with &lt;H4&gt; format.
06bc494ca11e Initial load
duke
parents:
diff changeset
   572
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   573
    public void h4(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   574
        h4();
06bc494ca11e Initial load
duke
parents:
diff changeset
   575
        println(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   576
        h4End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   577
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   578
06bc494ca11e Initial load
duke
parents:
diff changeset
   579
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   580
     * Print &lt;H5&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   581
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   582
    public void h5() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   583
        println("<H5>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   584
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   585
06bc494ca11e Initial load
duke
parents:
diff changeset
   586
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   587
     * Print &lt;/H5&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   588
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   589
    public void h5End() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   590
        println("</H5>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   591
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   592
06bc494ca11e Initial load
duke
parents:
diff changeset
   593
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   594
     * Print HTML &lt;IMG SRC="imggif" WIDTH="width" HEIGHT="height" ALT="imgname&gt;
06bc494ca11e Initial load
duke
parents:
diff changeset
   595
     * tag. It prepends the "images" directory name to the "imggif". This
06bc494ca11e Initial load
duke
parents:
diff changeset
   596
     * method is used for oneone format generation. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   597
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   598
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   599
     * @param imggif   Image GIF file.
06bc494ca11e Initial load
duke
parents:
diff changeset
   600
     * @param imgname  Image name.
06bc494ca11e Initial load
duke
parents:
diff changeset
   601
     * @param width    Width of the image.
06bc494ca11e Initial load
duke
parents:
diff changeset
   602
     * @param height   Height of the image.
06bc494ca11e Initial load
duke
parents:
diff changeset
   603
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   604
    public void img(String imggif, String imgname, int width, int height) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   605
        println("<IMG SRC=\"images/" + imggif + ".gif\""
06bc494ca11e Initial load
duke
parents:
diff changeset
   606
              + " WIDTH=\"" + width + "\" HEIGHT=\"" + height
06bc494ca11e Initial load
duke
parents:
diff changeset
   607
              + "\" ALT=\"" + imgname + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   608
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   609
06bc494ca11e Initial load
duke
parents:
diff changeset
   610
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   611
     * Print &lt;MENU&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   612
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   613
    public void menu() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   614
        println("<MENU>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   615
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   616
06bc494ca11e Initial load
duke
parents:
diff changeset
   617
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   618
     * Print &lt;/MENU&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   619
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   620
    public void menuEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   621
        println("</MENU>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   622
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   623
06bc494ca11e Initial load
duke
parents:
diff changeset
   624
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   625
     * Print &lt;PRE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   626
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   627
    public void pre() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   628
        println("<PRE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   629
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   630
06bc494ca11e Initial load
duke
parents:
diff changeset
   631
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   632
     * Print &lt;PRE&gt; tag without adding new line character at th eend.
06bc494ca11e Initial load
duke
parents:
diff changeset
   633
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   634
    public void preNoNewLine() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   635
        print("<PRE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   636
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   637
06bc494ca11e Initial load
duke
parents:
diff changeset
   638
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   639
     * Print &lt;/PRE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   640
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   641
    public void preEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   642
        println("</PRE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   643
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   644
06bc494ca11e Initial load
duke
parents:
diff changeset
   645
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   646
     * Print &lt;HR&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   647
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   648
    public void hr() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   649
        println("<HR>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   650
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   651
06bc494ca11e Initial load
duke
parents:
diff changeset
   652
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   653
     * Print &lt;HR SIZE="size" WIDTH="widthpercent%"&gt; tag. Add a newline
06bc494ca11e Initial load
duke
parents:
diff changeset
   654
     * character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   655
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   656
     * @param size           Size of the ruler.
06bc494ca11e Initial load
duke
parents:
diff changeset
   657
     * @param widthPercent   Percentage Width of the ruler
06bc494ca11e Initial load
duke
parents:
diff changeset
   658
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   659
    public void hr(int size, int widthPercent) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   660
        println("<HR SIZE=\"" + size + "\" WIDTH=\"" + widthPercent + "%\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   661
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   662
06bc494ca11e Initial load
duke
parents:
diff changeset
   663
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   664
     * Print &lt;HR SIZE="size" NOSHADE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   665
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   666
     * @param size           Size of the ruler.
06bc494ca11e Initial load
duke
parents:
diff changeset
   667
     * @param noshade        noshade string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   668
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   669
    public void hr(int size, String noshade) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   670
        println("<HR SIZE=\"" + size + "\" NOSHADE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   671
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   672
06bc494ca11e Initial load
duke
parents:
diff changeset
   673
    /**
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   674
     * Get the "&lt;STRONG&gt;" string.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   675
     *
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   676
     * @return String Return String "&lt;STRONG&gt;";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   677
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   678
    public String getStrong() {
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   679
        return "<STRONG>";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   680
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   681
06bc494ca11e Initial load
duke
parents:
diff changeset
   682
    /**
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   683
     * Get the "&lt;/STRONG&gt;" string.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   684
     *
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   685
     * @return String Return String "&lt;/STRONG&gt;";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   686
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   687
    public String getStrongEnd() {
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   688
        return "</STRONG>";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   689
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   690
06bc494ca11e Initial load
duke
parents:
diff changeset
   691
    /**
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   692
     * Print &lt;STRONG&gt; tag.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   693
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   694
    public void strong() {
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   695
        print("<STRONG>");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   696
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   697
06bc494ca11e Initial load
duke
parents:
diff changeset
   698
    /**
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   699
     * Print &lt;/STRONG&gt; tag.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   700
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   701
    public void strongEnd() {
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   702
        print("</STRONG>");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   703
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   704
06bc494ca11e Initial load
duke
parents:
diff changeset
   705
    /**
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   706
     * Print text passed, in strong format using &lt;STRONG&gt; and &lt;/STRONG&gt; tags.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   707
     *
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   708
     * @param text String to be printed in between &lt;STRONG&gt; and &lt;/STRONG&gt; tags.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   709
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   710
    public void strong(String text) {
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   711
        strong();
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   712
        print(text);
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   713
        strongEnd();
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   714
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   715
06bc494ca11e Initial load
duke
parents:
diff changeset
   716
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   717
     * Print text passed, in Italics using &lt;I&gt; and &lt;/I&gt; tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   718
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   719
     * @param text String to be printed in between &lt;I&gt; and &lt;/I&gt; tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   720
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   721
    public void italics(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   722
        print("<I>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   723
        print(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   724
        println("</I>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   725
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   726
06bc494ca11e Initial load
duke
parents:
diff changeset
   727
    /**
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   728
     * Return, text passed, with Italics &lt;i&gt; and &lt;/i&gt; tags, surrounding it.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   729
     * So if the text passed is "Hi", then string returned will be "&lt;i&gt;Hi&lt;/i&gt;".
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   730
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   731
     * @param text String to be printed in between &lt;I&gt; and &lt;/I&gt; tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   732
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   733
    public String italicsText(String text) {
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   734
        return "<i>" + text + "</i>";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   735
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   736
06bc494ca11e Initial load
duke
parents:
diff changeset
   737
    public String codeText(String text) {
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   738
        return "<code>" + text + "</code>";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   739
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   740
06bc494ca11e Initial load
duke
parents:
diff changeset
   741
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   742
     * Print "&#38;nbsp;", non-breaking space.
06bc494ca11e Initial load
duke
parents:
diff changeset
   743
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   744
    public void space() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   745
        print("&nbsp;");
06bc494ca11e Initial load
duke
parents:
diff changeset
   746
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   747
06bc494ca11e Initial load
duke
parents:
diff changeset
   748
    /**
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   749
     * Return "&#38;nbsp;", non-breaking space.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   750
     */
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   751
    public Content getSpace() {
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   752
        return RawHtml.nbsp;
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   753
    }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   754
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
   755
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   756
     * Print &lt;DL&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   757
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   758
    public void dl() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   759
        println("<DL>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   760
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   761
06bc494ca11e Initial load
duke
parents:
diff changeset
   762
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   763
     * Print &lt;/DL&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   764
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   765
    public void dlEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   766
        println("</DL>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   767
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   768
06bc494ca11e Initial load
duke
parents:
diff changeset
   769
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   770
     * Print &lt;DT&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   771
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   772
    public void dt() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   773
        print("<DT>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   774
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   775
06bc494ca11e Initial load
duke
parents:
diff changeset
   776
    /**
2216
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   777
     * Print &lt;/DT&gt; tag.
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   778
     */
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   779
    public void dtEnd() {
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   780
        print("</DT>");
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   781
    }
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   782
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   783
    /**
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   784
     * Print &lt;DD&gt; tag.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   785
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   786
    public void dd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   787
        print("<DD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   788
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   789
06bc494ca11e Initial load
duke
parents:
diff changeset
   790
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   791
     * Print &lt;/DD&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   792
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   793
    public void ddEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   794
        println("</DD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   795
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   796
06bc494ca11e Initial load
duke
parents:
diff changeset
   797
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   798
     * Print &lt;SUP&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   799
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   800
    public void sup() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   801
        println("<SUP>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   802
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   803
06bc494ca11e Initial load
duke
parents:
diff changeset
   804
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   805
     * Print &lt;/SUP&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   806
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   807
    public void supEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   808
        println("</SUP>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   809
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   810
06bc494ca11e Initial load
duke
parents:
diff changeset
   811
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   812
     * Print &lt;FONT SIZE="size"&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   813
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   814
     * @param size String size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   815
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   816
    public void font(String size) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   817
        println("<FONT SIZE=\"" + size + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   818
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   819
06bc494ca11e Initial load
duke
parents:
diff changeset
   820
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   821
     * Print &lt;FONT SIZE="size"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   822
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   823
     * @param size String size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   824
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   825
    public void fontNoNewLine(String size) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   826
        print("<FONT SIZE=\"" + size + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   827
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   828
06bc494ca11e Initial load
duke
parents:
diff changeset
   829
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   830
     * Print &lt;FONT CLASS="stylename"&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   831
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   832
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
   833
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   834
    public void fontStyle(String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   835
        print("<FONT CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   836
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   837
06bc494ca11e Initial load
duke
parents:
diff changeset
   838
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   839
     * Print &lt;FONT SIZE="size" CLASS="stylename"&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   840
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   841
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   842
     * @param size String size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   843
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
   844
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   845
    public void fontSizeStyle(String size, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   846
        println("<FONT size=\"" + size + "\" CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   847
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   848
06bc494ca11e Initial load
duke
parents:
diff changeset
   849
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   850
     * Print &lt;/FONT&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   851
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   852
    public void fontEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   853
        print("</FONT>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   854
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   855
06bc494ca11e Initial load
duke
parents:
diff changeset
   856
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   857
     * Get the "&lt;FONT COLOR="color"&gt;" string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   858
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   859
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   860
     * @return String Return String "&lt;FONT COLOR="color"&gt;".
06bc494ca11e Initial load
duke
parents:
diff changeset
   861
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   862
    public String getFontColor(String color) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   863
        return "<FONT COLOR=\"" + color + "\">";
06bc494ca11e Initial load
duke
parents:
diff changeset
   864
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   865
06bc494ca11e Initial load
duke
parents:
diff changeset
   866
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   867
     * Get the "&lt;/FONT&gt;" string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   868
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   869
     * @return String Return String "&lt;/FONT&gt;";
06bc494ca11e Initial load
duke
parents:
diff changeset
   870
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   871
    public String getFontEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   872
        return "</FONT>";
06bc494ca11e Initial load
duke
parents:
diff changeset
   873
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   874
06bc494ca11e Initial load
duke
parents:
diff changeset
   875
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   876
     * Print &lt;CENTER&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   877
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   878
    public void center() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   879
        println("<CENTER>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   880
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   881
06bc494ca11e Initial load
duke
parents:
diff changeset
   882
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   883
     * Print &lt;/CENTER&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   884
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   885
    public void centerEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   886
        println("</CENTER>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   887
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   888
06bc494ca11e Initial load
duke
parents:
diff changeset
   889
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   890
     * Print anchor &lt;A NAME="name"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   891
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   892
     * @param name Name String.
06bc494ca11e Initial load
duke
parents:
diff changeset
   893
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   894
    public void aName(String name) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   895
        print("<A NAME=\"" + name + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   896
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   897
06bc494ca11e Initial load
duke
parents:
diff changeset
   898
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   899
     * Print &lt;/A&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   900
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   901
    public void aEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   902
        print("</A>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   903
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   904
06bc494ca11e Initial load
duke
parents:
diff changeset
   905
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   906
     * Print &lt;I&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   907
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   908
    public void italic() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   909
        print("<I>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   910
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   911
06bc494ca11e Initial load
duke
parents:
diff changeset
   912
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   913
     * Print &lt;/I&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   914
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   915
    public void italicEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   916
        print("</I>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   917
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   918
06bc494ca11e Initial load
duke
parents:
diff changeset
   919
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   920
     * Print contents within anchor &lt;A NAME="name"&gt; tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   921
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   922
     * @param name String name.
06bc494ca11e Initial load
duke
parents:
diff changeset
   923
     * @param content String contents.
06bc494ca11e Initial load
duke
parents:
diff changeset
   924
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   925
    public void anchor(String name, String content) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   926
        aName(name);
06bc494ca11e Initial load
duke
parents:
diff changeset
   927
        print(content);
06bc494ca11e Initial load
duke
parents:
diff changeset
   928
        aEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   929
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   930
06bc494ca11e Initial load
duke
parents:
diff changeset
   931
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   932
     * Print anchor &lt;A NAME="name"&gt; and &lt;/A&gt;tags. Print comment string
06bc494ca11e Initial load
duke
parents:
diff changeset
   933
     * "&lt;!-- --&gt;" within those tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   934
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   935
     * @param name String name.
06bc494ca11e Initial load
duke
parents:
diff changeset
   936
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   937
    public void anchor(String name) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   938
        anchor(name, "<!-- -->");
06bc494ca11e Initial load
duke
parents:
diff changeset
   939
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   940
06bc494ca11e Initial load
duke
parents:
diff changeset
   941
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   942
     * Print newline and then print &lt;P&gt; tag. Add a newline character at the
06bc494ca11e Initial load
duke
parents:
diff changeset
   943
     * end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   944
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   945
    public void p() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   946
        println();
06bc494ca11e Initial load
duke
parents:
diff changeset
   947
        println("<P>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   948
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   949
06bc494ca11e Initial load
duke
parents:
diff changeset
   950
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   951
     * Print newline and then print &lt;/P&gt; tag. Add a newline character at the
06bc494ca11e Initial load
duke
parents:
diff changeset
   952
     * end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   953
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   954
    public void pEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   955
        println();
06bc494ca11e Initial load
duke
parents:
diff changeset
   956
        println("</P>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   957
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   958
06bc494ca11e Initial load
duke
parents:
diff changeset
   959
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   960
     * Print newline and then print &lt;BR&gt; tag. Add a newline character at the
06bc494ca11e Initial load
duke
parents:
diff changeset
   961
     * end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   962
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   963
    public void br() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   964
        println();
06bc494ca11e Initial load
duke
parents:
diff changeset
   965
        println("<BR>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   966
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   967
06bc494ca11e Initial load
duke
parents:
diff changeset
   968
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   969
     * Print &lt;ADDRESS&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   970
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   971
    public void address() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   972
        println("<ADDRESS>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   973
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   974
06bc494ca11e Initial load
duke
parents:
diff changeset
   975
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   976
     * Print &lt;/ADDRESS&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   977
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   978
    public void addressEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   979
        println("</ADDRESS>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   980
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   981
06bc494ca11e Initial load
duke
parents:
diff changeset
   982
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   983
     * Print &lt;HEAD&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   984
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   985
    public void head() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   986
        println("<HEAD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   987
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   988
06bc494ca11e Initial load
duke
parents:
diff changeset
   989
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   990
     * Print &lt;/HEAD&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   991
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   992
    public void headEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   993
        println("</HEAD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   994
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   995
06bc494ca11e Initial load
duke
parents:
diff changeset
   996
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   997
     * Print &lt;CODE&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   998
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   999
    public void code() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1000
        print("<CODE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1001
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1002
06bc494ca11e Initial load
duke
parents:
diff changeset
  1003
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1004
     * Print &lt;/CODE&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1005
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1006
    public void codeEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1007
        print("</CODE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1008
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1009
06bc494ca11e Initial load
duke
parents:
diff changeset
  1010
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1011
     * Print &lt;EM&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1012
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1013
    public void em() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1014
        println("<EM>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1015
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1016
06bc494ca11e Initial load
duke
parents:
diff changeset
  1017
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1018
     * Print &lt;/EM&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1019
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1020
    public void emEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1021
        println("</EM>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1022
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1023
06bc494ca11e Initial load
duke
parents:
diff changeset
  1024
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1025
     * Print HTML &lt;TABLE BORDER="border" WIDTH="width"
06bc494ca11e Initial load
duke
parents:
diff changeset
  1026
     * CELLPADDING="cellpadding" CELLSPACING="cellspacing"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1027
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1028
     * @param border       Border size.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1029
     * @param width        Width of the table.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1030
     * @param cellpadding  Cellpadding for the table cells.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1031
     * @param cellspacing  Cellspacing for the table cells.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1032
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1033
    public void table(int border, String width, int cellpadding,
06bc494ca11e Initial load
duke
parents:
diff changeset
  1034
                      int cellspacing) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1035
        println(DocletConstants.NL +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1036
                "<TABLE BORDER=\"" + border +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1037
                "\" WIDTH=\"" + width +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1038
                "\" CELLPADDING=\"" + cellpadding +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1039
                "\" CELLSPACING=\"" + cellspacing +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1040
                "\" SUMMARY=\"\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1041
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1042
06bc494ca11e Initial load
duke
parents:
diff changeset
  1043
    /**
2320
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1044
     * Print HTML &lt;TABLE BORDER="border" WIDTH="width"
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1045
     * CELLPADDING="cellpadding" CELLSPACING="cellspacing" SUMMARY="summary"&gt; tag.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1046
     *
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1047
     * @param border       Border size.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1048
     * @param width        Width of the table.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1049
     * @param cellpadding  Cellpadding for the table cells.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1050
     * @param cellspacing  Cellspacing for the table cells.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1051
     * @param summary      Table summary.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1052
     */
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1053
    public void table(int border, String width, int cellpadding,
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1054
                      int cellspacing, String summary) {
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1055
        println(DocletConstants.NL +
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1056
                "<TABLE BORDER=\"" + border +
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1057
                "\" WIDTH=\"" + width +
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1058
                "\" CELLPADDING=\"" + cellpadding +
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1059
                "\" CELLSPACING=\"" + cellspacing +
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1060
                "\" SUMMARY=\"" + summary + "\">");
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1061
    }
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1062
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1063
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
  1064
     * Print HTML &lt;TABLE BORDER="border" CELLPADDING="cellpadding"
06bc494ca11e Initial load
duke
parents:
diff changeset
  1065
     * CELLSPACING="cellspacing"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1066
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1067
     * @param border       Border size.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1068
     * @param cellpadding  Cellpadding for the table cells.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1069
     * @param cellspacing  Cellspacing for the table cells.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1070
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1071
    public void table(int border, int cellpadding, int cellspacing) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1072
        println(DocletConstants.NL +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1073
                "<TABLE BORDER=\"" + border +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1074
                "\" CELLPADDING=\"" + cellpadding +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1075
                "\" CELLSPACING=\"" + cellspacing +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1076
                "\" SUMMARY=\"\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1077
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1078
06bc494ca11e Initial load
duke
parents:
diff changeset
  1079
    /**
2320
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1080
     * Print HTML &lt;TABLE BORDER="border" CELLPADDING="cellpadding"
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1081
     * CELLSPACING="cellspacing" SUMMARY="summary"&gt; tag.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1082
     *
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1083
     * @param border       Border size.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1084
     * @param cellpadding  Cellpadding for the table cells.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1085
     * @param cellspacing  Cellspacing for the table cells.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1086
     * @param summary      Table summary.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1087
     */
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1088
    public void table(int border, int cellpadding, int cellspacing, String summary) {
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1089
        println(DocletConstants.NL +
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1090
                "<TABLE BORDER=\"" + border +
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1091
                "\" CELLPADDING=\"" + cellpadding +
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1092
                "\" CELLSPACING=\"" + cellspacing +
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1093
                "\" SUMMARY=\"" + summary + "\">");
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1094
    }
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1095
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1096
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
  1097
     * Print HTML &lt;TABLE BORDER="border" WIDTH="width"&gt;
06bc494ca11e Initial load
duke
parents:
diff changeset
  1098
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1099
     * @param border       Border size.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1100
     * @param width        Width of the table.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1101
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1102
    public void table(int border, String width) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1103
        println(DocletConstants.NL +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1104
                "<TABLE BORDER=\"" + border +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1105
                "\" WIDTH=\"" + width +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1106
                "\" SUMMARY=\"\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1107
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1108
06bc494ca11e Initial load
duke
parents:
diff changeset
  1109
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1110
     * Print the HTML table tag with border size 0 and width 100%.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1111
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1112
    public void table() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1113
        table(0, "100%");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1114
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1115
06bc494ca11e Initial load
duke
parents:
diff changeset
  1116
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1117
     * Print &lt;/TABLE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1118
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1119
    public void tableEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1120
        println("</TABLE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1121
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1122
06bc494ca11e Initial load
duke
parents:
diff changeset
  1123
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1124
     * Print &lt;TR&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1125
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1126
    public void tr() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1127
        println("<TR>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1128
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1129
06bc494ca11e Initial load
duke
parents:
diff changeset
  1130
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1131
     * Print &lt;/TR&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1132
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1133
    public void trEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1134
        println("</TR>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1135
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1136
06bc494ca11e Initial load
duke
parents:
diff changeset
  1137
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1138
     * Print &lt;TD&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1139
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1140
    public void td() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1141
        print("<TD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1142
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1143
06bc494ca11e Initial load
duke
parents:
diff changeset
  1144
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1145
     * Print &lt;TD NOWRAP&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1146
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1147
    public void tdNowrap() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1148
        print("<TD NOWRAP>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1149
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1150
06bc494ca11e Initial load
duke
parents:
diff changeset
  1151
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1152
     * Print &lt;TD WIDTH="width"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1153
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1154
     * @param width String width.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1155
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1156
    public void tdWidth(String width) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1157
        print("<TD WIDTH=\"" + width + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1158
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1159
06bc494ca11e Initial load
duke
parents:
diff changeset
  1160
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1161
     * Print &lt;/TD&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1162
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1163
    public void tdEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1164
        println("</TD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1165
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1166
06bc494ca11e Initial load
duke
parents:
diff changeset
  1167
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1168
     * Print &lt;LINK str&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1169
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1170
     * @param str String.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1171
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1172
    public void link(String str) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1173
        println("<LINK " + str + ">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1174
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1175
06bc494ca11e Initial load
duke
parents:
diff changeset
  1176
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1177
     * Print "&lt;!-- " comment start string.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1178
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1179
    public void commentStart() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1180
         print("<!-- ");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1181
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1182
06bc494ca11e Initial load
duke
parents:
diff changeset
  1183
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1184
     * Print "--&gt;" comment end string. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1185
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1186
    public void commentEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1187
         println("-->");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1188
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1189
06bc494ca11e Initial load
duke
parents:
diff changeset
  1190
    /**
2320
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1191
     * Print &lt;CAPTION CLASS="stylename"&gt; tag. Adds a newline character
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1192
     * at the end.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1193
     *
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1194
     * @param stylename style to be applied.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1195
     */
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1196
    public void captionStyle(String stylename) {
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1197
        println("<CAPTION CLASS=\"" + stylename + "\">");
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1198
    }
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1199
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1200
    /**
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1201
     * Print &lt;/CAPTION&gt; tag. Add a newline character at the end.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1202
     */
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1203
    public void captionEnd() {
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1204
        println("</CAPTION>");
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1205
    }
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1206
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1207
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
  1208
     * Print &lt;TR BGCOLOR="color" CLASS="stylename"&gt; tag. Adds a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
  1209
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1210
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1211
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1212
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1213
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1214
    public void trBgcolorStyle(String color, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1215
        println("<TR BGCOLOR=\"" + color + "\" CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1216
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1217
06bc494ca11e Initial load
duke
parents:
diff changeset
  1218
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1219
     * Print &lt;TR BGCOLOR="color"&gt; tag. Adds a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1220
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1221
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1222
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1223
    public void trBgcolor(String color) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1224
        println("<TR BGCOLOR=\"" + color + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1225
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1226
06bc494ca11e Initial load
duke
parents:
diff changeset
  1227
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1228
     * Print &lt;TR ALIGN="align" VALIGN="valign"&gt; tag. Adds a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
  1229
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1230
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1231
     * @param align String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1232
     * @param valign String valign.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1233
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1234
    public void trAlignVAlign(String align, String valign) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1235
        println("<TR ALIGN=\"" + align + "\" VALIGN=\"" + valign + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1236
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1237
06bc494ca11e Initial load
duke
parents:
diff changeset
  1238
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1239
     * Print &lt;TH ALIGN="align"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1240
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1241
     * @param align the align attribute.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1242
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1243
    public void thAlign(String align) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1244
        print("<TH ALIGN=\"" + align + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1245
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1246
06bc494ca11e Initial load
duke
parents:
diff changeset
  1247
    /**
2320
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1248
     * Print &lt;TH CLASS="stylename" SCOPE="scope" NOWRAP&gt; tag.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1249
     *
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1250
     * @param stylename style to be applied.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1251
     * @param scope the scope attribute.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1252
     */
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1253
    public void thScopeNoWrap(String stylename, String scope) {
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1254
        print("<TH CLASS=\"" + stylename + "\" SCOPE=\"" + scope + "\" NOWRAP>");
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1255
    }
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1256
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1257
    /*
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1258
     * Returns a header for Modifier and Type column of a table.
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1259
     */
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1260
    public String getModifierTypeHeader() {
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1261
        return modifierTypeHeader;
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1262
    }
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1263
5b8c377175f4 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents: 2223
diff changeset
  1264
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
  1265
     * Print &lt;TH align="align" COLSPAN=i&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1266
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1267
     * @param align the align attribute.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1268
     * @param i integer.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1269
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1270
    public void thAlignColspan(String align, int i) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1271
        print("<TH ALIGN=\"" + align + "\" COLSPAN=\"" + i + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1272
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1273
06bc494ca11e Initial load
duke
parents:
diff changeset
  1274
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1275
     * Print &lt;TH align="align" NOWRAP&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1276
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1277
     * @param align the align attribute.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1278
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1279
    public void thAlignNowrap(String align) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1280
        print("<TH ALIGN=\"" + align + "\" NOWRAP>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1281
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1282
06bc494ca11e Initial load
duke
parents:
diff changeset
  1283
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1284
     * Print &lt;/TH&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1285
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1286
    public void thEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1287
        println("</TH>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1288
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1289
06bc494ca11e Initial load
duke
parents:
diff changeset
  1290
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1291
     * Print &lt;TD COLSPAN=i&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1292
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1293
     * @param i integer.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1294
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1295
    public void tdColspan(int i) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1296
        print("<TD COLSPAN=" + i + ">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1297
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1298
06bc494ca11e Initial load
duke
parents:
diff changeset
  1299
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1300
     * Print &lt;TD BGCOLOR="color" CLASS="stylename"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1301
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1302
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1303
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1304
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1305
    public void tdBgcolorStyle(String color, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1306
        print("<TD BGCOLOR=\"" + color + "\" CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1307
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1308
06bc494ca11e Initial load
duke
parents:
diff changeset
  1309
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1310
     * Print &lt;TD COLSPAN=i BGCOLOR="color" CLASS="stylename"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1311
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1312
     * @param i integer.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1313
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1314
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1315
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1316
    public void tdColspanBgcolorStyle(int i, String color, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1317
        print("<TD COLSPAN=" + i + " BGCOLOR=\"" + color + "\" CLASS=\"" +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1318
              stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1319
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1320
06bc494ca11e Initial load
duke
parents:
diff changeset
  1321
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1322
     * Print &lt;TD ALIGN="align"&gt; tag. Adds a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
  1323
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1324
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1325
     * @param align String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1326
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1327
    public void tdAlign(String align) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1328
        print("<TD ALIGN=\"" + align + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1329
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1330
06bc494ca11e Initial load
duke
parents:
diff changeset
  1331
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1332
     * Print &lt;TD ALIGN="align" CLASS="stylename"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1333
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1334
     * @param align        String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1335
     * @param stylename    String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1336
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1337
    public void tdVAlignClass(String align, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1338
        print("<TD VALIGN=\"" + align + "\" CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1339
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1340
06bc494ca11e Initial load
duke
parents:
diff changeset
  1341
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1342
     * Print &lt;TD VALIGN="valign"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1343
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1344
     * @param valign String valign.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1345
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1346
    public void tdVAlign(String valign) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1347
        print("<TD VALIGN=\"" + valign + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1348
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1349
06bc494ca11e Initial load
duke
parents:
diff changeset
  1350
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1351
     * Print &lt;TD ALIGN="align" VALIGN="valign"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1352
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1353
     * @param align   String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1354
     * @param valign  String valign.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1355
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1356
    public void tdAlignVAlign(String align, String valign) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1357
        print("<TD ALIGN=\"" + align + "\" VALIGN=\"" + valign + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1358
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1359
06bc494ca11e Initial load
duke
parents:
diff changeset
  1360
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1361
     * Print &lt;TD ALIGN="align" ROWSPAN=rowspan&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1362
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1363
     * @param align    String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1364
     * @param rowspan  integer rowspan.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1365
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1366
    public void tdAlignRowspan(String align, int rowspan) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1367
        print("<TD ALIGN=\"" + align + "\" ROWSPAN=" + rowspan + ">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1368
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1369
06bc494ca11e Initial load
duke
parents:
diff changeset
  1370
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1371
     * Print &lt;TD ALIGN="align" VALIGN="valign" ROWSPAN=rowspan&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1372
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1373
     * @param align    String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1374
     * @param valign  String valign.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1375
     * @param rowspan  integer rowspan.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1376
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1377
    public void tdAlignVAlignRowspan(String align, String valign,
06bc494ca11e Initial load
duke
parents:
diff changeset
  1378
                                     int rowspan) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1379
        print("<TD ALIGN=\"" + align + "\" VALIGN=\"" + valign
06bc494ca11e Initial load
duke
parents:
diff changeset
  1380
                + "\" ROWSPAN=" + rowspan + ">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1381
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1382
06bc494ca11e Initial load
duke
parents:
diff changeset
  1383
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1384
     * Print &lt;BLOCKQUOTE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1385
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1386
    public void blockquote() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1387
        println("<BLOCKQUOTE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1388
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1389
06bc494ca11e Initial load
duke
parents:
diff changeset
  1390
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1391
     * Print &lt;/BLOCKQUOTE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1392
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1393
    public void blockquoteEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1394
        println("</BLOCKQUOTE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1395
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1396
06bc494ca11e Initial load
duke
parents:
diff changeset
  1397
    /**
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
  1398
     * Get the "&lt;code&gt;" string.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
  1399
     *
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
  1400
     * @return String Return String "&lt;code&gt;";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
  1401
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1402
    public String getCode() {
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
  1403
        return "<code>";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
  1404
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1405
06bc494ca11e Initial load
duke
parents:
diff changeset
  1406
    /**
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
  1407
     * Get the "&lt;/code&gt;" string.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
  1408
     *
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
  1409
     * @return String Return String "&lt;/code&gt;";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
  1410
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1411
    public String getCodeEnd() {
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents: 5520
diff changeset
  1412
        return "</code>";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
  1413
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1414
06bc494ca11e Initial load
duke
parents:
diff changeset
  1415
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1416
     * Print &lt;NOFRAMES&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1417
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1418
    public void noFrames() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1419
        println("<NOFRAMES>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1420
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1421
06bc494ca11e Initial load
duke
parents:
diff changeset
  1422
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1423
     * Print &lt;/NOFRAMES&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1424
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1425
    public void noFramesEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1426
        println("</NOFRAMES>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1427
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1428
}