0N/A/*
1441N/A * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
553N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
553N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
0N/A */
0N/A
0N/Apackage com.sun.tools.doclets.formats.html.markup;
0N/A
232N/Aimport java.io.*;
232N/A
0N/Aimport com.sun.tools.doclets.internal.toolkit.*;
0N/Aimport com.sun.tools.doclets.internal.toolkit.util.*;
0N/A
0N/A/**
0N/A * Class for the Html format code generation.
0N/A * Initilizes PrintWriter with FileWriter, to enable print
0N/A * related methods to generate the code to the named File through FileWriter.
0N/A *
0N/A * @since 1.2
0N/A * @author Atul M Dambalkar
242N/A * @author Bhavesh Patel (Modified)
0N/A */
0N/Apublic class HtmlWriter extends PrintWriter {
0N/A
0N/A /**
0N/A * Name of the file, to which this writer is writing to.
0N/A */
0N/A protected final String htmlFilename;
0N/A
0N/A /**
0N/A * The window title of this file
0N/A */
0N/A protected String winTitle;
0N/A
0N/A /**
0N/A * URL file separator string("/").
0N/A */
0N/A public static final String fileseparator =
765N/A DirectoryManager.URL_FILE_SEPARATOR;
0N/A
0N/A /**
0N/A * The configuration
0N/A */
0N/A protected Configuration configuration;
0N/A
0N/A /**
232N/A * The flag to indicate whether a member details list is printed or not.
232N/A */
232N/A protected boolean memberDetailsListPrinted;
232N/A
232N/A /**
242N/A * Header for tables displaying packages and description..
242N/A */
242N/A protected final String[] packageTableHeader;
242N/A
242N/A /**
242N/A * Summary for use tables displaying class and package use.
242N/A */
242N/A protected final String useTableSummary;
242N/A
242N/A /**
242N/A * Column header for class docs displaying Modifier and Type header.
242N/A */
242N/A protected final String modifierTypeHeader;
242N/A
765N/A public final Content overviewLabel;
765N/A
765N/A public final Content defaultPackageLabel;
765N/A
765N/A public final Content packageLabel;
765N/A
765N/A public final Content useLabel;
765N/A
765N/A public final Content prevLabel;
765N/A
765N/A public final Content nextLabel;
765N/A
765N/A public final Content prevclassLabel;
765N/A
765N/A public final Content nextclassLabel;
765N/A
765N/A public final Content summaryLabel;
765N/A
765N/A public final Content detailLabel;
765N/A
765N/A public final Content framesLabel;
765N/A
765N/A public final Content noframesLabel;
765N/A
765N/A public final Content treeLabel;
765N/A
765N/A public final Content classLabel;
765N/A
765N/A public final Content deprecatedLabel;
765N/A
765N/A public final Content deprecatedPhrase;
765N/A
765N/A public final Content allclassesLabel;
765N/A
765N/A public final Content indexLabel;
765N/A
765N/A public final Content helpLabel;
765N/A
765N/A public final Content seeLabel;
765N/A
765N/A public final Content descriptionLabel;
765N/A
765N/A public final Content prevpackageLabel;
765N/A
765N/A public final Content nextpackageLabel;
765N/A
765N/A public final Content packagesLabel;
765N/A
765N/A public final Content methodDetailsLabel;
765N/A
765N/A public final Content annotationTypeDetailsLabel;
765N/A
765N/A public final Content fieldDetailsLabel;
765N/A
1194N/A public final Content propertyDetailsLabel;
1194N/A
765N/A public final Content constructorDetailsLabel;
765N/A
765N/A public final Content enumConstantsDetailsLabel;
765N/A
765N/A public final Content specifiedByLabel;
765N/A
765N/A public final Content overridesLabel;
765N/A
765N/A public final Content descfrmClassLabel;
765N/A
765N/A public final Content descfrmInterfaceLabel;
765N/A
242N/A /**
0N/A * Constructor.
0N/A *
0N/A * @param path The directory path to be created for this file
0N/A * or null if none to be created.
0N/A * @param filename File Name to which the PrintWriter will
0N/A * do the Output.
0N/A * @param docencoding Encoding to be used for this file.
0N/A * @exception IOException Exception raised by the FileWriter is passed on
0N/A * to next level.
0N/A * @exception UnSupportedEncodingException Exception raised by the
0N/A * OutputStreamWriter is passed on to next level.
0N/A */
0N/A public HtmlWriter(Configuration configuration,
0N/A String path, String filename, String docencoding)
0N/A throws IOException, UnsupportedEncodingException {
0N/A super(Util.genWriter(configuration, path, filename, docencoding));
0N/A this.configuration = configuration;
0N/A htmlFilename = filename;
232N/A this.memberDetailsListPrinted = false;
242N/A packageTableHeader = new String[] {
242N/A configuration.getText("doclet.Package"),
242N/A configuration.getText("doclet.Description")
242N/A };
242N/A useTableSummary = configuration.getText("doclet.Use_Table_Summary",
242N/A configuration.getText("doclet.packages"));
242N/A modifierTypeHeader = configuration.getText("doclet.0_and_1",
242N/A configuration.getText("doclet.Modifier"),
242N/A configuration.getText("doclet.Type"));
765N/A overviewLabel = getResource("doclet.Overview");
765N/A defaultPackageLabel = new RawHtml(
765N/A DocletConstants.DEFAULT_PACKAGE_NAME);
765N/A packageLabel = getResource("doclet.Package");
765N/A useLabel = getResource("doclet.navClassUse");
765N/A prevLabel = getResource("doclet.Prev");
765N/A nextLabel = getResource("doclet.Next");
765N/A prevclassLabel = getResource("doclet.Prev_Class");
765N/A nextclassLabel = getResource("doclet.Next_Class");
765N/A summaryLabel = getResource("doclet.Summary");
765N/A detailLabel = getResource("doclet.Detail");
941N/A framesLabel = getResource("doclet.Frames");
941N/A noframesLabel = getResource("doclet.No_Frames");
765N/A treeLabel = getResource("doclet.Tree");
765N/A classLabel = getResource("doclet.Class");
765N/A deprecatedLabel = getResource("doclet.navDeprecated");
765N/A deprecatedPhrase = getResource("doclet.Deprecated");
765N/A allclassesLabel = getResource("doclet.All_Classes");
765N/A indexLabel = getResource("doclet.Index");
765N/A helpLabel = getResource("doclet.Help");
765N/A seeLabel = getResource("doclet.See");
765N/A descriptionLabel = getResource("doclet.Description");
765N/A prevpackageLabel = getResource("doclet.Prev_Package");
765N/A nextpackageLabel = getResource("doclet.Next_Package");
765N/A packagesLabel = getResource("doclet.Packages");
765N/A methodDetailsLabel = getResource("doclet.Method_Detail");
765N/A annotationTypeDetailsLabel = getResource("doclet.Annotation_Type_Member_Detail");
765N/A fieldDetailsLabel = getResource("doclet.Field_Detail");
1194N/A propertyDetailsLabel = getResource("doclet.Property_Detail");
765N/A constructorDetailsLabel = getResource("doclet.Constructor_Detail");
765N/A enumConstantsDetailsLabel = getResource("doclet.Enum_Constant_Detail");
765N/A specifiedByLabel = getResource("doclet.Specified_By");
765N/A overridesLabel = getResource("doclet.Overrides");
765N/A descfrmClassLabel = getResource("doclet.Description_From_Class");
765N/A descfrmInterfaceLabel = getResource("doclet.Description_From_Interface");
765N/A }
765N/A
765N/A /**
765N/A * Get the configuration string as a content.
765N/A *
765N/A * @param key the key to look for in the configuration file
765N/A * @return a content tree for the text
765N/A */
765N/A public Content getResource(String key) {
765N/A return new StringContent(configuration.getText(key));
765N/A }
765N/A
765N/A /**
765N/A * Get the configuration string as a content.
765N/A *
765N/A * @param key the key to look for in the configuration file
765N/A * @param a1 string argument added to configuration text
765N/A * @return a content tree for the text
765N/A */
765N/A public Content getResource(String key, String a1) {
765N/A return new RawHtml(configuration.getText(key, a1));
765N/A }
765N/A
765N/A /**
765N/A * Get the configuration string as a content.
765N/A *
765N/A * @param key the key to look for in the configuration file
765N/A * @param a1 string argument added to configuration text
765N/A * @param a2 string argument added to configuration text
765N/A * @return a content tree for the text
765N/A */
765N/A public Content getResource(String key, String a1, String a2) {
765N/A return new RawHtml(configuration.getText(key, a1, a2));
0N/A }
0N/A
0N/A /**
0N/A * Print <HTML> tag. Add a newline character at the end.
0N/A */
0N/A public void html() {
190N/A println("<HTML lang=\"" + configuration.getLocale().getLanguage() + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/HTML&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void htmlEnd() {
0N/A println("</HTML>");
0N/A }
0N/A
0N/A /**
0N/A * Print the script code to be embeded before the &lt;/HEAD&gt; tag.
0N/A */
0N/A protected void printWinTitleScript(String winTitle){
0N/A if(winTitle != null && winTitle.length() > 0) {
0N/A script();
0N/A println("function windowTitle()");
0N/A println("{");
0N/A println(" if (location.href.indexOf('is-external=true') == -1) {");
0N/A println(" parent.document.title=\"" + winTitle + "\";");
0N/A println(" }");
0N/A println("}");
0N/A scriptEnd();
0N/A noScript();
0N/A noScriptEnd();
0N/A }
0N/A }
0N/A
0N/A /**
765N/A * Returns an HtmlTree for the SCRIPT tag.
765N/A *
765N/A * @return an HtmlTree for the SCRIPT tag
765N/A */
765N/A protected HtmlTree getWinTitleScript(){
765N/A HtmlTree script = new HtmlTree(HtmlTag.SCRIPT);
765N/A if(winTitle != null && winTitle.length() > 0) {
765N/A script.addAttr(HtmlAttr.TYPE, "text/javascript");
792N/A String scriptCode = "<!--" + DocletConstants.NL +
792N/A " if (location.href.indexOf('is-external=true') == -1) {" + DocletConstants.NL +
792N/A " parent.document.title=\"" + winTitle + "\";" + DocletConstants.NL +
792N/A " }" + DocletConstants.NL +
792N/A "//-->" + DocletConstants.NL;
765N/A RawHtml scriptContent = new RawHtml(scriptCode);
765N/A script.addContent(scriptContent);
765N/A }
765N/A return script;
765N/A }
765N/A
765N/A /**
765N/A * Returns a content tree for the SCRIPT tag for the main page(index.html).
765N/A *
765N/A * @return a content for the SCRIPT tag
765N/A */
765N/A protected Content getFramesetJavaScript(){
765N/A HtmlTree script = new HtmlTree(HtmlTag.SCRIPT);
765N/A script.addAttr(HtmlAttr.TYPE, "text/javascript");
792N/A String scriptCode = DocletConstants.NL + " targetPage = \"\" + window.location.search;" + DocletConstants.NL +
792N/A " if (targetPage != \"\" && targetPage != \"undefined\")" + DocletConstants.NL +
792N/A " targetPage = targetPage.substring(1);" + DocletConstants.NL +
1441N/A " if (targetPage.indexOf(\":\") != -1 || (targetPage != \"\" && !validURL(targetPage)))" + DocletConstants.NL +
792N/A " targetPage = \"undefined\";" + DocletConstants.NL +
1441N/A " function validURL(url) {" + DocletConstants.NL +
1457N/A " var pos = url.indexOf(\".html\");" + DocletConstants.NL +
1457N/A " if (pos == -1 || pos != url.length - 5)" + DocletConstants.NL +
1441N/A " return false;" + DocletConstants.NL +
1441N/A " var allowNumber = false;" + DocletConstants.NL +
1441N/A " var allowSep = false;" + DocletConstants.NL +
1441N/A " var seenDot = false;" + DocletConstants.NL +
1441N/A " for (var i = 0; i < url.length - 5; i++) {" + DocletConstants.NL +
1441N/A " var ch = url.charAt(i);" + DocletConstants.NL +
1441N/A " if ('a' <= ch && ch <= 'z' ||" + DocletConstants.NL +
1441N/A " 'A' <= ch && ch <= 'Z' ||" + DocletConstants.NL +
1441N/A " ch == '$' ||" + DocletConstants.NL +
1441N/A " ch == '_') {" + DocletConstants.NL +
1441N/A " allowNumber = true;" + DocletConstants.NL +
1441N/A " allowSep = true;" + DocletConstants.NL +
1441N/A " } else if ('0' <= ch && ch <= '9'" + DocletConstants.NL +
1441N/A " || ch == '-') {" + DocletConstants.NL +
1441N/A " if (!allowNumber)" + DocletConstants.NL +
1441N/A " return false;" + DocletConstants.NL +
1441N/A " } else if (ch == '/' || ch == '.') {" + DocletConstants.NL +
1441N/A " if (!allowSep)" + DocletConstants.NL +
1441N/A " return false;" + DocletConstants.NL +
1441N/A " allowNumber = false;" + DocletConstants.NL +
1441N/A " allowSep = false;" + DocletConstants.NL +
1441N/A " if (ch == '.')" + DocletConstants.NL +
1441N/A " seenDot = true;" + DocletConstants.NL +
1441N/A " if (ch == '/' && seenDot)" + DocletConstants.NL +
1441N/A " return false;" + DocletConstants.NL +
1441N/A " } else {" + DocletConstants.NL +
1441N/A " return false;"+ DocletConstants.NL +
1441N/A " }" + DocletConstants.NL +
1441N/A " }" + DocletConstants.NL +
1441N/A " return true;" + DocletConstants.NL +
1441N/A " }" + DocletConstants.NL +
792N/A " function loadFrames() {" + DocletConstants.NL +
792N/A " if (targetPage != \"\" && targetPage != \"undefined\")" + DocletConstants.NL +
792N/A " top.classFrame.location = top.targetPage;" + DocletConstants.NL +
792N/A " }" + DocletConstants.NL;
765N/A RawHtml scriptContent = new RawHtml(scriptCode);
765N/A script.addContent(scriptContent);
765N/A return script;
765N/A }
765N/A
765N/A /**
0N/A * Print the Javascript &lt;SCRIPT&gt; start tag with its type
0N/A * attribute.
0N/A */
0N/A public void script() {
0N/A println("<SCRIPT type=\"text/javascript\">");
0N/A }
0N/A
0N/A /**
0N/A * Print the Javascript &lt;/SCRIPT&gt; end tag.
0N/A */
0N/A public void scriptEnd() {
0N/A println("</SCRIPT>");
0N/A }
0N/A
0N/A /**
0N/A * Print the Javascript &lt;NOSCRIPT&gt; start tag.
0N/A */
0N/A public void noScript() {
0N/A println("<NOSCRIPT>");
0N/A }
0N/A
0N/A /**
0N/A * Print the Javascript &lt;/NOSCRIPT&gt; end tag.
0N/A */
0N/A public void noScriptEnd() {
0N/A println("</NOSCRIPT>");
0N/A }
0N/A
0N/A /**
0N/A * Return the Javascript call to be embedded in the &lt;BODY&gt; tag.
0N/A * Return nothing if winTitle is empty.
0N/A * @return the Javascript call to be embedded in the &lt;BODY&gt; tag.
0N/A */
0N/A protected String getWindowTitleOnload(){
0N/A if(winTitle != null && winTitle.length() > 0) {
0N/A return " onload=\"windowTitle();\"";
0N/A } else {
0N/A return "";
0N/A }
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;BODY BGCOLOR="bgcolor"&gt;, including JavaScript
0N/A * "onload" call to load windowtitle script. This script shows the name
0N/A * of the document in the window title bar when frames are on.
0N/A *
0N/A * @param bgcolor Background color.
0N/A * @param includeScript boolean set true if printing windowtitle script
0N/A */
0N/A public void body(String bgcolor, boolean includeScript) {
0N/A print("<BODY BGCOLOR=\"" + bgcolor + "\"");
0N/A if (includeScript) {
0N/A print(getWindowTitleOnload());
0N/A }
0N/A println(">");
0N/A }
0N/A
0N/A /**
765N/A * Returns an HtmlTree for the BODY tag.
765N/A *
765N/A * @param includeScript set true if printing windowtitle script
765N/A * @param title title for the window
765N/A * @return an HtmlTree for the BODY tag
765N/A */
765N/A public HtmlTree getBody(boolean includeScript, String title) {
765N/A HtmlTree body = new HtmlTree(HtmlTag.BODY);
765N/A // Set window title string which is later printed
765N/A this.winTitle = title;
765N/A // Don't print windowtitle script for overview-frame, allclasses-frame
765N/A // and package-frame
765N/A if (includeScript) {
765N/A body.addContent(getWinTitleScript());
765N/A Content noScript = HtmlTree.NOSCRIPT(
765N/A HtmlTree.DIV(getResource("doclet.No_Script_Message")));
765N/A body.addContent(noScript);
765N/A }
765N/A return body;
765N/A }
765N/A
765N/A /**
0N/A * Print &lt;/BODY&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void bodyEnd() {
0N/A println("</BODY>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TITLE&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void title() {
0N/A println("<TITLE>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TITLE&gt; tag. Add a newline character at the end.
0N/A *
0N/A * @param winTitle The title of this document.
0N/A */
0N/A public void title(String winTitle) {
0N/A // Set window title string which is later printed
0N/A this.winTitle = winTitle;
0N/A title();
0N/A }
0N/A
765N/A /**
765N/A * Returns an HtmlTree for the TITLE tag.
765N/A *
765N/A * @return an HtmlTree for the TITLE tag
765N/A */
765N/A public HtmlTree getTitle() {
765N/A HtmlTree title = HtmlTree.TITLE(new StringContent(winTitle));
765N/A return title;
765N/A }
0N/A
0N/A /**
0N/A * Print &lt;/TITLE&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void titleEnd() {
0N/A println("</TITLE>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;UL&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void ul() {
0N/A println("<UL>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/UL&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void ulEnd() {
0N/A println("</UL>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;LI&gt; tag.
0N/A */
0N/A public void li() {
0N/A print("<LI>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;LI TYPE="type"&gt; tag.
0N/A *
0N/A * @param type Type string.
0N/A */
0N/A public void li(String type) {
0N/A print("<LI TYPE=\"" + type + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;H1&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void h1() {
0N/A println("<H1>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/H1&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void h1End() {
0N/A println("</H1>");
0N/A }
0N/A
0N/A /**
0N/A * Print text with &lt;H1&gt; tag. Also adds &lt;/H1&gt; tag. Add a newline character
0N/A * at the end of the text.
0N/A *
0N/A * @param text Text to be printed with &lt;H1&gt; format.
0N/A */
0N/A public void h1(String text) {
0N/A h1();
0N/A println(text);
0N/A h1End();
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;H2&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void h2() {
0N/A println("<H2>");
0N/A }
0N/A
0N/A /**
0N/A * Print text with &lt;H2&gt; tag. Also adds &lt;/H2&gt; tag. Add a newline character
0N/A * at the end of the text.
0N/A *
0N/A * @param text Text to be printed with &lt;H2&gt; format.
0N/A */
0N/A public void h2(String text) {
0N/A h2();
0N/A println(text);
0N/A h2End();
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/H2&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void h2End() {
0N/A println("</H2>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;H3&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void h3() {
0N/A println("<H3>");
0N/A }
0N/A
0N/A /**
0N/A * Print text with &lt;H3&gt; tag. Also adds &lt;/H3&gt; tag. Add a newline character
0N/A * at the end of the text.
0N/A *
0N/A * @param text Text to be printed with &lt;H3&gt; format.
0N/A */
0N/A public void h3(String text) {
0N/A h3();
0N/A println(text);
0N/A h3End();
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/H3&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void h3End() {
0N/A println("</H3>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;H4&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void h4() {
0N/A println("<H4>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/H4&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void h4End() {
0N/A println("</H4>");
0N/A }
0N/A
0N/A /**
0N/A * Print text with &lt;H4&gt; tag. Also adds &lt;/H4&gt; tag. Add a newline character
0N/A * at the end of the text.
0N/A *
0N/A * @param text Text to be printed with &lt;H4&gt; format.
0N/A */
0N/A public void h4(String text) {
0N/A h4();
0N/A println(text);
0N/A h4End();
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;H5&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void h5() {
0N/A println("<H5>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/H5&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void h5End() {
0N/A println("</H5>");
0N/A }
0N/A
0N/A /**
0N/A * Print HTML &lt;IMG SRC="imggif" WIDTH="width" HEIGHT="height" ALT="imgname&gt;
0N/A * tag. It prepends the "images" directory name to the "imggif". This
0N/A * method is used for oneone format generation. Add a newline character
0N/A * at the end.
0N/A *
0N/A * @param imggif Image GIF file.
0N/A * @param imgname Image name.
0N/A * @param width Width of the image.
0N/A * @param height Height of the image.
0N/A */
0N/A public void img(String imggif, String imgname, int width, int height) {
0N/A println("<IMG SRC=\"images/" + imggif + ".gif\""
0N/A + " WIDTH=\"" + width + "\" HEIGHT=\"" + height
0N/A + "\" ALT=\"" + imgname + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;MENU&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void menu() {
0N/A println("<MENU>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/MENU&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void menuEnd() {
0N/A println("</MENU>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;PRE&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void pre() {
0N/A println("<PRE>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;PRE&gt; tag without adding new line character at th eend.
0N/A */
0N/A public void preNoNewLine() {
0N/A print("<PRE>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/PRE&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void preEnd() {
0N/A println("</PRE>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;HR&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void hr() {
0N/A println("<HR>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;HR SIZE="size" WIDTH="widthpercent%"&gt; tag. Add a newline
0N/A * character at the end.
0N/A *
0N/A * @param size Size of the ruler.
0N/A * @param widthPercent Percentage Width of the ruler
0N/A */
0N/A public void hr(int size, int widthPercent) {
0N/A println("<HR SIZE=\"" + size + "\" WIDTH=\"" + widthPercent + "%\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;HR SIZE="size" NOSHADE&gt; tag. Add a newline character at the end.
0N/A *
0N/A * @param size Size of the ruler.
0N/A * @param noshade noshade string.
0N/A */
0N/A public void hr(int size, String noshade) {
0N/A println("<HR SIZE=\"" + size + "\" NOSHADE>");
0N/A }
0N/A
0N/A /**
181N/A * Get the "&lt;STRONG&gt;" string.
0N/A *
181N/A * @return String Return String "&lt;STRONG&gt;";
0N/A */
181N/A public String getStrong() {
181N/A return "<STRONG>";
0N/A }
0N/A
0N/A /**
181N/A * Get the "&lt;/STRONG&gt;" string.
0N/A *
181N/A * @return String Return String "&lt;/STRONG&gt;";
0N/A */
181N/A public String getStrongEnd() {
181N/A return "</STRONG>";
0N/A }
0N/A
0N/A /**
181N/A * Print &lt;STRONG&gt; tag.
0N/A */
181N/A public void strong() {
181N/A print("<STRONG>");
0N/A }
0N/A
0N/A /**
181N/A * Print &lt;/STRONG&gt; tag.
0N/A */
181N/A public void strongEnd() {
181N/A print("</STRONG>");
0N/A }
0N/A
0N/A /**
181N/A * Print text passed, in strong format using &lt;STRONG&gt; and &lt;/STRONG&gt; tags.
0N/A *
181N/A * @param text String to be printed in between &lt;STRONG&gt; and &lt;/STRONG&gt; tags.
0N/A */
181N/A public void strong(String text) {
181N/A strong();
0N/A print(text);
181N/A strongEnd();
0N/A }
0N/A
0N/A /**
0N/A * Print text passed, in Italics using &lt;I&gt; and &lt;/I&gt; tags.
0N/A *
0N/A * @param text String to be printed in between &lt;I&gt; and &lt;/I&gt; tags.
0N/A */
0N/A public void italics(String text) {
0N/A print("<I>");
0N/A print(text);
0N/A println("</I>");
0N/A }
0N/A
0N/A /**
765N/A * Return, text passed, with Italics &lt;i&gt; and &lt;/i&gt; tags, surrounding it.
765N/A * So if the text passed is "Hi", then string returned will be "&lt;i&gt;Hi&lt;/i&gt;".
0N/A *
0N/A * @param text String to be printed in between &lt;I&gt; and &lt;/I&gt; tags.
0N/A */
0N/A public String italicsText(String text) {
765N/A return "<i>" + text + "</i>";
0N/A }
0N/A
0N/A public String codeText(String text) {
765N/A return "<code>" + text + "</code>";
0N/A }
0N/A
0N/A /**
0N/A * Print "&#38;nbsp;", non-breaking space.
0N/A */
0N/A public void space() {
0N/A print("&nbsp;");
0N/A }
0N/A
0N/A /**
765N/A * Return "&#38;nbsp;", non-breaking space.
765N/A */
765N/A public Content getSpace() {
765N/A return RawHtml.nbsp;
765N/A }
765N/A
765N/A /**
0N/A * Print &lt;DL&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void dl() {
0N/A println("<DL>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/DL&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void dlEnd() {
0N/A println("</DL>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;DT&gt; tag.
0N/A */
0N/A public void dt() {
0N/A print("<DT>");
0N/A }
0N/A
0N/A /**
232N/A * Print &lt;/DT&gt; tag.
232N/A */
232N/A public void dtEnd() {
232N/A print("</DT>");
232N/A }
232N/A
232N/A /**
232N/A * Print &lt;DD&gt; tag.
0N/A */
0N/A public void dd() {
0N/A print("<DD>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/DD&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void ddEnd() {
0N/A println("</DD>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;SUP&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void sup() {
0N/A println("<SUP>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/SUP&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void supEnd() {
0N/A println("</SUP>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;FONT SIZE="size"&gt; tag. Add a newline character at the end.
0N/A *
0N/A * @param size String size.
0N/A */
0N/A public void font(String size) {
0N/A println("<FONT SIZE=\"" + size + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;FONT SIZE="size"&gt; tag.
0N/A *
0N/A * @param size String size.
0N/A */
0N/A public void fontNoNewLine(String size) {
0N/A print("<FONT SIZE=\"" + size + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;FONT CLASS="stylename"&gt; tag. Add a newline character at the end.
0N/A *
0N/A * @param stylename String stylename.
0N/A */
0N/A public void fontStyle(String stylename) {
0N/A print("<FONT CLASS=\"" + stylename + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;FONT SIZE="size" CLASS="stylename"&gt; tag. Add a newline character
0N/A * at the end.
0N/A *
0N/A * @param size String size.
0N/A * @param stylename String stylename.
0N/A */
0N/A public void fontSizeStyle(String size, String stylename) {
0N/A println("<FONT size=\"" + size + "\" CLASS=\"" + stylename + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/FONT&gt; tag.
0N/A */
0N/A public void fontEnd() {
0N/A print("</FONT>");
0N/A }
0N/A
0N/A /**
0N/A * Get the "&lt;FONT COLOR="color"&gt;" string.
0N/A *
0N/A * @param color String color.
0N/A * @return String Return String "&lt;FONT COLOR="color"&gt;".
0N/A */
0N/A public String getFontColor(String color) {
0N/A return "<FONT COLOR=\"" + color + "\">";
0N/A }
0N/A
0N/A /**
0N/A * Get the "&lt;/FONT&gt;" string.
0N/A *
0N/A * @return String Return String "&lt;/FONT&gt;";
0N/A */
0N/A public String getFontEnd() {
0N/A return "</FONT>";
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;CENTER&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void center() {
0N/A println("<CENTER>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/CENTER&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void centerEnd() {
0N/A println("</CENTER>");
0N/A }
0N/A
0N/A /**
0N/A * Print anchor &lt;A NAME="name"&gt; tag.
0N/A *
0N/A * @param name Name String.
0N/A */
0N/A public void aName(String name) {
0N/A print("<A NAME=\"" + name + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/A&gt; tag.
0N/A */
0N/A public void aEnd() {
0N/A print("</A>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;I&gt; tag.
0N/A */
0N/A public void italic() {
0N/A print("<I>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/I&gt; tag.
0N/A */
0N/A public void italicEnd() {
0N/A print("</I>");
0N/A }
0N/A
0N/A /**
0N/A * Print contents within anchor &lt;A NAME="name"&gt; tags.
0N/A *
0N/A * @param name String name.
0N/A * @param content String contents.
0N/A */
0N/A public void anchor(String name, String content) {
0N/A aName(name);
0N/A print(content);
0N/A aEnd();
0N/A }
0N/A
0N/A /**
0N/A * Print anchor &lt;A NAME="name"&gt; and &lt;/A&gt;tags. Print comment string
0N/A * "&lt;!-- --&gt;" within those tags.
0N/A *
0N/A * @param name String name.
0N/A */
0N/A public void anchor(String name) {
0N/A anchor(name, "<!-- -->");
0N/A }
0N/A
0N/A /**
0N/A * Print newline and then print &lt;P&gt; tag. Add a newline character at the
0N/A * end.
0N/A */
0N/A public void p() {
0N/A println();
0N/A println("<P>");
0N/A }
0N/A
0N/A /**
0N/A * Print newline and then print &lt;/P&gt; tag. Add a newline character at the
0N/A * end.
0N/A */
0N/A public void pEnd() {
0N/A println();
0N/A println("</P>");
0N/A }
0N/A
0N/A /**
0N/A * Print newline and then print &lt;BR&gt; tag. Add a newline character at the
0N/A * end.
0N/A */
0N/A public void br() {
0N/A println();
0N/A println("<BR>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;ADDRESS&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void address() {
0N/A println("<ADDRESS>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/ADDRESS&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void addressEnd() {
0N/A println("</ADDRESS>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;HEAD&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void head() {
0N/A println("<HEAD>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/HEAD&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void headEnd() {
0N/A println("</HEAD>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;CODE&gt; tag.
0N/A */
0N/A public void code() {
0N/A print("<CODE>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/CODE&gt; tag.
0N/A */
0N/A public void codeEnd() {
0N/A print("</CODE>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;EM&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void em() {
0N/A println("<EM>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/EM&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void emEnd() {
0N/A println("</EM>");
0N/A }
0N/A
0N/A /**
0N/A * Print HTML &lt;TABLE BORDER="border" WIDTH="width"
0N/A * CELLPADDING="cellpadding" CELLSPACING="cellspacing"&gt; tag.
0N/A *
0N/A * @param border Border size.
0N/A * @param width Width of the table.
0N/A * @param cellpadding Cellpadding for the table cells.
0N/A * @param cellspacing Cellspacing for the table cells.
0N/A */
0N/A public void table(int border, String width, int cellpadding,
0N/A int cellspacing) {
0N/A println(DocletConstants.NL +
0N/A "<TABLE BORDER=\"" + border +
0N/A "\" WIDTH=\"" + width +
0N/A "\" CELLPADDING=\"" + cellpadding +
0N/A "\" CELLSPACING=\"" + cellspacing +
0N/A "\" SUMMARY=\"\">");
0N/A }
0N/A
0N/A /**
242N/A * Print HTML &lt;TABLE BORDER="border" WIDTH="width"
242N/A * CELLPADDING="cellpadding" CELLSPACING="cellspacing" SUMMARY="summary"&gt; tag.
242N/A *
242N/A * @param border Border size.
242N/A * @param width Width of the table.
242N/A * @param cellpadding Cellpadding for the table cells.
242N/A * @param cellspacing Cellspacing for the table cells.
242N/A * @param summary Table summary.
242N/A */
242N/A public void table(int border, String width, int cellpadding,
242N/A int cellspacing, String summary) {
242N/A println(DocletConstants.NL +
242N/A "<TABLE BORDER=\"" + border +
242N/A "\" WIDTH=\"" + width +
242N/A "\" CELLPADDING=\"" + cellpadding +
242N/A "\" CELLSPACING=\"" + cellspacing +
242N/A "\" SUMMARY=\"" + summary + "\">");
242N/A }
242N/A
242N/A /**
0N/A * Print HTML &lt;TABLE BORDER="border" CELLPADDING="cellpadding"
0N/A * CELLSPACING="cellspacing"&gt; tag.
0N/A *
0N/A * @param border Border size.
0N/A * @param cellpadding Cellpadding for the table cells.
0N/A * @param cellspacing Cellspacing for the table cells.
0N/A */
0N/A public void table(int border, int cellpadding, int cellspacing) {
0N/A println(DocletConstants.NL +
0N/A "<TABLE BORDER=\"" + border +
0N/A "\" CELLPADDING=\"" + cellpadding +
0N/A "\" CELLSPACING=\"" + cellspacing +
0N/A "\" SUMMARY=\"\">");
0N/A }
0N/A
0N/A /**
242N/A * Print HTML &lt;TABLE BORDER="border" CELLPADDING="cellpadding"
242N/A * CELLSPACING="cellspacing" SUMMARY="summary"&gt; tag.
242N/A *
242N/A * @param border Border size.
242N/A * @param cellpadding Cellpadding for the table cells.
242N/A * @param cellspacing Cellspacing for the table cells.
242N/A * @param summary Table summary.
242N/A */
242N/A public void table(int border, int cellpadding, int cellspacing, String summary) {
242N/A println(DocletConstants.NL +
242N/A "<TABLE BORDER=\"" + border +
242N/A "\" CELLPADDING=\"" + cellpadding +
242N/A "\" CELLSPACING=\"" + cellspacing +
242N/A "\" SUMMARY=\"" + summary + "\">");
242N/A }
242N/A
242N/A /**
0N/A * Print HTML &lt;TABLE BORDER="border" WIDTH="width"&gt;
0N/A *
0N/A * @param border Border size.
0N/A * @param width Width of the table.
0N/A */
0N/A public void table(int border, String width) {
0N/A println(DocletConstants.NL +
0N/A "<TABLE BORDER=\"" + border +
0N/A "\" WIDTH=\"" + width +
0N/A "\" SUMMARY=\"\">");
0N/A }
0N/A
0N/A /**
0N/A * Print the HTML table tag with border size 0 and width 100%.
0N/A */
0N/A public void table() {
0N/A table(0, "100%");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/TABLE&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void tableEnd() {
0N/A println("</TABLE>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TR&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void tr() {
0N/A println("<TR>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/TR&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void trEnd() {
0N/A println("</TR>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TD&gt; tag.
0N/A */
0N/A public void td() {
0N/A print("<TD>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TD NOWRAP&gt; tag.
0N/A */
0N/A public void tdNowrap() {
0N/A print("<TD NOWRAP>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TD WIDTH="width"&gt; tag.
0N/A *
0N/A * @param width String width.
0N/A */
0N/A public void tdWidth(String width) {
0N/A print("<TD WIDTH=\"" + width + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/TD&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void tdEnd() {
0N/A println("</TD>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;LINK str&gt; tag.
0N/A *
0N/A * @param str String.
0N/A */
0N/A public void link(String str) {
0N/A println("<LINK " + str + ">");
0N/A }
0N/A
0N/A /**
0N/A * Print "&lt;!-- " comment start string.
0N/A */
0N/A public void commentStart() {
0N/A print("<!-- ");
0N/A }
0N/A
0N/A /**
0N/A * Print "--&gt;" comment end string. Add a newline character at the end.
0N/A */
0N/A public void commentEnd() {
0N/A println("-->");
0N/A }
0N/A
0N/A /**
242N/A * Print &lt;CAPTION CLASS="stylename"&gt; tag. Adds a newline character
242N/A * at the end.
242N/A *
242N/A * @param stylename style to be applied.
242N/A */
242N/A public void captionStyle(String stylename) {
242N/A println("<CAPTION CLASS=\"" + stylename + "\">");
242N/A }
242N/A
242N/A /**
242N/A * Print &lt;/CAPTION&gt; tag. Add a newline character at the end.
242N/A */
242N/A public void captionEnd() {
242N/A println("</CAPTION>");
242N/A }
242N/A
242N/A /**
0N/A * Print &lt;TR BGCOLOR="color" CLASS="stylename"&gt; tag. Adds a newline character
0N/A * at the end.
0N/A *
0N/A * @param color String color.
0N/A * @param stylename String stylename.
0N/A */
0N/A public void trBgcolorStyle(String color, String stylename) {
0N/A println("<TR BGCOLOR=\"" + color + "\" CLASS=\"" + stylename + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TR BGCOLOR="color"&gt; tag. Adds a newline character at the end.
0N/A *
0N/A * @param color String color.
0N/A */
0N/A public void trBgcolor(String color) {
0N/A println("<TR BGCOLOR=\"" + color + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TR ALIGN="align" VALIGN="valign"&gt; tag. Adds a newline character
0N/A * at the end.
0N/A *
0N/A * @param align String align.
0N/A * @param valign String valign.
0N/A */
0N/A public void trAlignVAlign(String align, String valign) {
0N/A println("<TR ALIGN=\"" + align + "\" VALIGN=\"" + valign + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TH ALIGN="align"&gt; tag.
0N/A *
0N/A * @param align the align attribute.
0N/A */
0N/A public void thAlign(String align) {
0N/A print("<TH ALIGN=\"" + align + "\">");
0N/A }
0N/A
0N/A /**
242N/A * Print &lt;TH CLASS="stylename" SCOPE="scope" NOWRAP&gt; tag.
242N/A *
242N/A * @param stylename style to be applied.
242N/A * @param scope the scope attribute.
242N/A */
242N/A public void thScopeNoWrap(String stylename, String scope) {
242N/A print("<TH CLASS=\"" + stylename + "\" SCOPE=\"" + scope + "\" NOWRAP>");
242N/A }
242N/A
242N/A /*
242N/A * Returns a header for Modifier and Type column of a table.
242N/A */
242N/A public String getModifierTypeHeader() {
242N/A return modifierTypeHeader;
242N/A }
242N/A
242N/A /**
0N/A * Print &lt;TH align="align" COLSPAN=i&gt; tag.
0N/A *
0N/A * @param align the align attribute.
0N/A * @param i integer.
0N/A */
0N/A public void thAlignColspan(String align, int i) {
0N/A print("<TH ALIGN=\"" + align + "\" COLSPAN=\"" + i + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TH align="align" NOWRAP&gt; tag.
0N/A *
0N/A * @param align the align attribute.
0N/A */
0N/A public void thAlignNowrap(String align) {
0N/A print("<TH ALIGN=\"" + align + "\" NOWRAP>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/TH&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void thEnd() {
0N/A println("</TH>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TD COLSPAN=i&gt; tag.
0N/A *
0N/A * @param i integer.
0N/A */
0N/A public void tdColspan(int i) {
0N/A print("<TD COLSPAN=" + i + ">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TD BGCOLOR="color" CLASS="stylename"&gt; tag.
0N/A *
0N/A * @param color String color.
0N/A * @param stylename String stylename.
0N/A */
0N/A public void tdBgcolorStyle(String color, String stylename) {
0N/A print("<TD BGCOLOR=\"" + color + "\" CLASS=\"" + stylename + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TD COLSPAN=i BGCOLOR="color" CLASS="stylename"&gt; tag.
0N/A *
0N/A * @param i integer.
0N/A * @param color String color.
0N/A * @param stylename String stylename.
0N/A */
0N/A public void tdColspanBgcolorStyle(int i, String color, String stylename) {
0N/A print("<TD COLSPAN=" + i + " BGCOLOR=\"" + color + "\" CLASS=\"" +
0N/A stylename + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TD ALIGN="align"&gt; tag. Adds a newline character
0N/A * at the end.
0N/A *
0N/A * @param align String align.
0N/A */
0N/A public void tdAlign(String align) {
0N/A print("<TD ALIGN=\"" + align + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TD ALIGN="align" CLASS="stylename"&gt; tag.
0N/A *
0N/A * @param align String align.
0N/A * @param stylename String stylename.
0N/A */
0N/A public void tdVAlignClass(String align, String stylename) {
0N/A print("<TD VALIGN=\"" + align + "\" CLASS=\"" + stylename + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TD VALIGN="valign"&gt; tag.
0N/A *
0N/A * @param valign String valign.
0N/A */
0N/A public void tdVAlign(String valign) {
0N/A print("<TD VALIGN=\"" + valign + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TD ALIGN="align" VALIGN="valign"&gt; tag.
0N/A *
0N/A * @param align String align.
0N/A * @param valign String valign.
0N/A */
0N/A public void tdAlignVAlign(String align, String valign) {
0N/A print("<TD ALIGN=\"" + align + "\" VALIGN=\"" + valign + "\">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TD ALIGN="align" ROWSPAN=rowspan&gt; tag.
0N/A *
0N/A * @param align String align.
0N/A * @param rowspan integer rowspan.
0N/A */
0N/A public void tdAlignRowspan(String align, int rowspan) {
0N/A print("<TD ALIGN=\"" + align + "\" ROWSPAN=" + rowspan + ">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;TD ALIGN="align" VALIGN="valign" ROWSPAN=rowspan&gt; tag.
0N/A *
0N/A * @param align String align.
0N/A * @param valign String valign.
0N/A * @param rowspan integer rowspan.
0N/A */
0N/A public void tdAlignVAlignRowspan(String align, String valign,
0N/A int rowspan) {
0N/A print("<TD ALIGN=\"" + align + "\" VALIGN=\"" + valign
0N/A + "\" ROWSPAN=" + rowspan + ">");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;BLOCKQUOTE&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void blockquote() {
0N/A println("<BLOCKQUOTE>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/BLOCKQUOTE&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void blockquoteEnd() {
0N/A println("</BLOCKQUOTE>");
0N/A }
0N/A
0N/A /**
765N/A * Get the "&lt;code&gt;" string.
0N/A *
765N/A * @return String Return String "&lt;code&gt;";
0N/A */
0N/A public String getCode() {
765N/A return "<code>";
0N/A }
0N/A
0N/A /**
765N/A * Get the "&lt;/code&gt;" string.
0N/A *
765N/A * @return String Return String "&lt;/code&gt;";
0N/A */
0N/A public String getCodeEnd() {
765N/A return "</code>";
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;NOFRAMES&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void noFrames() {
0N/A println("<NOFRAMES>");
0N/A }
0N/A
0N/A /**
0N/A * Print &lt;/NOFRAMES&gt; tag. Add a newline character at the end.
0N/A */
0N/A public void noFramesEnd() {
0N/A println("</NOFRAMES>");
0N/A }
0N/A}