01: package nl.knowlogy.validation.jsf.utils;
02:
03: public interface HTML {
04:
05: String CLASS_ATTR = "class";
06:
07: // Common event handler attributes
08: String ONCLICK_ATTR = "onclick";
09:
10: String ONDBLCLICK_ATTR = "ondblclick";
11:
12: String ONMOUSEDOWN_ATTR = "onmousedown";
13:
14: String ONMOUSEUP_ATTR = "onmouseup";
15:
16: String ONMOUSEOVER_ATTR = "onmouseover";
17:
18: String ONMOUSEMOVE_ATTR = "onmousemove";
19:
20: String ONMOUSEOUT_ATTR = "onmouseout";
21:
22: String ONKEYPRESS_ATTR = "onkeypress";
23:
24: String ONKEYDOWN_ATTR = "onkeydown";
25:
26: String ONKEYUP_ATTR = "onkeyup";
27:
28: String[] EVENT_HANDLER_ATTRIBUTES_WITHOUT_ONCLICK = {
29: ONDBLCLICK_ATTR, ONMOUSEDOWN_ATTR, ONMOUSEUP_ATTR,
30: ONMOUSEOVER_ATTR, ONMOUSEMOVE_ATTR, ONMOUSEOUT_ATTR,
31: ONKEYPRESS_ATTR, ONKEYDOWN_ATTR, ONKEYUP_ATTR };
32:
33: String[] EVENT_HANDLER_ATTRIBUTES = { ONDBLCLICK_ATTR,
34: ONMOUSEDOWN_ATTR, ONMOUSEUP_ATTR, ONMOUSEOVER_ATTR,
35: ONMOUSEMOVE_ATTR, ONMOUSEOUT_ATTR, ONKEYPRESS_ATTR,
36: ONKEYDOWN_ATTR, ONKEYUP_ATTR, ONCLICK_ATTR };
37:
38: // universal attributes
39: String DIR_ATTR = "dir";
40:
41: String LANG_ATTR = "lang";
42:
43: String STYLE_ATTR = "style";
44:
45: String TITLE_ATTR = "title";
46:
47: String STYLE_CLASS_ATTR = "styleClass";
48:
49: String[] MESSAGE_PASSTHROUGH_ATTRIBUTES_WITHOUT_TITLE_STYLE_AND_STYLE_CLASS = {
50: ONDBLCLICK_ATTR, ONMOUSEDOWN_ATTR, ONMOUSEUP_ATTR,
51: ONMOUSEOVER_ATTR, ONMOUSEMOVE_ATTR, ONMOUSEOUT_ATTR,
52: ONKEYPRESS_ATTR, ONKEYDOWN_ATTR, ONKEYUP_ATTR,
53: ONCLICK_ATTR, DIR_ATTR, LANG_ATTR };
54:
55: // HTML attributes needed for renderding only
56: String ID_ATTR = "id";
57:
58: String SPAN_ELEM = "span";
59:
60: String UL_ELEM = "ul";
61: String OL_ELEM = "ol";
62: String LI_ELEM = "li";
63:
64: String TABLE_ELEM = "table";
65: String TR_ELEM = "tr";
66: String TH_ELEM = "th";
67: String TD_ELEM = "td";
68:
69: }
|