langtools/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
author tbell
Mon, 09 Mar 2009 23:53:41 -0700
changeset 2223 95e3c21b2919
parent 2212 1d3dc0e0ba0c
parent 2216 b124d5c924eb
child 2320 5b8c377175f4
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
2212
1d3dc0e0ba0c 6814575: Update copyright year
xdono
parents: 1863
diff changeset
     2
 * Copyright 1997-2009 Sun Microsystems, Inc.  All Rights Reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
06bc494ca11e Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
06bc494ca11e Initial load
duke
parents:
diff changeset
    23
 * have any questions.
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
package com.sun.tools.doclets.formats.html.markup;
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
2216
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
    28
import java.io.*;
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
    29
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
import com.sun.tools.doclets.internal.toolkit.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
import com.sun.tools.doclets.internal.toolkit.util.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
 * Class for the Html format code generation.
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
 * Initilizes PrintWriter with FileWriter, to enable print
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
 * related methods to generate the code to the named File through FileWriter.
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
 * @since 1.2
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
 * @author Atul M Dambalkar
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
public class HtmlWriter extends PrintWriter {
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
     * Name of the file, to which this writer is writing to.
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
    protected final String htmlFilename;
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
     * The window title of this file
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
    protected String winTitle;
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
     * URL file separator string("/").
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
    public static final String fileseparator =
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
         DirectoryManager.URL_FILE_SEPERATOR;
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
     * The configuration
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
    protected Configuration configuration;
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
    /**
2216
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
    65
     * 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
    66
     */
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
    67
    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
    68
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
    69
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
     * Constructor.
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
     * @param path The directory path to be created for this file
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
     *             or null if none to be created.
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
     * @param filename File Name to which the PrintWriter will
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
     *                 do the Output.
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
     * @param docencoding Encoding to be used for this file.
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
     * @exception IOException Exception raised by the FileWriter is passed on
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
     * to next level.
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
     * @exception UnSupportedEncodingException Exception raised by the
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
     * OutputStreamWriter is passed on to next level.
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
    public HtmlWriter(Configuration configuration,
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
                      String path, String filename, String docencoding)
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
                      throws IOException, UnsupportedEncodingException {
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
        super(Util.genWriter(configuration, path, filename, docencoding));
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
        this.configuration = configuration;
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
        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
    88
        this.memberDetailsListPrinted = false;
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
     * Print <HTML> tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
    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
    95
        println("<HTML lang=\"" + configuration.getLocale().getLanguage() + "\">");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
     * Print &lt;/HTML&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
    public void htmlEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
        println("</HTML>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
     * Print the script code to be embeded before the  &lt;/HEAD&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
    protected void printWinTitleScript(String winTitle){
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
        if(winTitle != null && winTitle.length() > 0) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
            script();
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
            println("function windowTitle()");
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
            println("{");
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
            println("    if (location.href.indexOf('is-external=true') == -1) {");
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
            println("        parent.document.title=\"" + winTitle + "\";");
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
            println("    }");
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
            println("}");
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
            scriptEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
            noScript();
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
            noScriptEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
     * Print the Javascript &lt;SCRIPT&gt; start tag with its type
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
     * attribute.
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
    public void script() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
        println("<SCRIPT type=\"text/javascript\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
     * Print the Javascript &lt;/SCRIPT&gt; end tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
    public void scriptEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
        println("</SCRIPT>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
     * Print the Javascript &lt;NOSCRIPT&gt; start tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
    public void noScript() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
        println("<NOSCRIPT>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
     * Print the Javascript &lt;/NOSCRIPT&gt; end tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
    public void noScriptEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
        println("</NOSCRIPT>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
     * Return the Javascript call to be embedded in the &lt;BODY&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
     * Return nothing if winTitle is empty.
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
     * @return the Javascript call to be embedded in the &lt;BODY&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
    protected String getWindowTitleOnload(){
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
        if(winTitle != null && winTitle.length() > 0) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
            return " onload=\"windowTitle();\"";
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
        } else {
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
            return "";
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
     * Print &lt;BODY BGCOLOR="bgcolor"&gt;, including JavaScript
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
     * "onload" call to load windowtitle script.  This script shows the name
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
     * of the document in the window title bar when frames are on.
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
     * @param bgcolor Background color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
     * @param includeScript  boolean set true if printing windowtitle script
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
    public void body(String bgcolor, boolean includeScript) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
        print("<BODY BGCOLOR=\"" + bgcolor + "\"");
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
        if (includeScript) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
            print(getWindowTitleOnload());
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
        println(">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
     * Print &lt;/BODY&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
    public void bodyEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
        println("</BODY>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
     * Print &lt;TITLE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
    public void title() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
        println("<TITLE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
     * Print &lt;TITLE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
     * @param winTitle The title of this document.
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
    public void title(String winTitle) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
        // Set window title string which is later printed
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
        this.winTitle = winTitle;
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
        title();
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
     * Print &lt;/TITLE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
    public void titleEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
        println("</TITLE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
     * Print &lt;UL&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
    public void ul() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
        println("<UL>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
     * Print &lt;/UL&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
    public void ulEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
        println("</UL>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
     * Print &lt;LI&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
    public void li() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
        print("<LI>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
     * Print &lt;LI TYPE="type"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
     * @param type Type string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
    public void li(String type) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   241
        print("<LI TYPE=\"" + type + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   242
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   243
06bc494ca11e Initial load
duke
parents:
diff changeset
   244
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   245
     * Print &lt;H1&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   246
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   247
    public void h1() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   248
        println("<H1>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   249
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   250
06bc494ca11e Initial load
duke
parents:
diff changeset
   251
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   252
     * Print &lt;/H1&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   253
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   254
    public void h1End() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
        println("</H1>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   259
     * Print text with &lt;H1&gt; tag. Also adds &lt;/H1&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   260
     * at the end of the text.
06bc494ca11e Initial load
duke
parents:
diff changeset
   261
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   262
     * @param text Text to be printed with &lt;H1&gt; format.
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
    public void h1(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
        h1();
06bc494ca11e Initial load
duke
parents:
diff changeset
   266
        println(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   267
        h1End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   268
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   269
06bc494ca11e Initial load
duke
parents:
diff changeset
   270
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   271
     * Print &lt;H2&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   272
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   273
    public void h2() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   274
        println("<H2>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   275
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   276
06bc494ca11e Initial load
duke
parents:
diff changeset
   277
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   278
     * Print text with &lt;H2&gt; tag. Also adds &lt;/H2&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   279
     *  at the end of the text.
06bc494ca11e Initial load
duke
parents:
diff changeset
   280
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   281
     * @param text Text to be printed with &lt;H2&gt; format.
06bc494ca11e Initial load
duke
parents:
diff changeset
   282
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   283
    public void h2(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   284
        h2();
06bc494ca11e Initial load
duke
parents:
diff changeset
   285
        println(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   286
        h2End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   287
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   288
06bc494ca11e Initial load
duke
parents:
diff changeset
   289
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   290
     * Print &lt;/H2&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   291
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   292
    public void h2End() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   293
        println("</H2>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   294
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   295
06bc494ca11e Initial load
duke
parents:
diff changeset
   296
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   297
     * Print &lt;H3&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   298
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   299
    public void h3() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   300
        println("<H3>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   301
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   302
06bc494ca11e Initial load
duke
parents:
diff changeset
   303
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   304
     * Print text with &lt;H3&gt; tag. Also adds &lt;/H3&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   305
     *  at the end of the text.
06bc494ca11e Initial load
duke
parents:
diff changeset
   306
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   307
     * @param text Text to be printed with &lt;H3&gt; format.
06bc494ca11e Initial load
duke
parents:
diff changeset
   308
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   309
    public void h3(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   310
        h3();
06bc494ca11e Initial load
duke
parents:
diff changeset
   311
        println(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   312
        h3End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   313
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   314
06bc494ca11e Initial load
duke
parents:
diff changeset
   315
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   316
     * Print &lt;/H3&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   317
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   318
    public void h3End() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   319
        println("</H3>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   320
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   321
06bc494ca11e Initial load
duke
parents:
diff changeset
   322
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   323
     * Print &lt;H4&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   324
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   325
    public void h4() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   326
        println("<H4>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   327
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   328
06bc494ca11e Initial load
duke
parents:
diff changeset
   329
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   330
     * Print &lt;/H4&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   331
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   332
    public void h4End() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   333
        println("</H4>");
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 text with &lt;H4&gt; tag. Also adds &lt;/H4&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   338
     * at the end of the text.
06bc494ca11e Initial load
duke
parents:
diff changeset
   339
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   340
     * @param text Text to be printed with &lt;H4&gt; format.
06bc494ca11e Initial load
duke
parents:
diff changeset
   341
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   342
    public void h4(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   343
        h4();
06bc494ca11e Initial load
duke
parents:
diff changeset
   344
        println(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   345
        h4End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   346
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   347
06bc494ca11e Initial load
duke
parents:
diff changeset
   348
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   349
     * Print &lt;H5&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   350
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   351
    public void h5() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   352
        println("<H5>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   353
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   354
06bc494ca11e Initial load
duke
parents:
diff changeset
   355
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   356
     * Print &lt;/H5&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   357
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   358
    public void h5End() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   359
        println("</H5>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   360
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   361
06bc494ca11e Initial load
duke
parents:
diff changeset
   362
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   363
     * Print HTML &lt;IMG SRC="imggif" WIDTH="width" HEIGHT="height" ALT="imgname&gt;
06bc494ca11e Initial load
duke
parents:
diff changeset
   364
     * tag. It prepends the "images" directory name to the "imggif". This
06bc494ca11e Initial load
duke
parents:
diff changeset
   365
     * method is used for oneone format generation. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   366
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   367
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   368
     * @param imggif   Image GIF file.
06bc494ca11e Initial load
duke
parents:
diff changeset
   369
     * @param imgname  Image name.
06bc494ca11e Initial load
duke
parents:
diff changeset
   370
     * @param width    Width of the image.
06bc494ca11e Initial load
duke
parents:
diff changeset
   371
     * @param height   Height of the image.
06bc494ca11e Initial load
duke
parents:
diff changeset
   372
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   373
    public void img(String imggif, String imgname, int width, int height) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   374
        println("<IMG SRC=\"images/" + imggif + ".gif\""
06bc494ca11e Initial load
duke
parents:
diff changeset
   375
              + " WIDTH=\"" + width + "\" HEIGHT=\"" + height
06bc494ca11e Initial load
duke
parents:
diff changeset
   376
              + "\" ALT=\"" + imgname + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   377
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   378
06bc494ca11e Initial load
duke
parents:
diff changeset
   379
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   380
     * Print &lt;MENU&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   381
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   382
    public void menu() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   383
        println("<MENU>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   384
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   385
06bc494ca11e Initial load
duke
parents:
diff changeset
   386
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   387
     * Print &lt;/MENU&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   388
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   389
    public void menuEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   390
        println("</MENU>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   391
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   392
06bc494ca11e Initial load
duke
parents:
diff changeset
   393
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   394
     * Print &lt;PRE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   395
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   396
    public void pre() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   397
        println("<PRE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   398
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   399
06bc494ca11e Initial load
duke
parents:
diff changeset
   400
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   401
     * Print &lt;PRE&gt; tag without adding new line character at th eend.
06bc494ca11e Initial load
duke
parents:
diff changeset
   402
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   403
    public void preNoNewLine() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   404
        print("<PRE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   405
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   406
06bc494ca11e Initial load
duke
parents:
diff changeset
   407
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   408
     * Print &lt;/PRE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   409
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   410
    public void preEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   411
        println("</PRE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   412
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   413
06bc494ca11e Initial load
duke
parents:
diff changeset
   414
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   415
     * Print &lt;HR&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   416
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   417
    public void hr() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   418
        println("<HR>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   419
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   420
06bc494ca11e Initial load
duke
parents:
diff changeset
   421
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   422
     * Print &lt;HR SIZE="size" WIDTH="widthpercent%"&gt; tag. Add a newline
06bc494ca11e Initial load
duke
parents:
diff changeset
   423
     * character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   424
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   425
     * @param size           Size of the ruler.
06bc494ca11e Initial load
duke
parents:
diff changeset
   426
     * @param widthPercent   Percentage Width of the ruler
06bc494ca11e Initial load
duke
parents:
diff changeset
   427
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   428
    public void hr(int size, int widthPercent) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   429
        println("<HR SIZE=\"" + size + "\" WIDTH=\"" + widthPercent + "%\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   430
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   431
06bc494ca11e Initial load
duke
parents:
diff changeset
   432
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   433
     * Print &lt;HR SIZE="size" NOSHADE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   434
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   435
     * @param size           Size of the ruler.
06bc494ca11e Initial load
duke
parents:
diff changeset
   436
     * @param noshade        noshade string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   437
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   438
    public void hr(int size, String noshade) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   439
        println("<HR SIZE=\"" + size + "\" NOSHADE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   440
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   441
06bc494ca11e Initial load
duke
parents:
diff changeset
   442
    /**
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   443
     * Get the "&lt;STRONG&gt;" string.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   444
     *
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   445
     * @return String Return String "&lt;STRONG&gt;";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   446
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   447
    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
   448
        return "<STRONG>";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   449
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   450
06bc494ca11e Initial load
duke
parents:
diff changeset
   451
    /**
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   452
     * Get the "&lt;/STRONG&gt;" string.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   453
     *
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   454
     * @return String Return String "&lt;/STRONG&gt;";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   455
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   456
    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
   457
        return "</STRONG>";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   458
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   459
06bc494ca11e Initial load
duke
parents:
diff changeset
   460
    /**
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   461
     * Print &lt;STRONG&gt; tag.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   462
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   463
    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
   464
        print("<STRONG>");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   465
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   466
06bc494ca11e Initial load
duke
parents:
diff changeset
   467
    /**
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   468
     * Print &lt;/STRONG&gt; tag.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   469
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   470
    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
   471
        print("</STRONG>");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   472
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   473
06bc494ca11e Initial load
duke
parents:
diff changeset
   474
    /**
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   475
     * Print text passed, in strong format using &lt;STRONG&gt; and &lt;/STRONG&gt; tags.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   476
     *
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   477
     * @param text String to be printed in between &lt;STRONG&gt; and &lt;/STRONG&gt; tags.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   478
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   479
    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
   480
        strong();
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   481
        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
   482
        strongEnd();
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   483
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   484
06bc494ca11e Initial load
duke
parents:
diff changeset
   485
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   486
     * Print text passed, in Italics using &lt;I&gt; and &lt;/I&gt; tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   487
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   488
     * @param text String to be printed in between &lt;I&gt; and &lt;/I&gt; tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   489
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   490
    public void italics(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   491
        print("<I>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   492
        print(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   493
        println("</I>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   494
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   495
06bc494ca11e Initial load
duke
parents:
diff changeset
   496
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   497
     * Return, text passed, with Italics &lt;I&gt; and &lt;/I&gt; tags, surrounding it.
06bc494ca11e Initial load
duke
parents:
diff changeset
   498
     * So if the text passed is "Hi", then string returned will be "&lt;I&gt;Hi&lt;/I&gt;".
06bc494ca11e Initial load
duke
parents:
diff changeset
   499
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   500
     * @param text String to be printed in between &lt;I&gt; and &lt;/I&gt; tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   501
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   502
    public String italicsText(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   503
        return "<I>" + text + "</I>";
06bc494ca11e Initial load
duke
parents:
diff changeset
   504
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   505
06bc494ca11e Initial load
duke
parents:
diff changeset
   506
    public String codeText(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   507
        return "<CODE>" + text + "</CODE>";
06bc494ca11e Initial load
duke
parents:
diff changeset
   508
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   509
06bc494ca11e Initial load
duke
parents:
diff changeset
   510
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   511
     * Print "&#38;nbsp;", non-breaking space.
06bc494ca11e Initial load
duke
parents:
diff changeset
   512
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   513
    public void space() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   514
        print("&nbsp;");
06bc494ca11e Initial load
duke
parents:
diff changeset
   515
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   516
06bc494ca11e Initial load
duke
parents:
diff changeset
   517
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   518
     * Print &lt;DL&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   519
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   520
    public void dl() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   521
        println("<DL>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   522
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   523
06bc494ca11e Initial load
duke
parents:
diff changeset
   524
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   525
     * Print &lt;/DL&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   526
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   527
    public void dlEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   528
        println("</DL>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   529
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   530
06bc494ca11e Initial load
duke
parents:
diff changeset
   531
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   532
     * Print &lt;DT&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   533
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   534
    public void dt() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   535
        print("<DT>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   536
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   537
06bc494ca11e Initial load
duke
parents:
diff changeset
   538
    /**
2216
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   539
     * 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
   540
     */
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   541
    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
   542
        print("</DT>");
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   543
    }
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   544
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   545
    /**
b124d5c924eb 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents: 1863
diff changeset
   546
     * Print &lt;DD&gt; tag.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   547
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   548
    public void dd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   549
        print("<DD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   550
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   551
06bc494ca11e Initial load
duke
parents:
diff changeset
   552
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   553
     * Print &lt;/DD&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   554
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   555
    public void ddEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   556
        println("</DD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   557
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   558
06bc494ca11e Initial load
duke
parents:
diff changeset
   559
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   560
     * Print &lt;SUP&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   561
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   562
    public void sup() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   563
        println("<SUP>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   564
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   565
06bc494ca11e Initial load
duke
parents:
diff changeset
   566
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   567
     * Print &lt;/SUP&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   568
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   569
    public void supEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   570
        println("</SUP>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   571
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   572
06bc494ca11e Initial load
duke
parents:
diff changeset
   573
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   574
     * Print &lt;FONT SIZE="size"&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   575
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   576
     * @param size String size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   577
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   578
    public void font(String size) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   579
        println("<FONT SIZE=\"" + size + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   580
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   581
06bc494ca11e Initial load
duke
parents:
diff changeset
   582
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   583
     * Print &lt;FONT SIZE="size"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   584
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   585
     * @param size String size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   586
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   587
    public void fontNoNewLine(String size) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   588
        print("<FONT SIZE=\"" + size + "\">");
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;FONT CLASS="stylename"&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
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
   595
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   596
    public void fontStyle(String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   597
        print("<FONT CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   598
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   599
06bc494ca11e Initial load
duke
parents:
diff changeset
   600
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   601
     * Print &lt;FONT SIZE="size" CLASS="stylename"&gt; tag. 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 size String size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   605
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
   606
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   607
    public void fontSizeStyle(String size, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   608
        println("<FONT size=\"" + size + "\" CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   609
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   610
06bc494ca11e Initial load
duke
parents:
diff changeset
   611
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   612
     * Print &lt;/FONT&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   613
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   614
    public void fontEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   615
        print("</FONT>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   616
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   617
06bc494ca11e Initial load
duke
parents:
diff changeset
   618
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   619
     * Get the "&lt;FONT COLOR="color"&gt;" string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   620
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   621
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   622
     * @return String Return String "&lt;FONT COLOR="color"&gt;".
06bc494ca11e Initial load
duke
parents:
diff changeset
   623
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   624
    public String getFontColor(String color) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   625
        return "<FONT COLOR=\"" + color + "\">";
06bc494ca11e Initial load
duke
parents:
diff changeset
   626
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   627
06bc494ca11e Initial load
duke
parents:
diff changeset
   628
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   629
     * Get the "&lt;/FONT&gt;" string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   630
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   631
     * @return String Return String "&lt;/FONT&gt;";
06bc494ca11e Initial load
duke
parents:
diff changeset
   632
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   633
    public String getFontEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   634
        return "</FONT>";
06bc494ca11e Initial load
duke
parents:
diff changeset
   635
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   636
06bc494ca11e Initial load
duke
parents:
diff changeset
   637
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   638
     * Print &lt;CENTER&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   639
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   640
    public void center() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   641
        println("<CENTER>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   642
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   643
06bc494ca11e Initial load
duke
parents:
diff changeset
   644
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   645
     * Print &lt;/CENTER&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   646
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   647
    public void centerEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   648
        println("</CENTER>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   649
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   650
06bc494ca11e Initial load
duke
parents:
diff changeset
   651
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   652
     * Print anchor &lt;A NAME="name"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   653
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   654
     * @param name Name String.
06bc494ca11e Initial load
duke
parents:
diff changeset
   655
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   656
    public void aName(String name) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   657
        print("<A NAME=\"" + name + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   658
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   659
06bc494ca11e Initial load
duke
parents:
diff changeset
   660
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   661
     * Print &lt;/A&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   662
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   663
    public void aEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   664
        print("</A>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   665
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   666
06bc494ca11e Initial load
duke
parents:
diff changeset
   667
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   668
     * Print &lt;I&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   669
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   670
    public void italic() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   671
        print("<I>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   672
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   673
06bc494ca11e Initial load
duke
parents:
diff changeset
   674
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   675
     * Print &lt;/I&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   676
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   677
    public void italicEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   678
        print("</I>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   679
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   680
06bc494ca11e Initial load
duke
parents:
diff changeset
   681
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   682
     * Print contents within anchor &lt;A NAME="name"&gt; tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   683
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   684
     * @param name String name.
06bc494ca11e Initial load
duke
parents:
diff changeset
   685
     * @param content String contents.
06bc494ca11e Initial load
duke
parents:
diff changeset
   686
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   687
    public void anchor(String name, String content) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   688
        aName(name);
06bc494ca11e Initial load
duke
parents:
diff changeset
   689
        print(content);
06bc494ca11e Initial load
duke
parents:
diff changeset
   690
        aEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   691
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   692
06bc494ca11e Initial load
duke
parents:
diff changeset
   693
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   694
     * Print anchor &lt;A NAME="name"&gt; and &lt;/A&gt;tags. Print comment string
06bc494ca11e Initial load
duke
parents:
diff changeset
   695
     * "&lt;!-- --&gt;" within those tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   696
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   697
     * @param name String name.
06bc494ca11e Initial load
duke
parents:
diff changeset
   698
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   699
    public void anchor(String name) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   700
        anchor(name, "<!-- -->");
06bc494ca11e Initial load
duke
parents:
diff changeset
   701
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   702
06bc494ca11e Initial load
duke
parents:
diff changeset
   703
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   704
     * Print newline and then print &lt;P&gt; tag. Add a newline character at the
06bc494ca11e Initial load
duke
parents:
diff changeset
   705
     * end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   706
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   707
    public void p() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   708
        println();
06bc494ca11e Initial load
duke
parents:
diff changeset
   709
        println("<P>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   710
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   711
06bc494ca11e Initial load
duke
parents:
diff changeset
   712
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   713
     * Print newline and then print &lt;/P&gt; tag. Add a newline character at the
06bc494ca11e Initial load
duke
parents:
diff changeset
   714
     * end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   715
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   716
    public void pEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   717
        println();
06bc494ca11e Initial load
duke
parents:
diff changeset
   718
        println("</P>");
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 newline and then print &lt;BR&gt; tag. Add a newline character at the
06bc494ca11e Initial load
duke
parents:
diff changeset
   723
     * end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   724
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   725
    public void br() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   726
        println();
06bc494ca11e Initial load
duke
parents:
diff changeset
   727
        println("<BR>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   728
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   729
06bc494ca11e Initial load
duke
parents:
diff changeset
   730
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   731
     * Print &lt;ADDRESS&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   732
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   733
    public void address() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   734
        println("<ADDRESS>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   735
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   736
06bc494ca11e Initial load
duke
parents:
diff changeset
   737
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   738
     * Print &lt;/ADDRESS&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   739
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   740
    public void addressEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   741
        println("</ADDRESS>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   742
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   743
06bc494ca11e Initial load
duke
parents:
diff changeset
   744
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   745
     * Print &lt;HEAD&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   746
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   747
    public void head() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   748
        println("<HEAD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   749
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   750
06bc494ca11e Initial load
duke
parents:
diff changeset
   751
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   752
     * Print &lt;/HEAD&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   753
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   754
    public void headEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   755
        println("</HEAD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   756
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   757
06bc494ca11e Initial load
duke
parents:
diff changeset
   758
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   759
     * Print &lt;CODE&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   760
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   761
    public void code() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   762
        print("<CODE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   763
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   764
06bc494ca11e Initial load
duke
parents:
diff changeset
   765
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   766
     * Print &lt;/CODE&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   767
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   768
    public void codeEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   769
        print("</CODE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   770
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   771
06bc494ca11e Initial load
duke
parents:
diff changeset
   772
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   773
     * Print &lt;EM&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   774
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   775
    public void em() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   776
        println("<EM>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   777
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   778
06bc494ca11e Initial load
duke
parents:
diff changeset
   779
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   780
     * Print &lt;/EM&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   781
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   782
    public void emEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   783
        println("</EM>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   784
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   785
06bc494ca11e Initial load
duke
parents:
diff changeset
   786
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   787
     * Print HTML &lt;TABLE BORDER="border" WIDTH="width"
06bc494ca11e Initial load
duke
parents:
diff changeset
   788
     * CELLPADDING="cellpadding" CELLSPACING="cellspacing"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   789
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   790
     * @param border       Border size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   791
     * @param width        Width of the table.
06bc494ca11e Initial load
duke
parents:
diff changeset
   792
     * @param cellpadding  Cellpadding for the table cells.
06bc494ca11e Initial load
duke
parents:
diff changeset
   793
     * @param cellspacing  Cellspacing for the table cells.
06bc494ca11e Initial load
duke
parents:
diff changeset
   794
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   795
    public void table(int border, String width, int cellpadding,
06bc494ca11e Initial load
duke
parents:
diff changeset
   796
                      int cellspacing) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   797
        println(DocletConstants.NL +
06bc494ca11e Initial load
duke
parents:
diff changeset
   798
                "<TABLE BORDER=\"" + border +
06bc494ca11e Initial load
duke
parents:
diff changeset
   799
                "\" WIDTH=\"" + width +
06bc494ca11e Initial load
duke
parents:
diff changeset
   800
                "\" CELLPADDING=\"" + cellpadding +
06bc494ca11e Initial load
duke
parents:
diff changeset
   801
                "\" CELLSPACING=\"" + cellspacing +
06bc494ca11e Initial load
duke
parents:
diff changeset
   802
                "\" SUMMARY=\"\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   803
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   804
06bc494ca11e Initial load
duke
parents:
diff changeset
   805
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   806
     * Print HTML &lt;TABLE BORDER="border" CELLPADDING="cellpadding"
06bc494ca11e Initial load
duke
parents:
diff changeset
   807
     * CELLSPACING="cellspacing"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   808
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   809
     * @param border       Border size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   810
     * @param cellpadding  Cellpadding for the table cells.
06bc494ca11e Initial load
duke
parents:
diff changeset
   811
     * @param cellspacing  Cellspacing for the table cells.
06bc494ca11e Initial load
duke
parents:
diff changeset
   812
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   813
    public void table(int border, int cellpadding, int cellspacing) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   814
        println(DocletConstants.NL +
06bc494ca11e Initial load
duke
parents:
diff changeset
   815
                "<TABLE BORDER=\"" + border +
06bc494ca11e Initial load
duke
parents:
diff changeset
   816
                "\" CELLPADDING=\"" + cellpadding +
06bc494ca11e Initial load
duke
parents:
diff changeset
   817
                "\" CELLSPACING=\"" + cellspacing +
06bc494ca11e Initial load
duke
parents:
diff changeset
   818
                "\" SUMMARY=\"\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   819
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   820
06bc494ca11e Initial load
duke
parents:
diff changeset
   821
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   822
     * Print HTML &lt;TABLE BORDER="border" WIDTH="width"&gt;
06bc494ca11e Initial load
duke
parents:
diff changeset
   823
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   824
     * @param border       Border size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   825
     * @param width        Width of the table.
06bc494ca11e Initial load
duke
parents:
diff changeset
   826
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   827
    public void table(int border, String width) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   828
        println(DocletConstants.NL +
06bc494ca11e Initial load
duke
parents:
diff changeset
   829
                "<TABLE BORDER=\"" + border +
06bc494ca11e Initial load
duke
parents:
diff changeset
   830
                "\" WIDTH=\"" + width +
06bc494ca11e Initial load
duke
parents:
diff changeset
   831
                "\" SUMMARY=\"\">");
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 the HTML table tag with border size 0 and width 100%.
06bc494ca11e Initial load
duke
parents:
diff changeset
   836
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   837
    public void table() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   838
        table(0, "100%");
06bc494ca11e Initial load
duke
parents:
diff changeset
   839
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   840
06bc494ca11e Initial load
duke
parents:
diff changeset
   841
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   842
     * Print &lt;/TABLE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   843
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   844
    public void tableEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   845
        println("</TABLE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   846
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   847
06bc494ca11e Initial load
duke
parents:
diff changeset
   848
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   849
     * Print &lt;TR&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   850
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   851
    public void tr() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   852
        println("<TR>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   853
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   854
06bc494ca11e Initial load
duke
parents:
diff changeset
   855
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   856
     * Print &lt;/TR&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   857
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   858
    public void trEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   859
        println("</TR>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   860
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   861
06bc494ca11e Initial load
duke
parents:
diff changeset
   862
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   863
     * Print &lt;TD&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   864
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   865
    public void td() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   866
        print("<TD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   867
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   868
06bc494ca11e Initial load
duke
parents:
diff changeset
   869
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   870
     * Print &lt;TD NOWRAP&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   871
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   872
    public void tdNowrap() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   873
        print("<TD NOWRAP>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   874
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   875
06bc494ca11e Initial load
duke
parents:
diff changeset
   876
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   877
     * Print &lt;TD WIDTH="width"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   878
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   879
     * @param width String width.
06bc494ca11e Initial load
duke
parents:
diff changeset
   880
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   881
    public void tdWidth(String width) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   882
        print("<TD WIDTH=\"" + width + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   883
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   884
06bc494ca11e Initial load
duke
parents:
diff changeset
   885
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   886
     * Print &lt;/TD&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   887
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   888
    public void tdEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   889
        println("</TD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   890
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   891
06bc494ca11e Initial load
duke
parents:
diff changeset
   892
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   893
     * Print &lt;LINK str&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   894
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   895
     * @param str String.
06bc494ca11e Initial load
duke
parents:
diff changeset
   896
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   897
    public void link(String str) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   898
        println("<LINK " + str + ">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   899
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   900
06bc494ca11e Initial load
duke
parents:
diff changeset
   901
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   902
     * Print "&lt;!-- " comment start string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   903
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   904
    public void commentStart() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   905
         print("<!-- ");
06bc494ca11e Initial load
duke
parents:
diff changeset
   906
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   907
06bc494ca11e Initial load
duke
parents:
diff changeset
   908
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   909
     * Print "--&gt;" comment end string. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   910
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   911
    public void commentEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   912
         println("-->");
06bc494ca11e Initial load
duke
parents:
diff changeset
   913
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   914
06bc494ca11e Initial load
duke
parents:
diff changeset
   915
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   916
     * Print &lt;TR BGCOLOR="color" CLASS="stylename"&gt; tag. Adds a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   917
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   918
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   919
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   920
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
   921
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   922
    public void trBgcolorStyle(String color, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   923
        println("<TR BGCOLOR=\"" + color + "\" CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   924
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   925
06bc494ca11e Initial load
duke
parents:
diff changeset
   926
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   927
     * Print &lt;TR BGCOLOR="color"&gt; tag. Adds a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   928
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   929
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   930
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   931
    public void trBgcolor(String color) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   932
        println("<TR BGCOLOR=\"" + color + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   933
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   934
06bc494ca11e Initial load
duke
parents:
diff changeset
   935
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   936
     * Print &lt;TR ALIGN="align" VALIGN="valign"&gt; tag. Adds a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   937
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   938
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   939
     * @param align String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
   940
     * @param valign String valign.
06bc494ca11e Initial load
duke
parents:
diff changeset
   941
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   942
    public void trAlignVAlign(String align, String valign) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   943
        println("<TR ALIGN=\"" + align + "\" VALIGN=\"" + valign + "\">");
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 &lt;TH ALIGN="align"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   948
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   949
     * @param align the align attribute.
06bc494ca11e Initial load
duke
parents:
diff changeset
   950
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   951
    public void thAlign(String align) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   952
        print("<TH ALIGN=\"" + align + "\">");
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 &lt;TH align="align" COLSPAN=i&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   957
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   958
     * @param align the align attribute.
06bc494ca11e Initial load
duke
parents:
diff changeset
   959
     * @param i integer.
06bc494ca11e Initial load
duke
parents:
diff changeset
   960
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   961
    public void thAlignColspan(String align, int i) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   962
        print("<TH ALIGN=\"" + align + "\" COLSPAN=\"" + i + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   963
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   964
06bc494ca11e Initial load
duke
parents:
diff changeset
   965
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   966
     * Print &lt;TH align="align" NOWRAP&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   967
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   968
     * @param align the align attribute.
06bc494ca11e Initial load
duke
parents:
diff changeset
   969
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   970
    public void thAlignNowrap(String align) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   971
        print("<TH ALIGN=\"" + align + "\" NOWRAP>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   972
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   973
06bc494ca11e Initial load
duke
parents:
diff changeset
   974
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   975
     * Print &lt;/TH&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   976
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   977
    public void thEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   978
        println("</TH>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   979
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   980
06bc494ca11e Initial load
duke
parents:
diff changeset
   981
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   982
     * Print &lt;TD COLSPAN=i&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   983
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   984
     * @param i integer.
06bc494ca11e Initial load
duke
parents:
diff changeset
   985
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   986
    public void tdColspan(int i) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   987
        print("<TD COLSPAN=" + i + ">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   988
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   989
06bc494ca11e Initial load
duke
parents:
diff changeset
   990
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   991
     * Print &lt;TD BGCOLOR="color" CLASS="stylename"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   992
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   993
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   994
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
   995
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   996
    public void tdBgcolorStyle(String color, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   997
        print("<TD BGCOLOR=\"" + color + "\" CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   998
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   999
06bc494ca11e Initial load
duke
parents:
diff changeset
  1000
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1001
     * Print &lt;TD COLSPAN=i BGCOLOR="color" CLASS="stylename"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1002
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1003
     * @param i integer.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1004
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1005
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1006
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1007
    public void tdColspanBgcolorStyle(int i, String color, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1008
        print("<TD COLSPAN=" + i + " BGCOLOR=\"" + color + "\" CLASS=\"" +
06bc494ca11e Initial load
duke
parents:
diff changeset
  1009
              stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1010
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1011
06bc494ca11e Initial load
duke
parents:
diff changeset
  1012
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1013
     * Print &lt;TD ALIGN="align"&gt; tag. Adds a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
  1014
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1015
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1016
     * @param align String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1017
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1018
    public void tdAlign(String align) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1019
        print("<TD ALIGN=\"" + align + "\">");
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;TD ALIGN="align" CLASS="stylename"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1024
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1025
     * @param align        String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1026
     * @param stylename    String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1027
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1028
    public void tdVAlignClass(String align, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1029
        print("<TD VALIGN=\"" + align + "\" CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1030
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1031
06bc494ca11e Initial load
duke
parents:
diff changeset
  1032
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1033
     * Print &lt;TD VALIGN="valign"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1034
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1035
     * @param valign String valign.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1036
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1037
    public void tdVAlign(String valign) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1038
        print("<TD VALIGN=\"" + valign + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1039
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1040
06bc494ca11e Initial load
duke
parents:
diff changeset
  1041
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1042
     * Print &lt;TD ALIGN="align" VALIGN="valign"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1043
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1044
     * @param align   String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1045
     * @param valign  String valign.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1046
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1047
    public void tdAlignVAlign(String align, String valign) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1048
        print("<TD ALIGN=\"" + align + "\" VALIGN=\"" + valign + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1049
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1050
06bc494ca11e Initial load
duke
parents:
diff changeset
  1051
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1052
     * Print &lt;TD ALIGN="align" ROWSPAN=rowspan&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1053
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1054
     * @param align    String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1055
     * @param rowspan  integer rowspan.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1056
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1057
    public void tdAlignRowspan(String align, int rowspan) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1058
        print("<TD ALIGN=\"" + align + "\" ROWSPAN=" + rowspan + ">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1059
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1060
06bc494ca11e Initial load
duke
parents:
diff changeset
  1061
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1062
     * Print &lt;TD ALIGN="align" VALIGN="valign" ROWSPAN=rowspan&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1063
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1064
     * @param align    String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1065
     * @param valign  String valign.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1066
     * @param rowspan  integer rowspan.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1067
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1068
    public void tdAlignVAlignRowspan(String align, String valign,
06bc494ca11e Initial load
duke
parents:
diff changeset
  1069
                                     int rowspan) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1070
        print("<TD ALIGN=\"" + align + "\" VALIGN=\"" + valign
06bc494ca11e Initial load
duke
parents:
diff changeset
  1071
                + "\" ROWSPAN=" + rowspan + ">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1072
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1073
06bc494ca11e Initial load
duke
parents:
diff changeset
  1074
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1075
     * Print &lt;BLOCKQUOTE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1076
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1077
    public void blockquote() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1078
        println("<BLOCKQUOTE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1079
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1080
06bc494ca11e Initial load
duke
parents:
diff changeset
  1081
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1082
     * Print &lt;/BLOCKQUOTE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1083
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1084
    public void blockquoteEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1085
        println("</BLOCKQUOTE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1086
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1087
06bc494ca11e Initial load
duke
parents:
diff changeset
  1088
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1089
     * Get the "&lt;CODE&gt;" string.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1090
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1091
     * @return String Return String "&lt;CODE>";
06bc494ca11e Initial load
duke
parents:
diff changeset
  1092
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1093
    public String getCode() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1094
        return "<CODE>";
06bc494ca11e Initial load
duke
parents:
diff changeset
  1095
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1096
06bc494ca11e Initial load
duke
parents:
diff changeset
  1097
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1098
     * Get the "&lt;/CODE&gt;" string.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1099
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1100
     * @return String Return String "&lt;/CODE&gt;";
06bc494ca11e Initial load
duke
parents:
diff changeset
  1101
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1102
    public String getCodeEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1103
        return "</CODE>";
06bc494ca11e Initial load
duke
parents:
diff changeset
  1104
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1105
06bc494ca11e Initial load
duke
parents:
diff changeset
  1106
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1107
     * Print &lt;NOFRAMES&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1108
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1109
    public void noFrames() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1110
        println("<NOFRAMES>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1111
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1112
06bc494ca11e Initial load
duke
parents:
diff changeset
  1113
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1114
     * Print &lt;/NOFRAMES&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1115
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1116
    public void noFramesEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1117
        println("</NOFRAMES>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1118
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1119
}