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