KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > clipbuilder > html > util > Constants


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