KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > riotfamily > common > markup > Html


1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: MPL 1.1
3  * The contents of this file are subject to the Mozilla Public License Version
4  * 1.1 (the "License"); you may not use this file except in compliance with
5  * the License. You may obtain a copy of the License at
6  * http://www.mozilla.org/MPL/
7  *
8  * Software distributed under the License is distributed on an "AS IS" basis,
9  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
10  * for the specific language governing rights and limitations under the
11  * License.
12  *
13  * The Original Code is Riot.
14  *
15  * The Initial Developer of the Original Code is
16  * Neteye GmbH.
17  * Portions created by the Initial Developer are Copyright (C) 2006
18  * the Initial Developer. All Rights Reserved.
19  *
20  * Contributor(s):
21  * Felix Gnass [fgnass at neteye dot de]
22  *
23  * ***** END LICENSE BLOCK ***** */

24 package org.riotfamily.common.markup;
25
26 /**
27  * Class providing some frequently used HTML element and attribute names
28  * as String constants.
29  */

30 public class Html {
31
32     public static final String JavaDoc HTML = "html";
33     
34     public static final String JavaDoc HEAD = "head";
35     
36     public static final String JavaDoc META = "meta";
37     
38     public static final String JavaDoc META_NAME = "name";
39     
40     public static final String JavaDoc META_CONTENT = "content";
41     
42     public static final String JavaDoc TITLE = "title";
43     
44     public static final String JavaDoc LINK = "link";
45     
46     public static final String JavaDoc LINK_REL = "rel";
47     
48     public static final String JavaDoc LINK_HREF = "href";
49     
50     public static final String JavaDoc STYLE = "style";
51     
52     public static final String JavaDoc STYLE_TYPE = "type";
53     
54     public static final String JavaDoc BODY = "body";
55     
56     public static final String JavaDoc H1 = "h1";
57     
58     public static final String JavaDoc H2 = "h2";
59     
60     public static final String JavaDoc H3 = "h3";
61     
62     public static final String JavaDoc H4 = "h4";
63     
64     public static final String JavaDoc H5 = "h5";
65     
66     public static final String JavaDoc H6 = "h6";
67     
68     public static final String JavaDoc P = "p";
69     
70     public static final String JavaDoc PRE = "pre";
71     
72     public static final String JavaDoc DIV = "div";
73     
74     public static final String JavaDoc SPAN = "span";
75     
76     public static final String JavaDoc A = "a";
77     
78     public static final String JavaDoc A_NAME = "name";
79     
80     public static final String JavaDoc A_HREF = "href";
81     
82     public static final String JavaDoc A_TARGET = "target";
83     
84     public static final String JavaDoc IMG = "img";
85     
86     public static final String JavaDoc IMG_SRC = "src";
87     
88     public static final String JavaDoc TABLE = "table";
89     
90     public static final String JavaDoc TBODY = "tbody";
91     
92     public static final String JavaDoc THEAD = "thead";
93     
94     public static final String JavaDoc TFOOT = "tfoot";
95     
96     public static final String JavaDoc TR = "tr";
97     
98     public static final String JavaDoc TH = "th";
99     
100     public static final String JavaDoc TD = "td";
101     
102     public static final String JavaDoc UL = "ul";
103     
104     public static final String JavaDoc DL = "dl";
105     
106     public static final String JavaDoc DT = "dt";
107     
108     public static final String JavaDoc DD = "dd";
109     
110     public static final String JavaDoc LI = "li";
111     
112     public static final String JavaDoc FORM = "form";
113     
114     public static final String JavaDoc FORM_METHOD = "method";
115     
116     public static final String JavaDoc FORM_ACTION = "action";
117     
118     public static final String JavaDoc FORM_ENCTYPE = "enctype";
119     
120     public static final String JavaDoc INPUT = "input";
121     
122     public static final String JavaDoc INPUT_TYPE = "type";
123     
124     public static final String JavaDoc INPUT_NAME = "name";
125     
126     public static final String JavaDoc INPUT_VALUE = "value";
127     
128     public static final String JavaDoc INPUT_MAX_LENGTH = "maxlength";
129     
130     public static final String JavaDoc INPUT_CHECKED = "checked";
131     
132     public static final String JavaDoc TEXTAREA = "textarea";
133     
134     public static final String JavaDoc TEXTAREA_ROWS = "rows";
135     
136     public static final String JavaDoc TEXTAREA_COLS = "cols";
137     
138     public static final String JavaDoc SELECT = "select";
139     
140     public static final String JavaDoc SELECT_SIZE = "size";
141     
142     public static final String JavaDoc SELECT_MULTIPLE = "multiple";
143     
144     public static final String JavaDoc OPTION = "option";
145     
146     public static final String JavaDoc OPTION_SELECTED = "selected";
147     
148     public static final String JavaDoc LABEL = "label";
149     
150     public static final String JavaDoc LABEL_FOR = "for";
151     
152     public static final String JavaDoc BUTTON = "button";
153     
154     public static final String JavaDoc SCRIPT = "script";
155     
156     public static final String JavaDoc SCRIPT_SRC = "src";
157     
158     public static final String JavaDoc SCRIPT_TYPE = "type";
159     
160     public static final String JavaDoc SCRIPT_LANGUAGE = "language";
161     
162     public static final String JavaDoc NOSCRIPT = "noscript";
163     
164     public static final String JavaDoc COMMON_ID = "id";
165     
166     public static final String JavaDoc COMMON_CLASS = "class";
167     
168     public static final String JavaDoc COMMON_STYLE = "style";
169     
170     public static final String JavaDoc COMMON_TABINDEX = "tabindex";
171     
172     public static final String JavaDoc COMMON_ONCLICK = "onclick";
173     
174 }
175
Popular Tags