KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > displaytag > util > TagConstants


1 /**
2  * Licensed under the Artistic License; you may not use this file
3  * except in compliance with the License.
4  * You may obtain a copy of the License at
5  *
6  * http://displaytag.sourceforge.net/license.html
7  *
8  * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
9  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
10  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11  */

12 package org.displaytag.util;
13
14 /**
15  * Constants for html tags.
16  * @author Fabrizio Giustina
17  * @version $Revision: 852 $ ($Author: fgiust $)
18  */

19 public final class TagConstants
20 {
21
22     /**
23      * start of tag <code>&lt;</code>.
24      */

25     public static final String JavaDoc TAG_OPEN = "\n<"; //$NON-NLS-1$
26

27     /**
28      * start of closing tag <code>&lt;/</code>.
29      */

30     public static final String JavaDoc TAG_OPENCLOSING = "</"; //$NON-NLS-1$
31

32     /**
33      * end of tag <code>&gt;</code>.
34      */

35     public static final String JavaDoc TAG_CLOSE = ">"; //$NON-NLS-1$
36

37     /**
38      * html <code>a</code> tag name.
39      */

40     public static final String JavaDoc TAGNAME_ANCHOR = "a"; //$NON-NLS-1$
41

42     /**
43      * html <code>table</code> tag name.
44      */

45     public static final String JavaDoc TABLE_TAG_NAME = "table"; //$NON-NLS-1$
46

47     /**
48      * html <code>td</code> tag name.
49      */

50     public static final String JavaDoc TAGNAME_COLUMN = "td"; //$NON-NLS-1$
51

52     /**
53      * html <code>tr</code> tag name.
54      */

55     public static final String JavaDoc TAGNAME_ROW = "tr"; //$NON-NLS-1$
56

57     /**
58      * html <code>th</code> tag name.
59      */

60     public static final String JavaDoc TAGNAME_COLUMN_HEADER = "th"; //$NON-NLS-1$
61

62     /**
63      * html <code>tbody</code> tag name.
64      */

65     public static final String JavaDoc TAGNAME_TABLE_HEAD = "thead"; //$NON-NLS-1$
66

67     /**
68      * html <code>tbody</code> tag name.
69      */

70     public static final String JavaDoc TAGNAME_TABLE_BODY = "tbody"; //$NON-NLS-1$
71

72     /**
73      * html <code>tfooter</code> tag name.
74      */

75     public static final String JavaDoc TAGNAME_TABLE_FOOTER = "tfoot"; //$NON-NLS-1$
76

77     /**
78      * html <code>caption</code> tag name.
79      */

80     public static final String JavaDoc TAGNAME_CAPTION = "caption"; //$NON-NLS-1$
81

82     /**
83      * html tag <code>%lt;tr&gt;</code>.
84      */

85     public static final String JavaDoc TAG_TR_OPEN = TAG_OPEN + TAGNAME_ROW + TAG_CLOSE;
86
87     /**
88      * html tag <code>%lt;/tr&gt;</code>.
89      */

90     public static final String JavaDoc TAG_TR_CLOSE = TAG_OPENCLOSING + TAGNAME_ROW + TAG_CLOSE;
91
92     /**
93      * html tag <code>%lt;thead&gt;</code>.
94      */

95     public static final String JavaDoc TAG_THEAD_OPEN = TAG_OPEN + TAGNAME_TABLE_HEAD + TAG_CLOSE;
96
97     /**
98      * html tag <code>%lt;/thead&gt;</code>.
99      */

100     public static final String JavaDoc TAG_THEAD_CLOSE = TAG_OPENCLOSING + TAGNAME_TABLE_HEAD + TAG_CLOSE;
101
102     /**
103      * html tag <code>%lt;tbody&gt;</code>.
104      */

105     public static final String JavaDoc TAG_TBODY_OPEN = TAG_OPEN + TAGNAME_TABLE_BODY + TAG_CLOSE;
106
107     /**
108      * html tag <code>%lt;/tbody&gt;</code>.
109      */

110     public static final String JavaDoc TAG_TBODY_CLOSE = TAG_OPENCLOSING + TAGNAME_TABLE_BODY + TAG_CLOSE;
111
112     /**
113      * html tag <code>%lt;tfooter&gt;</code>.
114      */

115     public static final String JavaDoc TAG_TFOOTER_OPEN = TAG_OPEN + TAGNAME_TABLE_FOOTER + TAG_CLOSE;
116
117     /**
118      * html tag <code>%lt;/tfooter&gt;</code>.
119      */

120     public static final String JavaDoc TAG_TFOOTER_CLOSE = TAG_OPENCLOSING + TAGNAME_TABLE_FOOTER + TAG_CLOSE;
121
122     /**
123      * html tag <code>%lt;th&gt;</code>.
124      */

125     public static final String JavaDoc TAG_TH_OPEN = TAG_OPEN + TAGNAME_COLUMN_HEADER + TAG_CLOSE;
126
127     /**
128      * html tag <code>%lt;/th&gt;</code>.
129      */

130     public static final String JavaDoc TAG_TH_CLOSE = TAG_OPENCLOSING + TAGNAME_COLUMN_HEADER + TAG_CLOSE;
131
132     /**
133      * html tag <code>%lt;td&gt;</code>.
134      */

135     public static final String JavaDoc TAG_TD_OPEN = TAG_OPEN + TAGNAME_COLUMN + TAG_CLOSE;
136
137     /**
138      * html tag <code>%lt;/td&gt;</code>.
139      */

140     public static final String JavaDoc TAG_TD_CLOSE = TAG_OPENCLOSING + TAGNAME_COLUMN + TAG_CLOSE;
141
142     /**
143      * html attribute <code>rules</code>.
144      */

145     public static final String JavaDoc ATTRIBUTE_RULES = "rules"; //$NON-NLS-1$
146

147     /**
148      * html attribute <code>bgcolor</code>.
149      */

150     public static final String JavaDoc ATTRIBUTE_BGCOLOR = "bgcolor"; //$NON-NLS-1$
151

152     /**
153      * html attribute <code>frame</code>.
154      */

155     public static final String JavaDoc ATTRIBUTE_FRAME = "frame"; //$NON-NLS-1$
156

157     /**
158      * html attribute <code>height</code>.
159      */

160     public static final String JavaDoc ATTRIBUTE_HEIGHT = "height"; //$NON-NLS-1$
161

162     /**
163      * html attribute <code>hspace</code>.
164      */

165     public static final String JavaDoc ATTRIBUTE_HSPACE = "hspace"; //$NON-NLS-1$
166

167     /**
168      * html attribute <code>width</code>.
169      */

170     public static final String JavaDoc ATTRIBUTE_WIDTH = "width"; //$NON-NLS-1$
171

172     /**
173      * html attribute <code>border</code>.
174      */

175     public static final String JavaDoc ATTRIBUTE_BORDER = "border"; //$NON-NLS-1$
176

177     /**
178      * html attribute <code>cellspacing</code>.
179      */

180     public static final String JavaDoc ATTRIBUTE_CELLSPACING = "cellspacing"; //$NON-NLS-1$
181

182     /**
183      * html attribute <code>cellpadding</code>.
184      */

185     public static final String JavaDoc ATTRIBUTE_CELLPADDING = "cellpadding"; //$NON-NLS-1$
186

187     /**
188      * html attribute <code>align</code>.
189      */

190     public static final String JavaDoc ATTRIBUTE_ALIGN = "align"; //$NON-NLS-1$
191

192     /**
193      * html attribute <code>background</code>.
194      */

195     public static final String JavaDoc ATTRIBUTE_BACKGROUND = "background"; //$NON-NLS-1$
196

197     /**
198      * html attribute <code>summary</code>.
199      */

200     public static final String JavaDoc ATTRIBUTE_SUMMARY = "summary"; //$NON-NLS-1$
201

202     /**
203      * html attribute <code>vspace</code>.
204      */

205     public static final String JavaDoc ATTRIBUTE_VSPACE = "vspace"; //$NON-NLS-1$
206

207     /**
208      * html attribute <code>class</code>.
209      */

210     public static final String JavaDoc ATTRIBUTE_CLASS = "class"; //$NON-NLS-1$
211

212     /**
213      * html attribute <code>scope</code>.
214      */

215     public static final String JavaDoc ATTRIBUTE_SCOPE = "scope"; //$NON-NLS-1$
216

217     /**
218      * html attribute <code>id</code>.
219      */

220     public static final String JavaDoc ATTRIBUTE_ID = "id"; //$NON-NLS-1$
221

222     /**
223      * html attribute <code>style</code>.
224      */

225     public static final String JavaDoc ATTRIBUTE_STYLE = "style"; //$NON-NLS-1$
226

227     /**
228      * html attribute <code>title</code>.
229      */

230     public static final String JavaDoc ATTRIBUTE_TITLE = "title"; //$NON-NLS-1$
231

232     /**
233      * html attribute <code>valign</code>.
234      */

235     public static final String JavaDoc ATTRIBUTE_VALIGN = "valign"; //$NON-NLS-1$
236

237     /**
238      * html attribute <code>nowrap</code>.
239      */

240     public static final String JavaDoc ATTRIBUTE_NOWRAP = "nowrap"; //$NON-NLS-1$
241

242     /**
243      * html attribute <code>lang</code>.
244      */

245     public static final String JavaDoc ATTRIBUTE_LANG = "lang"; //$NON-NLS-1$
246

247     /**
248      * html attribute <code>dir</code>.
249      */

250     public static final String JavaDoc ATTRIBUTE_DIR = "dir"; //$NON-NLS-1$
251

252     /**
253      * escaped ampersand <code>&amp;amp;</code>.
254      */

255     public static final String JavaDoc AMPERSAND = "&amp;"; //$NON-NLS-1$
256

257     /**
258      * Empty String "". Used as constant mainly to avoid useless i18n checks and to track use of empty strings
259      * (sometimes index of bad code).
260      */

261     public static final String JavaDoc EMPTY_STRING = ""; //$NON-NLS-1$
262

263     /**
264      * utility class - don't instantiate.
265      */

266     private TagConstants()
267     {
268         // unused
269
}
270 }
Popular Tags