duke@1: /* duke@1: * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. duke@1: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@1: * duke@1: * This code is free software; you can redistribute it and/or modify it duke@1: * under the terms of the GNU General Public License version 2 only, as duke@1: * published by the Free Software Foundation. Sun designates this duke@1: * particular file as subject to the "Classpath" exception as provided duke@1: * by Sun in the LICENSE file that accompanied this code. duke@1: * duke@1: * This code is distributed in the hope that it will be useful, but WITHOUT duke@1: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@1: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@1: * version 2 for more details (a copy is included in the LICENSE file that duke@1: * accompanied this code). duke@1: * duke@1: * You should have received a copy of the GNU General Public License version duke@1: * 2 along with this work; if not, write to the Free Software Foundation, duke@1: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@1: * duke@1: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, duke@1: * CA 95054 USA or visit www.sun.com if you need additional information or duke@1: * have any questions. duke@1: */ duke@1: duke@1: package com.sun.tools.doclets.formats.html.markup; duke@1: duke@1: import com.sun.tools.doclets.internal.toolkit.*; duke@1: import com.sun.tools.doclets.internal.toolkit.util.*; duke@1: import java.io.*; duke@1: duke@1: /** duke@1: * Class for the Html format code generation. duke@1: * Initilizes PrintWriter with FileWriter, to enable print duke@1: * related methods to generate the code to the named File through FileWriter. duke@1: * duke@1: * @since 1.2 duke@1: * @author Atul M Dambalkar duke@1: */ duke@1: public class HtmlWriter extends PrintWriter { duke@1: duke@1: /** duke@1: * Name of the file, to which this writer is writing to. duke@1: */ duke@1: protected final String htmlFilename; duke@1: duke@1: /** duke@1: * The window title of this file duke@1: */ duke@1: protected String winTitle; duke@1: duke@1: /** duke@1: * URL file separator string("/"). duke@1: */ duke@1: public static final String fileseparator = duke@1: DirectoryManager.URL_FILE_SEPERATOR; duke@1: duke@1: /** duke@1: * The configuration duke@1: */ duke@1: protected Configuration configuration; duke@1: duke@1: /** duke@1: * Constructor. duke@1: * duke@1: * @param path The directory path to be created for this file duke@1: * or null if none to be created. duke@1: * @param filename File Name to which the PrintWriter will duke@1: * do the Output. duke@1: * @param docencoding Encoding to be used for this file. duke@1: * @exception IOException Exception raised by the FileWriter is passed on duke@1: * to next level. duke@1: * @exception UnSupportedEncodingException Exception raised by the duke@1: * OutputStreamWriter is passed on to next level. duke@1: */ duke@1: public HtmlWriter(Configuration configuration, duke@1: String path, String filename, String docencoding) duke@1: throws IOException, UnsupportedEncodingException { duke@1: super(Util.genWriter(configuration, path, filename, docencoding)); duke@1: this.configuration = configuration; duke@1: htmlFilename = filename; duke@1: } duke@1: duke@1: /** duke@1: * Print <HTML> tag. Add a newline character at the end. duke@1: */ duke@1: public void html() { bpatel@191: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </HTML> tag. Add a newline character at the end. duke@1: */ duke@1: public void htmlEnd() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print the script code to be embeded before the </HEAD> tag. duke@1: */ duke@1: protected void printWinTitleScript(String winTitle){ duke@1: if(winTitle != null && winTitle.length() > 0) { duke@1: script(); duke@1: println("function windowTitle()"); duke@1: println("{"); duke@1: println(" if (location.href.indexOf('is-external=true') == -1) {"); duke@1: println(" parent.document.title=\"" + winTitle + "\";"); duke@1: println(" }"); duke@1: println("}"); duke@1: scriptEnd(); duke@1: noScript(); duke@1: noScriptEnd(); duke@1: } duke@1: } duke@1: duke@1: /** duke@1: * Print the Javascript <SCRIPT> start tag with its type duke@1: * attribute. duke@1: */ duke@1: public void script() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print the Javascript <NOSCRIPT> start tag. duke@1: */ duke@1: public void noScript() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Return the Javascript call to be embedded in the <BODY> tag. duke@1: * Return nothing if winTitle is empty. duke@1: * @return the Javascript call to be embedded in the <BODY> tag. duke@1: */ duke@1: protected String getWindowTitleOnload(){ duke@1: if(winTitle != null && winTitle.length() > 0) { duke@1: return " onload=\"windowTitle();\""; duke@1: } else { duke@1: return ""; duke@1: } duke@1: } duke@1: duke@1: /** duke@1: * Print <BODY BGCOLOR="bgcolor">, including JavaScript duke@1: * "onload" call to load windowtitle script. This script shows the name duke@1: * of the document in the window title bar when frames are on. duke@1: * duke@1: * @param bgcolor Background color. duke@1: * @param includeScript boolean set true if printing windowtitle script duke@1: */ duke@1: public void body(String bgcolor, boolean includeScript) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </BODY> tag. Add a newline character at the end. duke@1: */ duke@1: public void bodyEnd() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TITLE> tag. Add a newline character at the end. duke@1: */ duke@1: public void title() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TITLE> tag. Add a newline character at the end. duke@1: * duke@1: * @param winTitle The title of this document. duke@1: */ duke@1: public void title(String winTitle) { duke@1: // Set window title string which is later printed duke@1: this.winTitle = winTitle; duke@1: title(); duke@1: } duke@1: duke@1: duke@1: /** duke@1: * Print </TITLE> tag. Add a newline character at the end. duke@1: */ duke@1: public void titleEnd() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <UL> tag. Add a newline character at the end. duke@1: */ duke@1: public void ul() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <LI> tag. duke@1: */ duke@1: public void li() { duke@1: print("
  • "); duke@1: } duke@1: duke@1: /** duke@1: * Print <LI TYPE="type"> tag. duke@1: * duke@1: * @param type Type string. duke@1: */ duke@1: public void li(String type) { duke@1: print("
  • "); duke@1: } duke@1: duke@1: /** duke@1: * Print <H1> tag. Add a newline character at the end. duke@1: */ duke@1: public void h1() { duke@1: println("

    "); duke@1: } duke@1: duke@1: /** duke@1: * Print </H1> tag. Add a newline character at the end. duke@1: */ duke@1: public void h1End() { duke@1: println("

    "); duke@1: } duke@1: duke@1: /** duke@1: * Print text with <H1> tag. Also adds </H1> tag. Add a newline character duke@1: * at the end of the text. duke@1: * duke@1: * @param text Text to be printed with <H1> format. duke@1: */ duke@1: public void h1(String text) { duke@1: h1(); duke@1: println(text); duke@1: h1End(); duke@1: } duke@1: duke@1: /** duke@1: * Print <H2> tag. Add a newline character at the end. duke@1: */ duke@1: public void h2() { duke@1: println("

    "); duke@1: } duke@1: duke@1: /** duke@1: * Print text with <H2> tag. Also adds </H2> tag. Add a newline character duke@1: * at the end of the text. duke@1: * duke@1: * @param text Text to be printed with <H2> format. duke@1: */ duke@1: public void h2(String text) { duke@1: h2(); duke@1: println(text); duke@1: h2End(); duke@1: } duke@1: duke@1: /** duke@1: * Print </H2> tag. Add a newline character at the end. duke@1: */ duke@1: public void h2End() { duke@1: println("

    "); duke@1: } duke@1: duke@1: /** duke@1: * Print <H3> tag. Add a newline character at the end. duke@1: */ duke@1: public void h3() { duke@1: println("

    "); duke@1: } duke@1: duke@1: /** duke@1: * Print text with <H3> tag. Also adds </H3> tag. Add a newline character duke@1: * at the end of the text. duke@1: * duke@1: * @param text Text to be printed with <H3> format. duke@1: */ duke@1: public void h3(String text) { duke@1: h3(); duke@1: println(text); duke@1: h3End(); duke@1: } duke@1: duke@1: /** duke@1: * Print </H3> tag. Add a newline character at the end. duke@1: */ duke@1: public void h3End() { duke@1: println("

    "); duke@1: } duke@1: duke@1: /** duke@1: * Print <H4> tag. Add a newline character at the end. duke@1: */ duke@1: public void h4() { duke@1: println("

    "); duke@1: } duke@1: duke@1: /** duke@1: * Print </H4> tag. Add a newline character at the end. duke@1: */ duke@1: public void h4End() { duke@1: println("

    "); duke@1: } duke@1: duke@1: /** duke@1: * Print text with <H4> tag. Also adds </H4> tag. Add a newline character duke@1: * at the end of the text. duke@1: * duke@1: * @param text Text to be printed with <H4> format. duke@1: */ duke@1: public void h4(String text) { duke@1: h4(); duke@1: println(text); duke@1: h4End(); duke@1: } duke@1: duke@1: /** duke@1: * Print <H5> tag. Add a newline character at the end. duke@1: */ duke@1: public void h5() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print </H5> tag. Add a newline character at the end. duke@1: */ duke@1: public void h5End() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print HTML <IMG SRC="imggif" WIDTH="width" HEIGHT="height" ALT="imgname> duke@1: * tag. It prepends the "images" directory name to the "imggif". This duke@1: * method is used for oneone format generation. Add a newline character duke@1: * at the end. duke@1: * duke@1: * @param imggif Image GIF file. duke@1: * @param imgname Image name. duke@1: * @param width Width of the image. duke@1: * @param height Height of the image. duke@1: */ duke@1: public void img(String imggif, String imgname, int width, int height) { duke@1: println("\"""); duke@1: } duke@1: duke@1: /** duke@1: * Print <MENU> tag. Add a newline character at the end. duke@1: */ duke@1: public void menu() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </MENU> tag. Add a newline character at the end. duke@1: */ duke@1: public void menuEnd() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <PRE> tag. Add a newline character at the end. duke@1: */ duke@1: public void pre() { duke@1: println("
    ");
    duke@1:     }
    duke@1: 
    duke@1:     /**
    duke@1:      * Print <PRE> tag without adding new line character at th eend.
    duke@1:      */
    duke@1:     public void preNoNewLine() {
    duke@1:         print("
    ");
    duke@1:     }
    duke@1: 
    duke@1:     /**
    duke@1:      * Print </PRE> tag. Add a newline character at the end.
    duke@1:      */
    duke@1:     public void preEnd() {
    duke@1:         println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print <HR> tag. Add a newline character at the end. duke@1: */ duke@1: public void hr() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print <HR SIZE="size" WIDTH="widthpercent%"> tag. Add a newline duke@1: * character at the end. duke@1: * duke@1: * @param size Size of the ruler. duke@1: * @param widthPercent Percentage Width of the ruler duke@1: */ duke@1: public void hr(int size, int widthPercent) { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print <HR SIZE="size" NOSHADE> tag. Add a newline character at the end. duke@1: * duke@1: * @param size Size of the ruler. duke@1: * @param noshade noshade string. duke@1: */ duke@1: public void hr(int size, String noshade) { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** bpatel@182: * Get the "<STRONG>" string. duke@1: * bpatel@182: * @return String Return String "<STRONG>"; duke@1: */ bpatel@182: public String getStrong() { bpatel@182: return ""; duke@1: } duke@1: duke@1: /** bpatel@182: * Get the "</STRONG>" string. duke@1: * bpatel@182: * @return String Return String "</STRONG>"; duke@1: */ bpatel@182: public String getStrongEnd() { bpatel@182: return ""; duke@1: } duke@1: duke@1: /** bpatel@182: * Print <STRONG> tag. duke@1: */ bpatel@182: public void strong() { bpatel@182: print(""); duke@1: } duke@1: duke@1: /** bpatel@182: * Print </STRONG> tag. duke@1: */ bpatel@182: public void strongEnd() { bpatel@182: print(""); duke@1: } duke@1: duke@1: /** bpatel@182: * Print text passed, in strong format using <STRONG> and </STRONG> tags. duke@1: * bpatel@182: * @param text String to be printed in between <STRONG> and </STRONG> tags. duke@1: */ bpatel@182: public void strong(String text) { bpatel@182: strong(); duke@1: print(text); bpatel@182: strongEnd(); duke@1: } duke@1: duke@1: /** duke@1: * Print text passed, in Italics using <I> and </I> tags. duke@1: * duke@1: * @param text String to be printed in between <I> and </I> tags. duke@1: */ duke@1: public void italics(String text) { duke@1: print(""); duke@1: print(text); duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Return, text passed, with Italics <I> and </I> tags, surrounding it. duke@1: * So if the text passed is "Hi", then string returned will be "<I>Hi</I>". duke@1: * duke@1: * @param text String to be printed in between <I> and </I> tags. duke@1: */ duke@1: public String italicsText(String text) { duke@1: return "" + text + ""; duke@1: } duke@1: duke@1: public String codeText(String text) { duke@1: return "" + text + ""; duke@1: } duke@1: duke@1: /** duke@1: * Print "&nbsp;", non-breaking space. duke@1: */ duke@1: public void space() { duke@1: print(" "); duke@1: } duke@1: duke@1: /** duke@1: * Print <DL> tag. Add a newline character at the end. duke@1: */ duke@1: public void dl() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print </DL> tag. Add a newline character at the end. duke@1: */ duke@1: public void dlEnd() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print <DT> tag. duke@1: */ duke@1: public void dt() { duke@1: print("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print <DT> tag. duke@1: */ duke@1: public void dd() { duke@1: print("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print </DD> tag. Add a newline character at the end. duke@1: */ duke@1: public void ddEnd() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print <SUP> tag. Add a newline character at the end. duke@1: */ duke@1: public void sup() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </SUP> tag. Add a newline character at the end. duke@1: */ duke@1: public void supEnd() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <FONT SIZE="size"> tag. Add a newline character at the end. duke@1: * duke@1: * @param size String size. duke@1: */ duke@1: public void font(String size) { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <FONT SIZE="size"> tag. duke@1: * duke@1: * @param size String size. duke@1: */ duke@1: public void fontNoNewLine(String size) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <FONT CLASS="stylename"> tag. Add a newline character at the end. duke@1: * duke@1: * @param stylename String stylename. duke@1: */ duke@1: public void fontStyle(String stylename) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <FONT SIZE="size" CLASS="stylename"> tag. Add a newline character duke@1: * at the end. duke@1: * duke@1: * @param size String size. duke@1: * @param stylename String stylename. duke@1: */ duke@1: public void fontSizeStyle(String size, String stylename) { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </FONT> tag. duke@1: */ duke@1: public void fontEnd() { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Get the "<FONT COLOR="color">" string. duke@1: * duke@1: * @param color String color. duke@1: * @return String Return String "<FONT COLOR="color">". duke@1: */ duke@1: public String getFontColor(String color) { duke@1: return ""; duke@1: } duke@1: duke@1: /** duke@1: * Get the "</FONT>" string. duke@1: * duke@1: * @return String Return String "</FONT>"; duke@1: */ duke@1: public String getFontEnd() { duke@1: return ""; duke@1: } duke@1: duke@1: /** duke@1: * Print <CENTER> tag. Add a newline character at the end. duke@1: */ duke@1: public void center() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print </CENTER> tag. Add a newline character at the end. duke@1: */ duke@1: public void centerEnd() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print anchor <A NAME="name"> tag. duke@1: * duke@1: * @param name Name String. duke@1: */ duke@1: public void aName(String name) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </A> tag. duke@1: */ duke@1: public void aEnd() { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <I> tag. duke@1: */ duke@1: public void italic() { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </I> tag. duke@1: */ duke@1: public void italicEnd() { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print contents within anchor <A NAME="name"> tags. duke@1: * duke@1: * @param name String name. duke@1: * @param content String contents. duke@1: */ duke@1: public void anchor(String name, String content) { duke@1: aName(name); duke@1: print(content); duke@1: aEnd(); duke@1: } duke@1: duke@1: /** duke@1: * Print anchor <A NAME="name"> and </A>tags. Print comment string duke@1: * "<!-- -->" within those tags. duke@1: * duke@1: * @param name String name. duke@1: */ duke@1: public void anchor(String name) { duke@1: anchor(name, ""); duke@1: } duke@1: duke@1: /** duke@1: * Print newline and then print <P> tag. Add a newline character at the duke@1: * end. duke@1: */ duke@1: public void p() { duke@1: println(); duke@1: println("

    "); duke@1: } duke@1: duke@1: /** duke@1: * Print newline and then print </P> tag. Add a newline character at the duke@1: * end. duke@1: */ duke@1: public void pEnd() { duke@1: println(); duke@1: println("

    "); duke@1: } duke@1: duke@1: /** duke@1: * Print newline and then print <BR> tag. Add a newline character at the duke@1: * end. duke@1: */ duke@1: public void br() { duke@1: println(); duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print <ADDRESS> tag. Add a newline character at the end. duke@1: */ duke@1: public void address() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print </ADDRESS> tag. Add a newline character at the end. duke@1: */ duke@1: public void addressEnd() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print <HEAD> tag. Add a newline character at the end. duke@1: */ duke@1: public void head() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </HEAD> tag. Add a newline character at the end. duke@1: */ duke@1: public void headEnd() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <CODE> tag. duke@1: */ duke@1: public void code() { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </CODE> tag. duke@1: */ duke@1: public void codeEnd() { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <EM> tag. Add a newline character at the end. duke@1: */ duke@1: public void em() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </EM> tag. Add a newline character at the end. duke@1: */ duke@1: public void emEnd() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print HTML <TABLE BORDER="border" WIDTH="width" duke@1: * CELLPADDING="cellpadding" CELLSPACING="cellspacing"> tag. duke@1: * duke@1: * @param border Border size. duke@1: * @param width Width of the table. duke@1: * @param cellpadding Cellpadding for the table cells. duke@1: * @param cellspacing Cellspacing for the table cells. duke@1: */ duke@1: public void table(int border, String width, int cellpadding, duke@1: int cellspacing) { duke@1: println(DocletConstants.NL + duke@1: ""); duke@1: } duke@1: duke@1: /** duke@1: * Print HTML <TABLE BORDER="border" CELLPADDING="cellpadding" duke@1: * CELLSPACING="cellspacing"> tag. duke@1: * duke@1: * @param border Border size. duke@1: * @param cellpadding Cellpadding for the table cells. duke@1: * @param cellspacing Cellspacing for the table cells. duke@1: */ duke@1: public void table(int border, int cellpadding, int cellspacing) { duke@1: println(DocletConstants.NL + duke@1: "
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print HTML <TABLE BORDER="border" WIDTH="width"> duke@1: * duke@1: * @param border Border size. duke@1: * @param width Width of the table. duke@1: */ duke@1: public void table(int border, String width) { duke@1: println(DocletConstants.NL + duke@1: "
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print the HTML table tag with border size 0 and width 100%. duke@1: */ duke@1: public void table() { duke@1: table(0, "100%"); duke@1: } duke@1: duke@1: /** duke@1: * Print </TABLE> tag. Add a newline character at the end. duke@1: */ duke@1: public void tableEnd() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print <TR> tag. Add a newline character at the end. duke@1: */ duke@1: public void tr() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </TR> tag. Add a newline character at the end. duke@1: */ duke@1: public void trEnd() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TD> tag. duke@1: */ duke@1: public void td() { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TD NOWRAP> tag. duke@1: */ duke@1: public void tdNowrap() { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TD WIDTH="width"> tag. duke@1: * duke@1: * @param width String width. duke@1: */ duke@1: public void tdWidth(String width) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </TD> tag. Add a newline character at the end. duke@1: */ duke@1: public void tdEnd() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <LINK str> tag. duke@1: * duke@1: * @param str String. duke@1: */ duke@1: public void link(String str) { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print "<!-- " comment start string. duke@1: */ duke@1: public void commentStart() { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TR BGCOLOR="color" CLASS="stylename"> tag. Adds a newline character duke@1: * at the end. duke@1: * duke@1: * @param color String color. duke@1: * @param stylename String stylename. duke@1: */ duke@1: public void trBgcolorStyle(String color, String stylename) { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TR BGCOLOR="color"> tag. Adds a newline character at the end. duke@1: * duke@1: * @param color String color. duke@1: */ duke@1: public void trBgcolor(String color) { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TR ALIGN="align" VALIGN="valign"> tag. Adds a newline character duke@1: * at the end. duke@1: * duke@1: * @param align String align. duke@1: * @param valign String valign. duke@1: */ duke@1: public void trAlignVAlign(String align, String valign) { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TH ALIGN="align"> tag. duke@1: * duke@1: * @param align the align attribute. duke@1: */ duke@1: public void thAlign(String align) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TH align="align" COLSPAN=i> tag. duke@1: * duke@1: * @param align the align attribute. duke@1: * @param i integer. duke@1: */ duke@1: public void thAlignColspan(String align, int i) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TH align="align" NOWRAP> tag. duke@1: * duke@1: * @param align the align attribute. duke@1: */ duke@1: public void thAlignNowrap(String align) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print </TH> tag. Add a newline character at the end. duke@1: */ duke@1: public void thEnd() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TD COLSPAN=i> tag. duke@1: * duke@1: * @param i integer. duke@1: */ duke@1: public void tdColspan(int i) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TD BGCOLOR="color" CLASS="stylename"> tag. duke@1: * duke@1: * @param color String color. duke@1: * @param stylename String stylename. duke@1: */ duke@1: public void tdBgcolorStyle(String color, String stylename) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TD COLSPAN=i BGCOLOR="color" CLASS="stylename"> tag. duke@1: * duke@1: * @param i integer. duke@1: * @param color String color. duke@1: * @param stylename String stylename. duke@1: */ duke@1: public void tdColspanBgcolorStyle(int i, String color, String stylename) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TD ALIGN="align"> tag. Adds a newline character duke@1: * at the end. duke@1: * duke@1: * @param align String align. duke@1: */ duke@1: public void tdAlign(String align) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TD ALIGN="align" CLASS="stylename"> tag. duke@1: * duke@1: * @param align String align. duke@1: * @param stylename String stylename. duke@1: */ duke@1: public void tdVAlignClass(String align, String stylename) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TD VALIGN="valign"> tag. duke@1: * duke@1: * @param valign String valign. duke@1: */ duke@1: public void tdVAlign(String valign) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TD ALIGN="align" VALIGN="valign"> tag. duke@1: * duke@1: * @param align String align. duke@1: * @param valign String valign. duke@1: */ duke@1: public void tdAlignVAlign(String align, String valign) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TD ALIGN="align" ROWSPAN=rowspan> tag. duke@1: * duke@1: * @param align String align. duke@1: * @param rowspan integer rowspan. duke@1: */ duke@1: public void tdAlignRowspan(String align, int rowspan) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <TD ALIGN="align" VALIGN="valign" ROWSPAN=rowspan> tag. duke@1: * duke@1: * @param align String align. duke@1: * @param valign String valign. duke@1: * @param rowspan integer rowspan. duke@1: */ duke@1: public void tdAlignVAlignRowspan(String align, String valign, duke@1: int rowspan) { duke@1: print(""); duke@1: } duke@1: duke@1: /** duke@1: * Print <BLOCKQUOTE> tag. Add a newline character at the end. duke@1: */ duke@1: public void blockquote() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Print </BLOCKQUOTE> tag. Add a newline character at the end. duke@1: */ duke@1: public void blockquoteEnd() { duke@1: println("
    "); duke@1: } duke@1: duke@1: /** duke@1: * Get the "<CODE>" string. duke@1: * duke@1: * @return String Return String "<CODE>"; duke@1: */ duke@1: public String getCode() { duke@1: return ""; duke@1: } duke@1: duke@1: /** duke@1: * Get the "</CODE>" string. duke@1: * duke@1: * @return String Return String "</CODE>"; duke@1: */ duke@1: public String getCodeEnd() { duke@1: return ""; duke@1: } duke@1: duke@1: /** duke@1: * Print <NOFRAMES> tag. Add a newline character at the end. duke@1: */ duke@1: public void noFrames() { duke@1: println(""); duke@1: } duke@1: duke@1: /** duke@1: * Print &lt;/NOFRAMES&gt; tag. Add a newline character at the end. duke@1: */ duke@1: public void noFramesEnd() { duke@1: println(""); duke@1: } duke@1: }