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