KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Id: ELMultiboxTagBeanInfo.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.ELMultiboxTag</code> class. It is needed
29  * to override the default mapping of custom tag attribute names to class
30  * attribute names.
31  *<p>
32  * In particular, it provides for the mapping of the custom tag attribute
33  * <code>disabled</code> to the instance variable <code>disabledExpr</code>.
34  *<p>
35  * This is because the value of the unevaluated EL expression has to be kept
36  * separately from the evaluated value, which is stored in the base class. This
37  * is related to the fact that the JSP compiler can choose to reuse different
38  * tag instances if they received the same original attribute values, and the
39  * JSP compiler can choose to not re-call the setter methods, because it can
40  * assume the same values are already set.
41  */

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