KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > view > HtmlConstants


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.mvc.view;
8
9
10 /**
11  * <p>
12  * This interface holds all the constants that could be used
13  * on when building an HTML view
14  * </p>
15  *
16  * @author Brian Pontarelli
17  */

18 public interface HtmlConstants {
19
20     //-------------------------------------------------------------------------
21
//----------------------- Core attributes for HTML tags -------------------
22
//-------------------------------------------------------------------------
23

24     /** The id attribute of tags */
25     String JavaDoc ID = "id";
26     /** The style attribute of tags */
27     String JavaDoc STYLE = "style";
28     /** The style class attribute of tags */
29     String JavaDoc STYLE_CLASS = "class";
30     /** The title attribute */
31     String JavaDoc TITLE = "title";
32
33     //-------------------------------------------------------------------------
34
//------------ Internationalization attributes for HTML tags --------------
35
//-------------------------------------------------------------------------
36

37     /** The lang attribute */
38     String JavaDoc LANG = "lang";
39     /** The dir attribute */
40     String JavaDoc DIR = "dir";
41
42     //-------------------------------------------------------------------------
43
//--------------------- UI event attributes for HTML tags -----------------
44
//-------------------------------------------------------------------------
45

46     /** The click attribute */
47     String JavaDoc ON_CLICK = "onclick";
48     /** The dbl click attribute */
49     String JavaDoc ON_DBL_CLICK = "ondblclick";
50     /** The mouse down attribute */
51     String JavaDoc ON_MOUSE_DOWN = "onmousedown";
52     /** The mouse up attribute */
53     String JavaDoc ON_MOUSE_UP = "onmouseup";
54     /** The mouse over attribute */
55     String JavaDoc ON_MOUSE_OVER = "onmouseover";
56     /** The mouse move attribute */
57     String JavaDoc ON_MOUSE_MOVE = "onmousemove";
58     /** The mouse out attribute */
59     String JavaDoc ON_MOUSE_OUT = "onmouseout";
60     /** The key press attribute */
61     String JavaDoc ON_KEY_PRESS = "onkeypress";
62     /** The key down attribute */
63     String JavaDoc ON_KEY_DOWN = "onkeydown";
64     /** The key up attribute */
65     String JavaDoc ON_KEY_UP = "onkeyup";
66
67     //-------------------------------------------------------------------------
68
//----------------------- Input attributes for HTML tags ------------------
69
//-------------------------------------------------------------------------
70

71     /** The name attribute */
72     String JavaDoc NAME = "name";
73     /** The value attribute */
74     String JavaDoc VALUE = "value";
75     /** The type attribute */
76     String JavaDoc TYPE = "type";
77     /** The size attribute */
78     String JavaDoc SIZE = "size";
79     /** The max length attribute */
80     String JavaDoc MAX_LENGTH = "maxlength";
81     /** The disabled attribute of some input tags */
82     String JavaDoc DISABLED = "disabled";
83     /** The readonly attribute of some input tags */
84     String JavaDoc READONLY = "readonly";
85     /** The alt attribute */
86     String JavaDoc ALT = "alt";
87     /** The tab index attribute */
88     String JavaDoc TAB_INDEX = "tabindex";
89     /** The access key attribute */
90     String JavaDoc ACCESS_KEY = "accesskey";
91     /** The accept attribute */
92     String JavaDoc ACCEPT = "accept";
93     /** The on focus attribute */
94     String JavaDoc ON_FOCUS = "onfocus";
95     /** The on blur attribute */
96     String JavaDoc ON_BLUR = "onblur";
97     /** The on select attribute */
98     String JavaDoc ON_SELECT = "onselect";
99     /** The on change attribute */
100     String JavaDoc ON_CHANGE = "onchange";
101     /** The checked attribute */
102     String JavaDoc CHECKED = "checked";
103
104     //-------------------------------------------------------------------------
105
//------------------ Attributes for img and input image tags --------------
106
//-------------------------------------------------------------------------
107

108     /** The width attribute */
109     String JavaDoc WIDTH = "width";
110     /** The height attribute */
111     String JavaDoc HEIGHT = "height";
112     /** The border attribute of the image tag */
113     String JavaDoc BORDER = "border";
114     /** The src attribute of the image tag */
115     String JavaDoc SRC = "src";
116     /** The longdesc attribute of the image tag */
117     String JavaDoc LONG_DESC = "longdesc";
118     /** The usemap attribute of the image tag */
119     String JavaDoc USE_MAP = "usemap";
120     /** The ismap attribute of the image tag */
121     String JavaDoc IS_MAP = "ismap";
122
123     //-------------------------------------------------------------------------
124
//---------------------- Option attributes for HTML tags ------------------
125
//-------------------------------------------------------------------------
126

127     /** The selected attribute */
128     String JavaDoc SELECTED = "selected";
129     /** The label attribute */
130     String JavaDoc LABEL = "label";
131
132     //-------------------------------------------------------------------------
133
//----------------------- Form attributes for HTML tags -------------------
134
//-------------------------------------------------------------------------
135

136     /** The on submit attribute of the form tag */
137     String JavaDoc ON_SUBMIT = "onsubmit";
138     /** The on reset attribute of the form tag */
139     String JavaDoc ON_RESET = "onreset";
140
141     //-------------------------------------------------------------------------
142
//---------------------- Select attributes for HTML tags ------------------
143
//-------------------------------------------------------------------------
144

145     /** The multiple attribute of selects */
146     String JavaDoc MULTIPLE = "multiple";
147
148     //-------------------------------------------------------------------------
149
//--------------------- Textarea attributes for HTML tags -----------------
150
//-------------------------------------------------------------------------
151

152     /** The rows attribute of the textarea tag */
153     String JavaDoc ROWS = "rows";
154     /** The cols attribute of the textarea tag */
155     String JavaDoc COLS = "cols";
156
157     //-------------------------------------------------------------------------
158
//--------------------- Form attributes for Form HTML tag -----------------
159
//-------------------------------------------------------------------------
160

161     /** The form action attribute */
162     String JavaDoc ACTION = "action";
163     /** The form method attribute */
164     String JavaDoc METHOD = "method";
165
166     //-------------------------------------------------------------------------
167
//--------------------- Img attributes for img HTML tag -----------------
168
//-------------------------------------------------------------------------
169

170     /** The img rel attribute */
171     String JavaDoc REL = "rel";
172     /** The img rev attribute */
173     String JavaDoc REV = "rev";
174     /** The img coords attribute */
175     String JavaDoc COORDS = "coords";
176     /** The img shape attribute */
177     String JavaDoc SHAPE = "shape";
178
179     //-------------------------------------------------------------------------
180
//---------------------------- Misc. constants ----------------------------
181
//-------------------------------------------------------------------------
182

183     /** The form end tag */
184     String JavaDoc FORM_END_TAG = "</form>";
185     /** The select end tag */
186     String JavaDoc SELECT_END_TAG = "</select>";
187     /** The option end tag */
188     String JavaDoc OPTION_END_TAG = "</option>";
189     /** The textarea end tag */
190     String JavaDoc TEXTAREA_END_TAG = "</textarea>";
191
192     /** The text input tag type */
193     String JavaDoc TEXT_TYPE = "text";
194     /** The password input tag type */
195     String JavaDoc PASSWORD_TYPE = "password";
196     /** The radio input tag type */
197     String JavaDoc RADIO_TYPE = "radio";
198     /** The checkbox input tag type */
199     String JavaDoc CHECKBOX_TYPE = "checkbox";
200     /** The submit input tag type */
201     String JavaDoc SUBMIT_TYPE = "submit";
202     /** The image input tag type */
203     String JavaDoc IMAGE_TYPE = "image";
204     
205     /**
206      * The prefix of the auto generated input tag names
207      */

208     String JavaDoc INPUT_NAME_PREFIX = "_input-";
209 }
210
Popular Tags