langtools/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
author jjg
Tue, 20 Jan 2009 15:17:45 -0800
changeset 1869 0e193a8f3520
parent 1863 e5de9abc0eb1
child 2216 b124d5c924eb
child 2212 1d3dc0e0ba0c
permissions -rw-r--r--
6794582: javadoc should read files using a FileManager Reviewed-by: darcy, bpatel
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
06bc494ca11e Initial load
duke
parents:
diff changeset
     2
 * Copyright 1997-2006 Sun Microsystems, Inc.  All Rights Reserved.
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
06bc494ca11e Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
06bc494ca11e Initial load
duke
parents:
diff changeset
    23
 * have any questions.
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
package com.sun.tools.doclets.formats.html.markup;
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
import com.sun.tools.doclets.internal.toolkit.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
import com.sun.tools.doclets.internal.toolkit.util.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
import java.io.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
 * Class for the Html format code generation.
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
 * Initilizes PrintWriter with FileWriter, to enable print
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
 * related methods to generate the code to the named File through FileWriter.
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
 * @since 1.2
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
 * @author Atul M Dambalkar
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
public class HtmlWriter extends PrintWriter {
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
     * Name of the file, to which this writer is writing to.
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
    protected final String htmlFilename;
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
     * The window title of this file
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
    protected String winTitle;
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
     * URL file separator string("/").
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
    public static final String fileseparator =
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
         DirectoryManager.URL_FILE_SEPERATOR;
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
     * The configuration
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
    protected Configuration configuration;
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
     * Constructor.
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
     * @param path The directory path to be created for this file
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
     *             or null if none to be created.
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
     * @param filename File Name to which the PrintWriter will
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
     *                 do the Output.
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
     * @param docencoding Encoding to be used for this file.
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
     * @exception IOException Exception raised by the FileWriter is passed on
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
     * to next level.
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
     * @exception UnSupportedEncodingException Exception raised by the
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
     * OutputStreamWriter is passed on to next level.
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
    public HtmlWriter(Configuration configuration,
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
                      String path, String filename, String docencoding)
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
                      throws IOException, UnsupportedEncodingException {
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
        super(Util.genWriter(configuration, path, filename, docencoding));
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
        this.configuration = configuration;
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
        htmlFilename = filename;
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
     * Print <HTML> tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
    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
    88
        println("<HTML lang=\"" + configuration.getLocale().getLanguage() + "\">");
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 &lt;/HTML&gt; 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 htmlEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
        println("</HTML>");
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 the script code to be embeded before the  &lt;/HEAD&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
    protected void printWinTitleScript(String winTitle){
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
        if(winTitle != null && winTitle.length() > 0) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
            script();
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
            println("function windowTitle()");
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
            println("{");
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
            println("    if (location.href.indexOf('is-external=true') == -1) {");
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
            println("        parent.document.title=\"" + winTitle + "\";");
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
            println("    }");
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
            println("}");
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
            scriptEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
            noScript();
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
            noScriptEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
     * Print the Javascript &lt;SCRIPT&gt; start tag with its type
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
     * attribute.
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
    public void script() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
        println("<SCRIPT type=\"text/javascript\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
     * Print the Javascript &lt;/SCRIPT&gt; end tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
    public void scriptEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
        println("</SCRIPT>");
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;NOSCRIPT&gt; start tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
    public void noScript() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
        println("<NOSCRIPT>");
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; end tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
    public void noScriptEnd() {
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
     * Return the Javascript call to be embedded in the &lt;BODY&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
     * Return nothing if winTitle is empty.
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
     * @return the Javascript call to be embedded in the &lt;BODY&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
    protected String getWindowTitleOnload(){
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
        if(winTitle != null && winTitle.length() > 0) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
            return " onload=\"windowTitle();\"";
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
        } else {
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
            return "";
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
     * Print &lt;BODY BGCOLOR="bgcolor"&gt;, including JavaScript
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
     * "onload" call to load windowtitle script.  This script shows the name
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
     * of the document in the window title bar when frames are on.
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
     * @param bgcolor Background color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
     * @param includeScript  boolean set true if printing windowtitle script
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
    public void body(String bgcolor, boolean includeScript) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
        print("<BODY BGCOLOR=\"" + bgcolor + "\"");
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
        if (includeScript) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
            print(getWindowTitleOnload());
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
        println(">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
     * Print &lt;/BODY&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
    public void bodyEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
        println("</BODY>");
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;TITLE&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 title() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
        println("<TITLE>");
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
     * @param winTitle The title of this document.
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
    public void title(String winTitle) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
        // Set window title string which is later printed
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
        this.winTitle = winTitle;
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
        title();
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
     * Print &lt;/TITLE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
    public void titleEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
        println("</TITLE>");
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;UL&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 ul() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
        println("<UL>");
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 ulEnd() {
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;LI&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
    public void li() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
        print("<LI>");
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 TYPE="type"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
     * @param type Type string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
    public void li(String type) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
        print("<LI TYPE=\"" + type + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
     * Print &lt;H1&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
    public void h1() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   241
        println("<H1>");
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 h1End() {
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 text with &lt;H1&gt; tag. Also adds &lt;/H1&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   253
     * at the end of the text.
06bc494ca11e Initial load
duke
parents:
diff changeset
   254
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
     * @param text Text to be printed with &lt;H1&gt; format.
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
    public void h1(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
        h1();
06bc494ca11e Initial load
duke
parents:
diff changeset
   259
        println(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   260
        h1End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   261
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   262
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
     * Print &lt;H2&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   266
    public void h2() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   267
        println("<H2>");
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 text with &lt;H2&gt; tag. Also adds &lt;/H2&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   272
     *  at the end of the text.
06bc494ca11e Initial load
duke
parents:
diff changeset
   273
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   274
     * @param text Text to be printed with &lt;H2&gt; format.
06bc494ca11e Initial load
duke
parents:
diff changeset
   275
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   276
    public void h2(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   277
        h2();
06bc494ca11e Initial load
duke
parents:
diff changeset
   278
        println(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   279
        h2End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   280
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   281
06bc494ca11e Initial load
duke
parents:
diff changeset
   282
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   283
     * Print &lt;/H2&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   284
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   285
    public void h2End() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   286
        println("</H2>");
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;H3&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 h3() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   293
        println("<H3>");
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 text with &lt;H3&gt; tag. Also adds &lt;/H3&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   298
     *  at the end of the text.
06bc494ca11e Initial load
duke
parents:
diff changeset
   299
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   300
     * @param text Text to be printed with &lt;H3&gt; format.
06bc494ca11e Initial load
duke
parents:
diff changeset
   301
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   302
    public void h3(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   303
        h3();
06bc494ca11e Initial load
duke
parents:
diff changeset
   304
        println(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   305
        h3End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   306
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   307
06bc494ca11e Initial load
duke
parents:
diff changeset
   308
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   309
     * Print &lt;/H3&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   310
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   311
    public void h3End() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   312
        println("</H3>");
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;H4&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 h4() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   319
        println("<H4>");
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 h4End() {
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 text with &lt;H4&gt; tag. Also adds &lt;/H4&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   331
     * at the end of the text.
06bc494ca11e Initial load
duke
parents:
diff changeset
   332
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   333
     * @param text Text to be printed with &lt;H4&gt; format.
06bc494ca11e Initial load
duke
parents:
diff changeset
   334
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   335
    public void h4(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   336
        h4();
06bc494ca11e Initial load
duke
parents:
diff changeset
   337
        println(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   338
        h4End();
06bc494ca11e Initial load
duke
parents:
diff changeset
   339
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   340
06bc494ca11e Initial load
duke
parents:
diff changeset
   341
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   342
     * Print &lt;H5&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   343
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   344
    public void h5() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   345
        println("<H5>");
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 h5End() {
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 HTML &lt;IMG SRC="imggif" WIDTH="width" HEIGHT="height" ALT="imgname&gt;
06bc494ca11e Initial load
duke
parents:
diff changeset
   357
     * tag. It prepends the "images" directory name to the "imggif". This
06bc494ca11e Initial load
duke
parents:
diff changeset
   358
     * method is used for oneone format generation. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   359
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   360
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   361
     * @param imggif   Image GIF file.
06bc494ca11e Initial load
duke
parents:
diff changeset
   362
     * @param imgname  Image name.
06bc494ca11e Initial load
duke
parents:
diff changeset
   363
     * @param width    Width of the image.
06bc494ca11e Initial load
duke
parents:
diff changeset
   364
     * @param height   Height of the image.
06bc494ca11e Initial load
duke
parents:
diff changeset
   365
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   366
    public void img(String imggif, String imgname, int width, int height) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   367
        println("<IMG SRC=\"images/" + imggif + ".gif\""
06bc494ca11e Initial load
duke
parents:
diff changeset
   368
              + " WIDTH=\"" + width + "\" HEIGHT=\"" + height
06bc494ca11e Initial load
duke
parents:
diff changeset
   369
              + "\" ALT=\"" + imgname + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   370
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   371
06bc494ca11e Initial load
duke
parents:
diff changeset
   372
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   373
     * Print &lt;MENU&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   374
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   375
    public void menu() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   376
        println("<MENU>");
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 menuEnd() {
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;PRE&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 pre() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   390
        println("<PRE>");
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 without adding new line character at th eend.
06bc494ca11e Initial load
duke
parents:
diff changeset
   395
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   396
    public void preNoNewLine() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   397
        print("<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. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   402
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   403
    public void preEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   404
        println("</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;HR&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 hr() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   411
        println("<HR>");
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 SIZE="size" WIDTH="widthpercent%"&gt; tag. Add a newline
06bc494ca11e Initial load
duke
parents:
diff changeset
   416
     * character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   417
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   418
     * @param size           Size of the ruler.
06bc494ca11e Initial load
duke
parents:
diff changeset
   419
     * @param widthPercent   Percentage Width of the ruler
06bc494ca11e Initial load
duke
parents:
diff changeset
   420
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   421
    public void hr(int size, int widthPercent) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   422
        println("<HR SIZE=\"" + size + "\" WIDTH=\"" + widthPercent + "%\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   423
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   424
06bc494ca11e Initial load
duke
parents:
diff changeset
   425
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   426
     * Print &lt;HR SIZE="size" NOSHADE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   427
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   428
     * @param size           Size of the ruler.
06bc494ca11e Initial load
duke
parents:
diff changeset
   429
     * @param noshade        noshade string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   430
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   431
    public void hr(int size, String noshade) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   432
        println("<HR SIZE=\"" + size + "\" NOSHADE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   433
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   434
06bc494ca11e Initial load
duke
parents:
diff changeset
   435
    /**
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   436
     * Get the "&lt;STRONG&gt;" string.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   437
     *
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   438
     * @return String Return String "&lt;STRONG&gt;";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   439
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   440
    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
   441
        return "<STRONG>";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   442
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   443
06bc494ca11e Initial load
duke
parents:
diff changeset
   444
    /**
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   445
     * Get the "&lt;/STRONG&gt;" string.
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
     * @return String Return String "&lt;/STRONG&gt;";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   448
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   449
    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
   450
        return "</STRONG>";
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   451
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   452
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
     * Print &lt;STRONG&gt; tag.
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 void strong() {
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   457
        print("<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 strongEnd() {
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 text passed, in strong format using &lt;STRONG&gt; and &lt;/STRONG&gt; tags.
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
     * @param text String to be printed in between &lt;STRONG&gt; and &lt;/STRONG&gt; tags.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   471
     */
1787
1aa079321cd2 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents: 10
diff changeset
   472
    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
   473
        strong();
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   474
        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
   475
        strongEnd();
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   476
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   477
06bc494ca11e Initial load
duke
parents:
diff changeset
   478
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   479
     * Print text passed, in Italics using &lt;I&gt; and &lt;/I&gt; tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   480
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   481
     * @param text String to be printed in between &lt;I&gt; and &lt;/I&gt; tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   482
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   483
    public void italics(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   484
        print("<I>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   485
        print(text);
06bc494ca11e Initial load
duke
parents:
diff changeset
   486
        println("</I>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   487
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   488
06bc494ca11e Initial load
duke
parents:
diff changeset
   489
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   490
     * Return, text passed, with Italics &lt;I&gt; and &lt;/I&gt; tags, surrounding it.
06bc494ca11e Initial load
duke
parents:
diff changeset
   491
     * 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
   492
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   493
     * @param text String to be printed in between &lt;I&gt; and &lt;/I&gt; tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   494
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   495
    public String italicsText(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   496
        return "<I>" + text + "</I>";
06bc494ca11e Initial load
duke
parents:
diff changeset
   497
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   498
06bc494ca11e Initial load
duke
parents:
diff changeset
   499
    public String codeText(String text) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   500
        return "<CODE>" + text + "</CODE>";
06bc494ca11e Initial load
duke
parents:
diff changeset
   501
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   502
06bc494ca11e Initial load
duke
parents:
diff changeset
   503
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   504
     * Print "&#38;nbsp;", non-breaking space.
06bc494ca11e Initial load
duke
parents:
diff changeset
   505
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   506
    public void space() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   507
        print("&nbsp;");
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 &lt;DL&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   512
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   513
    public void dl() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   514
        println("<DL>");
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 dlEnd() {
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;DT&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   526
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   527
    public void dt() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   528
        print("<DT>");
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 dd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   535
        print("<DD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   536
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   537
06bc494ca11e Initial load
duke
parents:
diff changeset
   538
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   539
     * Print &lt;/DD&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   540
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   541
    public void ddEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   542
        println("</DD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   543
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   544
06bc494ca11e Initial load
duke
parents:
diff changeset
   545
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   546
     * Print &lt;SUP&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   547
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   548
    public void sup() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   549
        println("<SUP>");
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;/SUP&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 supEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   556
        println("</SUP>");
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;FONT SIZE="size"&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
     * @param size String size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   563
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   564
    public void font(String size) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   565
        println("<FONT SIZE=\"" + size + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   566
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   567
06bc494ca11e Initial load
duke
parents:
diff changeset
   568
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   569
     * Print &lt;FONT SIZE="size"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   570
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   571
     * @param size String size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   572
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   573
    public void fontNoNewLine(String size) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   574
        print("<FONT SIZE=\"" + size + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   575
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   576
06bc494ca11e Initial load
duke
parents:
diff changeset
   577
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   578
     * Print &lt;FONT CLASS="stylename"&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   579
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   580
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
   581
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   582
    public void fontStyle(String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   583
        print("<FONT CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   584
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   585
06bc494ca11e Initial load
duke
parents:
diff changeset
   586
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   587
     * Print &lt;FONT SIZE="size" CLASS="stylename"&gt; tag. Add a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   588
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   589
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   590
     * @param size String size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   591
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
   592
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   593
    public void fontSizeStyle(String size, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   594
        println("<FONT size=\"" + size + "\" CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   595
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   596
06bc494ca11e Initial load
duke
parents:
diff changeset
   597
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   598
     * Print &lt;/FONT&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   599
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   600
    public void fontEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   601
        print("</FONT>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   602
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   603
06bc494ca11e Initial load
duke
parents:
diff changeset
   604
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   605
     * Get the "&lt;FONT COLOR="color"&gt;" string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   606
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   607
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   608
     * @return String Return String "&lt;FONT COLOR="color"&gt;".
06bc494ca11e Initial load
duke
parents:
diff changeset
   609
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   610
    public String getFontColor(String color) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   611
        return "<FONT COLOR=\"" + color + "\">";
06bc494ca11e Initial load
duke
parents:
diff changeset
   612
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   613
06bc494ca11e Initial load
duke
parents:
diff changeset
   614
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   615
     * Get the "&lt;/FONT&gt;" string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   616
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   617
     * @return String Return String "&lt;/FONT&gt;";
06bc494ca11e Initial load
duke
parents:
diff changeset
   618
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   619
    public String getFontEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   620
        return "</FONT>";
06bc494ca11e Initial load
duke
parents:
diff changeset
   621
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   622
06bc494ca11e Initial load
duke
parents:
diff changeset
   623
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   624
     * Print &lt;CENTER&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   625
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   626
    public void center() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   627
        println("<CENTER>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   628
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   629
06bc494ca11e Initial load
duke
parents:
diff changeset
   630
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   631
     * Print &lt;/CENTER&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   632
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   633
    public void centerEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   634
        println("</CENTER>");
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 anchor &lt;A NAME="name"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   639
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   640
     * @param name Name String.
06bc494ca11e Initial load
duke
parents:
diff changeset
   641
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   642
    public void aName(String name) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   643
        print("<A NAME=\"" + name + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   644
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   645
06bc494ca11e Initial load
duke
parents:
diff changeset
   646
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   647
     * Print &lt;/A&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   648
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   649
    public void aEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   650
        print("</A>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   651
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   652
06bc494ca11e Initial load
duke
parents:
diff changeset
   653
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   654
     * Print &lt;I&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   655
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   656
    public void italic() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   657
        print("<I>");
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;/I&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   662
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   663
    public void italicEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   664
        print("</I>");
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 contents within anchor &lt;A NAME="name"&gt; tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   669
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   670
     * @param name String name.
06bc494ca11e Initial load
duke
parents:
diff changeset
   671
     * @param content String contents.
06bc494ca11e Initial load
duke
parents:
diff changeset
   672
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   673
    public void anchor(String name, String content) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   674
        aName(name);
06bc494ca11e Initial load
duke
parents:
diff changeset
   675
        print(content);
06bc494ca11e Initial load
duke
parents:
diff changeset
   676
        aEnd();
06bc494ca11e Initial load
duke
parents:
diff changeset
   677
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   678
06bc494ca11e Initial load
duke
parents:
diff changeset
   679
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   680
     * Print anchor &lt;A NAME="name"&gt; and &lt;/A&gt;tags. Print comment string
06bc494ca11e Initial load
duke
parents:
diff changeset
   681
     * "&lt;!-- --&gt;" within those tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   682
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   683
     * @param name String name.
06bc494ca11e Initial load
duke
parents:
diff changeset
   684
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   685
    public void anchor(String name) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   686
        anchor(name, "<!-- -->");
06bc494ca11e Initial load
duke
parents:
diff changeset
   687
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   688
06bc494ca11e Initial load
duke
parents:
diff changeset
   689
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   690
     * Print newline and then print &lt;P&gt; tag. Add a newline character at the
06bc494ca11e Initial load
duke
parents:
diff changeset
   691
     * end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   692
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   693
    public void p() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   694
        println();
06bc494ca11e Initial load
duke
parents:
diff changeset
   695
        println("<P>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   696
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   697
06bc494ca11e Initial load
duke
parents:
diff changeset
   698
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   699
     * Print newline and then print &lt;/P&gt; tag. Add a newline character at the
06bc494ca11e Initial load
duke
parents:
diff changeset
   700
     * end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   701
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   702
    public void pEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   703
        println();
06bc494ca11e Initial load
duke
parents:
diff changeset
   704
        println("</P>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   705
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   706
06bc494ca11e Initial load
duke
parents:
diff changeset
   707
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   708
     * Print newline and then print &lt;BR&gt; tag. Add a newline character at the
06bc494ca11e Initial load
duke
parents:
diff changeset
   709
     * end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   710
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   711
    public void br() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   712
        println();
06bc494ca11e Initial load
duke
parents:
diff changeset
   713
        println("<BR>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   714
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   715
06bc494ca11e Initial load
duke
parents:
diff changeset
   716
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   717
     * Print &lt;ADDRESS&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   718
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   719
    public void address() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   720
        println("<ADDRESS>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   721
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   722
06bc494ca11e Initial load
duke
parents:
diff changeset
   723
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   724
     * Print &lt;/ADDRESS&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   725
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   726
    public void addressEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   727
        println("</ADDRESS>");
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;HEAD&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 head() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   734
        println("<HEAD>");
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;/HEAD&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 headEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   741
        println("</HEAD>");
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;CODE&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   746
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   747
    public void code() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   748
        print("<CODE>");
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;/CODE&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   753
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   754
    public void codeEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   755
        print("</CODE>");
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;EM&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   760
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   761
    public void em() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   762
        println("<EM>");
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;/EM&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   767
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   768
    public void emEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   769
        println("</EM>");
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 HTML &lt;TABLE BORDER="border" WIDTH="width"
06bc494ca11e Initial load
duke
parents:
diff changeset
   774
     * CELLPADDING="cellpadding" CELLSPACING="cellspacing"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   775
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   776
     * @param border       Border size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   777
     * @param width        Width of the table.
06bc494ca11e Initial load
duke
parents:
diff changeset
   778
     * @param cellpadding  Cellpadding for the table cells.
06bc494ca11e Initial load
duke
parents:
diff changeset
   779
     * @param cellspacing  Cellspacing for the table cells.
06bc494ca11e Initial load
duke
parents:
diff changeset
   780
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   781
    public void table(int border, String width, int cellpadding,
06bc494ca11e Initial load
duke
parents:
diff changeset
   782
                      int cellspacing) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   783
        println(DocletConstants.NL +
06bc494ca11e Initial load
duke
parents:
diff changeset
   784
                "<TABLE BORDER=\"" + border +
06bc494ca11e Initial load
duke
parents:
diff changeset
   785
                "\" WIDTH=\"" + width +
06bc494ca11e Initial load
duke
parents:
diff changeset
   786
                "\" CELLPADDING=\"" + cellpadding +
06bc494ca11e Initial load
duke
parents:
diff changeset
   787
                "\" CELLSPACING=\"" + cellspacing +
06bc494ca11e Initial load
duke
parents:
diff changeset
   788
                "\" SUMMARY=\"\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   789
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   790
06bc494ca11e Initial load
duke
parents:
diff changeset
   791
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   792
     * Print HTML &lt;TABLE BORDER="border" CELLPADDING="cellpadding"
06bc494ca11e Initial load
duke
parents:
diff changeset
   793
     * CELLSPACING="cellspacing"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   794
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   795
     * @param border       Border size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   796
     * @param cellpadding  Cellpadding for the table cells.
06bc494ca11e Initial load
duke
parents:
diff changeset
   797
     * @param cellspacing  Cellspacing for the table cells.
06bc494ca11e Initial load
duke
parents:
diff changeset
   798
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   799
    public void table(int border, int cellpadding, int cellspacing) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   800
        println(DocletConstants.NL +
06bc494ca11e Initial load
duke
parents:
diff changeset
   801
                "<TABLE BORDER=\"" + border +
06bc494ca11e Initial load
duke
parents:
diff changeset
   802
                "\" CELLPADDING=\"" + cellpadding +
06bc494ca11e Initial load
duke
parents:
diff changeset
   803
                "\" CELLSPACING=\"" + cellspacing +
06bc494ca11e Initial load
duke
parents:
diff changeset
   804
                "\" SUMMARY=\"\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   805
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   806
06bc494ca11e Initial load
duke
parents:
diff changeset
   807
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   808
     * Print HTML &lt;TABLE BORDER="border" WIDTH="width"&gt;
06bc494ca11e Initial load
duke
parents:
diff changeset
   809
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   810
     * @param border       Border size.
06bc494ca11e Initial load
duke
parents:
diff changeset
   811
     * @param width        Width of the table.
06bc494ca11e Initial load
duke
parents:
diff changeset
   812
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   813
    public void table(int border, String width) {
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
                "\" WIDTH=\"" + width +
06bc494ca11e Initial load
duke
parents:
diff changeset
   817
                "\" SUMMARY=\"\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   818
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   819
06bc494ca11e Initial load
duke
parents:
diff changeset
   820
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   821
     * Print the HTML table tag with border size 0 and width 100%.
06bc494ca11e Initial load
duke
parents:
diff changeset
   822
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   823
    public void table() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   824
        table(0, "100%");
06bc494ca11e Initial load
duke
parents:
diff changeset
   825
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   826
06bc494ca11e Initial load
duke
parents:
diff changeset
   827
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   828
     * Print &lt;/TABLE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   829
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   830
    public void tableEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   831
        println("</TABLE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   832
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   833
06bc494ca11e Initial load
duke
parents:
diff changeset
   834
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   835
     * Print &lt;TR&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   836
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   837
    public void tr() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   838
        println("<TR>");
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;/TR&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 trEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   845
        println("</TR>");
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;TD&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   850
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   851
    public void td() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   852
        print("<TD>");
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;TD NOWRAP&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   857
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   858
    public void tdNowrap() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   859
        print("<TD NOWRAP>");
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 WIDTH="width"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   864
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   865
     * @param width String width.
06bc494ca11e Initial load
duke
parents:
diff changeset
   866
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   867
    public void tdWidth(String width) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   868
        print("<TD WIDTH=\"" + width + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   869
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   870
06bc494ca11e Initial load
duke
parents:
diff changeset
   871
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   872
     * Print &lt;/TD&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   873
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   874
    public void tdEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   875
        println("</TD>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   876
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   877
06bc494ca11e Initial load
duke
parents:
diff changeset
   878
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   879
     * Print &lt;LINK str&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   880
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   881
     * @param str String.
06bc494ca11e Initial load
duke
parents:
diff changeset
   882
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   883
    public void link(String str) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   884
        println("<LINK " + str + ">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   885
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   886
06bc494ca11e Initial load
duke
parents:
diff changeset
   887
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   888
     * Print "&lt;!-- " comment start string.
06bc494ca11e Initial load
duke
parents:
diff changeset
   889
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   890
    public void commentStart() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   891
         print("<!-- ");
06bc494ca11e Initial load
duke
parents:
diff changeset
   892
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   893
06bc494ca11e Initial load
duke
parents:
diff changeset
   894
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   895
     * Print "--&gt;" comment end string. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   896
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   897
    public void commentEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   898
         println("-->");
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;TR BGCOLOR="color" CLASS="stylename"&gt; tag. Adds a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   903
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   904
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   905
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   906
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
   907
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   908
    public void trBgcolorStyle(String color, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   909
        println("<TR BGCOLOR=\"" + color + "\" CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   910
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   911
06bc494ca11e Initial load
duke
parents:
diff changeset
   912
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   913
     * Print &lt;TR BGCOLOR="color"&gt; tag. Adds a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   914
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   915
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   916
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   917
    public void trBgcolor(String color) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   918
        println("<TR BGCOLOR=\"" + color + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   919
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   920
06bc494ca11e Initial load
duke
parents:
diff changeset
   921
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   922
     * Print &lt;TR ALIGN="align" VALIGN="valign"&gt; tag. Adds a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
   923
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   924
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   925
     * @param align String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
   926
     * @param valign String valign.
06bc494ca11e Initial load
duke
parents:
diff changeset
   927
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   928
    public void trAlignVAlign(String align, String valign) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   929
        println("<TR ALIGN=\"" + align + "\" VALIGN=\"" + valign + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   930
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   931
06bc494ca11e Initial load
duke
parents:
diff changeset
   932
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   933
     * Print &lt;TH ALIGN="align"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   934
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   935
     * @param align the align attribute.
06bc494ca11e Initial load
duke
parents:
diff changeset
   936
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   937
    public void thAlign(String align) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   938
        print("<TH ALIGN=\"" + align + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   939
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   940
06bc494ca11e Initial load
duke
parents:
diff changeset
   941
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   942
     * Print &lt;TH align="align" COLSPAN=i&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   943
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   944
     * @param align the align attribute.
06bc494ca11e Initial load
duke
parents:
diff changeset
   945
     * @param i integer.
06bc494ca11e Initial load
duke
parents:
diff changeset
   946
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   947
    public void thAlignColspan(String align, int i) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   948
        print("<TH ALIGN=\"" + align + "\" COLSPAN=\"" + i + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   949
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   950
06bc494ca11e Initial load
duke
parents:
diff changeset
   951
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   952
     * Print &lt;TH align="align" NOWRAP&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   953
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   954
     * @param align the align attribute.
06bc494ca11e Initial load
duke
parents:
diff changeset
   955
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   956
    public void thAlignNowrap(String align) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   957
        print("<TH ALIGN=\"" + align + "\" NOWRAP>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   958
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   959
06bc494ca11e Initial load
duke
parents:
diff changeset
   960
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   961
     * Print &lt;/TH&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
   962
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   963
    public void thEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   964
        println("</TH>");
06bc494ca11e Initial load
duke
parents:
diff changeset
   965
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   966
06bc494ca11e Initial load
duke
parents:
diff changeset
   967
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   968
     * Print &lt;TD COLSPAN=i&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   969
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   970
     * @param i integer.
06bc494ca11e Initial load
duke
parents:
diff changeset
   971
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   972
    public void tdColspan(int i) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   973
        print("<TD COLSPAN=" + i + ">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   974
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   975
06bc494ca11e Initial load
duke
parents:
diff changeset
   976
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   977
     * Print &lt;TD BGCOLOR="color" CLASS="stylename"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   978
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   979
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   980
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
   981
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   982
    public void tdBgcolorStyle(String color, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   983
        print("<TD BGCOLOR=\"" + color + "\" CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   984
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   985
06bc494ca11e Initial load
duke
parents:
diff changeset
   986
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   987
     * Print &lt;TD COLSPAN=i BGCOLOR="color" CLASS="stylename"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
   988
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   989
     * @param i integer.
06bc494ca11e Initial load
duke
parents:
diff changeset
   990
     * @param color String color.
06bc494ca11e Initial load
duke
parents:
diff changeset
   991
     * @param stylename String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
   992
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   993
    public void tdColspanBgcolorStyle(int i, String color, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   994
        print("<TD COLSPAN=" + i + " BGCOLOR=\"" + color + "\" CLASS=\"" +
06bc494ca11e Initial load
duke
parents:
diff changeset
   995
              stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
   996
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   997
06bc494ca11e Initial load
duke
parents:
diff changeset
   998
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   999
     * Print &lt;TD ALIGN="align"&gt; tag. Adds a newline character
06bc494ca11e Initial load
duke
parents:
diff changeset
  1000
     * at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1001
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1002
     * @param align String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1003
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1004
    public void tdAlign(String align) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1005
        print("<TD ALIGN=\"" + align + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1006
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1007
06bc494ca11e Initial load
duke
parents:
diff changeset
  1008
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1009
     * Print &lt;TD ALIGN="align" CLASS="stylename"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1010
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1011
     * @param align        String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1012
     * @param stylename    String stylename.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1013
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1014
    public void tdVAlignClass(String align, String stylename) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1015
        print("<TD VALIGN=\"" + align + "\" CLASS=\"" + stylename + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1016
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1017
06bc494ca11e Initial load
duke
parents:
diff changeset
  1018
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1019
     * Print &lt;TD VALIGN="valign"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1020
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1021
     * @param valign String valign.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1022
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1023
    public void tdVAlign(String valign) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1024
        print("<TD VALIGN=\"" + valign + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1025
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1026
06bc494ca11e Initial load
duke
parents:
diff changeset
  1027
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1028
     * Print &lt;TD ALIGN="align" VALIGN="valign"&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1029
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1030
     * @param align   String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1031
     * @param valign  String valign.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1032
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1033
    public void tdAlignVAlign(String align, String valign) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1034
        print("<TD ALIGN=\"" + align + "\" VALIGN=\"" + valign + "\">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1035
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1036
06bc494ca11e Initial load
duke
parents:
diff changeset
  1037
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1038
     * Print &lt;TD ALIGN="align" ROWSPAN=rowspan&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1039
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1040
     * @param align    String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1041
     * @param rowspan  integer rowspan.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1042
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1043
    public void tdAlignRowspan(String align, int rowspan) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1044
        print("<TD ALIGN=\"" + align + "\" ROWSPAN=" + rowspan + ">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1045
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1046
06bc494ca11e Initial load
duke
parents:
diff changeset
  1047
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1048
     * Print &lt;TD ALIGN="align" VALIGN="valign" ROWSPAN=rowspan&gt; tag.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1049
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1050
     * @param align    String align.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1051
     * @param valign  String valign.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1052
     * @param rowspan  integer rowspan.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1053
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1054
    public void tdAlignVAlignRowspan(String align, String valign,
06bc494ca11e Initial load
duke
parents:
diff changeset
  1055
                                     int rowspan) {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1056
        print("<TD ALIGN=\"" + align + "\" VALIGN=\"" + valign
06bc494ca11e Initial load
duke
parents:
diff changeset
  1057
                + "\" ROWSPAN=" + rowspan + ">");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1058
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1059
06bc494ca11e Initial load
duke
parents:
diff changeset
  1060
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1061
     * Print &lt;BLOCKQUOTE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1062
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1063
    public void blockquote() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1064
        println("<BLOCKQUOTE>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1065
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1066
06bc494ca11e Initial load
duke
parents:
diff changeset
  1067
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1068
     * Print &lt;/BLOCKQUOTE&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1069
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1070
    public void blockquoteEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1071
        println("</BLOCKQUOTE>");
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
     * Get the "&lt;CODE&gt;" string.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1076
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1077
     * @return String Return String "&lt;CODE>";
06bc494ca11e Initial load
duke
parents:
diff changeset
  1078
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1079
    public String getCode() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1080
        return "<CODE>";
06bc494ca11e Initial load
duke
parents:
diff changeset
  1081
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1082
06bc494ca11e Initial load
duke
parents:
diff changeset
  1083
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1084
     * Get the "&lt;/CODE&gt;" string.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1085
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
  1086
     * @return String Return String "&lt;/CODE&gt;";
06bc494ca11e Initial load
duke
parents:
diff changeset
  1087
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1088
    public String getCodeEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1089
        return "</CODE>";
06bc494ca11e Initial load
duke
parents:
diff changeset
  1090
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1091
06bc494ca11e Initial load
duke
parents:
diff changeset
  1092
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1093
     * Print &lt;NOFRAMES&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1094
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1095
    public void noFrames() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1096
        println("<NOFRAMES>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1097
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1098
06bc494ca11e Initial load
duke
parents:
diff changeset
  1099
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
  1100
     * Print &lt;/NOFRAMES&gt; tag. Add a newline character at the end.
06bc494ca11e Initial load
duke
parents:
diff changeset
  1101
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
  1102
    public void noFramesEnd() {
06bc494ca11e Initial load
duke
parents:
diff changeset
  1103
        println("</NOFRAMES>");
06bc494ca11e Initial load
duke
parents:
diff changeset
  1104
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
  1105
}