KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > strutsel > taglib > html > ELPasswordTagBeanInfo


1 /*
2  * $Id: ELPasswordTagBeanInfo.java 123585 2004-12-29 00:43:33Z martinc $
3  *
4  * Copyright 1999-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 package org.apache.strutsel.taglib.html;
20
21 import java.beans.PropertyDescriptor JavaDoc;
22 import java.beans.IntrospectionException JavaDoc;
23 import java.util.ArrayList JavaDoc;
24 import java.beans.SimpleBeanInfo JavaDoc;
25
26 /**
27  * This is the <code>BeanInfo</code> descriptor for the
28  * <code>org.apache.strutsel.taglib.html.ELPasswordTag</code> class. It is needed
29  * to override the default mapping of custom tag attribute names to class
30  * attribute names.
31  *<p>
32  * This is because the value of the unevaluated EL expression has to be kept
33  * separately from the evaluated value, which is stored in the base class. This
34  * is related to the fact that the JSP compiler can choose to reuse different
35  * tag instances if they received the same original attribute values, and the
36  * JSP compiler can choose to not re-call the setter methods, because it can
37  * assume the same values are already set.
38  */

39 public class ELPasswordTagBeanInfo extends SimpleBeanInfo JavaDoc
40 {
41     public PropertyDescriptor JavaDoc[] getPropertyDescriptors()
42     {
43         ArrayList JavaDoc proplist = new ArrayList JavaDoc();
44
45         try {
46             proplist.add(new PropertyDescriptor JavaDoc("accesskey", ELPasswordTag.class,
47                                                 null, "setAccesskeyExpr"));
48         } catch (IntrospectionException JavaDoc ex) {}
49         try {
50             proplist.add(new PropertyDescriptor JavaDoc("alt", ELPasswordTag.class,
51                                                 null, "setAltExpr"));
52         } catch (IntrospectionException JavaDoc ex) {}
53         try {
54             proplist.add(new PropertyDescriptor JavaDoc("altKey", ELPasswordTag.class,
55                                                 null, "setAltKeyExpr"));
56         } catch (IntrospectionException JavaDoc ex) {}
57         try {
58             proplist.add(new PropertyDescriptor JavaDoc("bundle", ELPasswordTag.class,
59                                                 null, "setBundleExpr"));
60         } catch (IntrospectionException JavaDoc ex) {}
61         try {
62             proplist.add(new PropertyDescriptor JavaDoc("disabled", ELPasswordTag.class,
63                                                 null, "setDisabledExpr"));
64         } catch (IntrospectionException JavaDoc ex) {}
65         try {
66             proplist.add(new PropertyDescriptor JavaDoc("errorKey", ELPasswordTag.class,
67                                                 null, "setErrorKeyExpr"));
68         } catch (IntrospectionException JavaDoc ex) {}
69         try {
70             proplist.add(new PropertyDescriptor JavaDoc("errorStyle", ELPasswordTag.class,
71                                                 null, "setErrorStyleExpr"));
72         } catch (IntrospectionException JavaDoc ex) {}
73         try {
74             proplist.add(new PropertyDescriptor JavaDoc("errorStyleClass", ELPasswordTag.class,
75                                                 null, "setErrorStyleClassExpr"));
76         } catch (IntrospectionException JavaDoc ex) {}
77         try {
78             proplist.add(new PropertyDescriptor JavaDoc("errorStyleId", ELPasswordTag.class,
79                                                 null, "setErrorStyleIdExpr"));
80         } catch (IntrospectionException JavaDoc ex) {}
81         try {
82             proplist.add(new PropertyDescriptor JavaDoc("indexed", ELPasswordTag.class,
83                                                 null, "setIndexedExpr"));
84         } catch (IntrospectionException JavaDoc ex) {}
85         try {
86             proplist.add(new PropertyDescriptor JavaDoc("maxlength", ELPasswordTag.class,
87                                                 null, "setMaxlengthExpr"));
88         } catch (IntrospectionException JavaDoc ex) {}
89         try {
90             proplist.add(new PropertyDescriptor JavaDoc("name", ELPasswordTag.class,
91                                                 null, "setNameExpr"));
92         } catch (IntrospectionException JavaDoc ex) {}
93         try {
94             proplist.add(new PropertyDescriptor JavaDoc("onblur", ELPasswordTag.class,
95                                                 null, "setOnblurExpr"));
96         } catch (IntrospectionException JavaDoc ex) {}
97         try {
98             proplist.add(new PropertyDescriptor JavaDoc("onchange", ELPasswordTag.class,
99                                                 null, "setOnchangeExpr"));
100         } catch (IntrospectionException JavaDoc ex) {}
101         try {
102             proplist.add(new PropertyDescriptor JavaDoc("onclick", ELPasswordTag.class,
103                                                 null, "setOnclickExpr"));
104         } catch (IntrospectionException JavaDoc ex) {}
105         try {
106             proplist.add(new PropertyDescriptor JavaDoc("ondblclick", ELPasswordTag.class,
107                                                 null, "setOndblclickExpr"));
108         } catch (IntrospectionException JavaDoc ex) {}
109         try {
110             proplist.add(new PropertyDescriptor JavaDoc("onfocus", ELPasswordTag.class,
111                                                 null, "setOnfocusExpr"));
112         } catch (IntrospectionException JavaDoc ex) {}
113         try {
114             proplist.add(new PropertyDescriptor JavaDoc("onkeydown", ELPasswordTag.class,
115                                                 null, "setOnkeydownExpr"));
116         } catch (IntrospectionException JavaDoc ex) {}
117         try {
118             proplist.add(new PropertyDescriptor JavaDoc("onkeypress", ELPasswordTag.class,
119                                                 null, "setOnkeypressExpr"));
120         } catch (IntrospectionException JavaDoc ex) {}
121         try {
122             proplist.add(new PropertyDescriptor JavaDoc("onkeyup", ELPasswordTag.class,
123                                                 null, "setOnkeyupExpr"));
124         } catch (IntrospectionException JavaDoc ex) {}
125         try {
126             proplist.add(new PropertyDescriptor JavaDoc("onmousedown", ELPasswordTag.class,
127                                                 null, "setOnmousedownExpr"));
128         } catch (IntrospectionException JavaDoc ex) {}
129         try {
130             proplist.add(new PropertyDescriptor JavaDoc("onmousemove", ELPasswordTag.class,
131                                                 null, "setOnmousemoveExpr"));
132         } catch (IntrospectionException JavaDoc ex) {}
133         try {
134             proplist.add(new PropertyDescriptor JavaDoc("onmouseout", ELPasswordTag.class,
135                                                 null, "setOnmouseoutExpr"));
136         } catch (IntrospectionException JavaDoc ex) {}
137         try {
138             proplist.add(new PropertyDescriptor JavaDoc("onmouseover", ELPasswordTag.class,
139                                                 null, "setOnmouseoverExpr"));
140         } catch (IntrospectionException JavaDoc ex) {}
141         try {
142             proplist.add(new PropertyDescriptor JavaDoc("onmouseup", ELPasswordTag.class,
143                                                 null, "setOnmouseupExpr"));
144         } catch (IntrospectionException JavaDoc ex) {}
145         try {
146             proplist.add(new PropertyDescriptor JavaDoc("property", ELPasswordTag.class,
147                                                 null, "setPropertyExpr"));
148         } catch (IntrospectionException JavaDoc ex) {}
149         try {
150             proplist.add(new PropertyDescriptor JavaDoc("readonly", ELPasswordTag.class,
151                                                 null, "setReadonlyExpr"));
152         } catch (IntrospectionException JavaDoc ex) {}
153         try {
154             proplist.add(new PropertyDescriptor JavaDoc("redisplay", ELPasswordTag.class,
155                                                 null, "setRedisplayExpr"));
156         } catch (IntrospectionException JavaDoc ex) {}
157         try {
158             proplist.add(new PropertyDescriptor JavaDoc("style", ELPasswordTag.class,
159                                                 null, "setStyleExpr"));
160         } catch (IntrospectionException JavaDoc ex) {}
161         try {
162             proplist.add(new PropertyDescriptor JavaDoc("styleClass", ELPasswordTag.class,
163                                                 null, "setStyleClassExpr"));
164         } catch (IntrospectionException JavaDoc ex) {}
165         try {
166             proplist.add(new PropertyDescriptor JavaDoc("styleId", ELPasswordTag.class,
167                                                 null, "setStyleIdExpr"));
168         } catch (IntrospectionException JavaDoc ex) {}
169         try {
170             proplist.add(new PropertyDescriptor JavaDoc("size", ELPasswordTag.class,
171                                                 null, "setSizeExpr"));
172         } catch (IntrospectionException JavaDoc ex) {}
173         try {
174             proplist.add(new PropertyDescriptor JavaDoc("tabindex", ELPasswordTag.class,
175                                                 null, "setTabindexExpr"));
176         } catch (IntrospectionException JavaDoc ex) {}
177         try {
178             proplist.add(new PropertyDescriptor JavaDoc("title", ELPasswordTag.class,
179                                                 null, "setTitleExpr"));
180         } catch (IntrospectionException JavaDoc ex) {}
181         try {
182             proplist.add(new PropertyDescriptor JavaDoc("titleKey", ELPasswordTag.class,
183                                                 null, "setTitleKeyExpr"));
184         } catch (IntrospectionException JavaDoc ex) {}
185         try {
186             proplist.add(new PropertyDescriptor JavaDoc("value", ELPasswordTag.class,
187                                                 null, "setValueExpr"));
188         } catch (IntrospectionException JavaDoc ex) {}
189         
190         PropertyDescriptor JavaDoc[] result =
191             new PropertyDescriptor JavaDoc[proplist.size()];
192         return ((PropertyDescriptor JavaDoc[]) proplist.toArray(result));
193     }
194 }
195
Popular Tags