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