KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > clipbuilder > html > web > Constant > WebConstants


1 package org.jahia.clipbuilder.html.web.Constant;
2
3 public class WebConstants {
4
5     //encoding
6
public static String JavaDoc ENCODING_ISO = "ISO-8859-1";
7     public static String JavaDoc ENCODING_UTF = "UTF-8";
8
9     // Attribut identifier
10
public static String JavaDoc TARGET_URL = "targetUrl";
11     public static String JavaDoc RECORDING = "recording";
12     public static String JavaDoc LAST_PROCESSED_URL = "lastProcessedUrlBean";
13
14     public static String JavaDoc HTTPSTATE = "webClipping_httpState";
15     public static String JavaDoc SIMPLE_WEBCLIENT = "webClipping_webClient";
16     public static String JavaDoc ADVANCED_WEBCLIENT = "webClipping_webClient";
17     public static String JavaDoc LAST_URL = "webClipping_lastUrl";
18     public static String JavaDoc USER = "user";
19     public static Boolean JavaDoc TRUE = Boolean.TRUE;
20     public static Boolean JavaDoc FALSE = Boolean.FALSE;
21     public static String JavaDoc URL_ENCODER = "urlEncoder";
22
23     public static String JavaDoc JAVASCRIPT_LOCATION = "location";
24     public static String JavaDoc[] JAVASCRIPT_EVENT_NAMES_ARRAY = {
25             "onAbort",
26             // Executes JavaScript code when the user aborts the loading of an image.
27
"onBlur",
28             // Executes JavaScript code when a form element loses focus or when a window or frame loses focus.
29
"onChange",
30             // Executes JavaScript code when a Select, Text, or Textarea field loses focus and its value has been modified
31
"onClick",
32             // Executes JavaScript code when an object on a form is clicked.
33
"onDblClick",
34             // Executes JavaScript code when the user double-clicks a form element or a link.
35
"onDragDrop",
36             // Executes JavaScript code when the user drops an object onto the browser window, such as dropping a file.
37
"onError",
38             // Executes JavaScript code when the loading of a document or image causes an error.
39
"onFocus",
40             // Executes JavaScript code when a window, frame, or frameset receives focus or when a form element receives input focus.
41
"onKeyDown",
42             // Executes JavaScript code when the user depresses a key.
43
"onKeyPress",
44             // Executes JavaScript code when the user presses or holds down a key.
45
"onKeyUp",
46             // Executes JavaScript code when the user releases a key.
47
"onLoad",
48             // Executes JavaScript code when the browser finishes loading a window or all frames within a FRAMESET tag.
49
"onMouseDown",
50             // Executes JavaScript code when the user depresses a mouse button.
51
"onMouseMove",
52             // Executes JavaScript code when the user moves the cursor.
53
"onMouseOut",
54             // Executes JavaScript code each time the mouse pointer leaves an area (client-side image map) or link from inside that area or link.
55
"onMouseOver",
56             // Executes JavaScript code once each time the mouse pointer moves over an object or area from outside that object or area.
57
"onMouseUp",
58             // Executes JavaScript code when the user releases a mouse button.
59
"onMove",
60             // Executes JavaScript code when the user or script moves a window or frame.
61
"onReset",
62             // Executes JavaScript code when a user resets a form (clicks a Reset button).
63
"onResize",
64             // Executes JavaScript code when a user or script resizes a window or frame.
65
"onSelect",
66             // Executes JavaScript code when a user selects some of the text within a text or textarea field.
67
"onSubmit",
68             // Executes JavaScript code when a user submits a form.
69
"onUnload",
70             // Executes JavaScript code when the user exits a document.
71
};
72
73     public static String JavaDoc NOT_URL[] = {"javascript:","mailto:","about:","#"};
74
75     public static int URLENCODER_TYPE_LINK = 0;
76     public static int URLENCODER_TYPE_FORM = 1;
77     public static int URLENCODER_TYPE_JAVASCRIPT = 2;
78     public static int URLENCODER_TYPE_METALINK = 3;
79
80     //Value for from
81
public static String JavaDoc FROM_LINK = "link";
82     public static String JavaDoc FROM_AREA = "area";
83     public static String JavaDoc FROM_MANUAL = "manually";
84     public static String JavaDoc FROM_FORM = "submittedForm";
85     public static String JavaDoc FROM_META = "metaLink";
86     public static String JavaDoc FROM_FRAME = "frame";
87
88     //possible value of type atrtibute of input element
89
public static String JavaDoc NO_VALUE_FOUNDED = "no_value_Found";
90     public static String JavaDoc TYPE_TEXT = "text";
91     public static String JavaDoc TYPE_BUTTON = "button";
92     public static String JavaDoc TYPE_PASSWORD = "password";
93     public static String JavaDoc TYPE_CHECKBOX = "checkbox";
94     public static String JavaDoc TYPE_RADIO = "radio";
95     public static String JavaDoc TYPE_SUBMIT = "submit";
96     public static String JavaDoc TYPE_RESET = "reset";
97     public static String JavaDoc TYPE_FILE = "file";
98     public static String JavaDoc TYPE_HIDDEN = "hidden";
99     public static String JavaDoc TYPE_IMAGE = "image";
100     public static String JavaDoc TYPE_SELECT = "select";
101
102
103
104 }
105
Popular Tags