View Javadoc

1   /*
2    * $Id: ELImgTagBeanInfo.java 376779 2006-02-10 18:08:58Z husted $
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  package org.apache.strutsel.taglib.html;
19  
20  import java.beans.IntrospectionException;
21  import java.beans.PropertyDescriptor;
22  import java.beans.SimpleBeanInfo;
23  
24  import java.util.ArrayList;
25  
26  /***
27   * This is the <code>BeanInfo</code> descriptor for the
28   * <code>org.apache.strutsel.taglib.html.ELImgTag</code> class.  It is needed
29   * to override the default mapping of custom tag attribute names to class
30   * attribute names.
31   */
32  public class ELImgTagBeanInfo extends SimpleBeanInfo {
33      public PropertyDescriptor[] getPropertyDescriptors() {
34          ArrayList proplist = new ArrayList();
35  
36          try {
37              proplist.add(new PropertyDescriptor("action", ELImgTag.class, null,
38                      "setActionExpr"));
39          } catch (IntrospectionException ex) {
40          }
41  
42          try {
43              proplist.add(new PropertyDescriptor("module", ELImgTag.class, null,
44                      "setModuleExpr"));
45          } catch (IntrospectionException ex) {
46          }
47  
48          try {
49              proplist.add(new PropertyDescriptor("align", ELImgTag.class, null,
50                      "setAlignExpr"));
51          } catch (IntrospectionException ex) {
52          }
53  
54          try {
55              proplist.add(new PropertyDescriptor("alt", ELImgTag.class, null,
56                      "setAltExpr"));
57          } catch (IntrospectionException ex) {
58          }
59  
60          try {
61              proplist.add(new PropertyDescriptor("altKey", ELImgTag.class, null,
62                      "setAltKeyExpr"));
63          } catch (IntrospectionException ex) {
64          }
65  
66          try {
67              proplist.add(new PropertyDescriptor("border", ELImgTag.class, null,
68                      "setBorderExpr"));
69          } catch (IntrospectionException ex) {
70          }
71  
72          try {
73              proplist.add(new PropertyDescriptor("bundle", ELImgTag.class, null,
74                      "setBundleExpr"));
75          } catch (IntrospectionException ex) {
76          }
77  
78          try {
79              proplist.add(new PropertyDescriptor("height", ELImgTag.class, null,
80                      "setHeightExpr"));
81          } catch (IntrospectionException ex) {
82          }
83  
84          try {
85              proplist.add(new PropertyDescriptor("hspace", ELImgTag.class, null,
86                      "setHspaceExpr"));
87          } catch (IntrospectionException ex) {
88          }
89  
90          try {
91              proplist.add(new PropertyDescriptor("imageName", ELImgTag.class,
92                      null, "setImageNameExpr"));
93          } catch (IntrospectionException ex) {
94          }
95  
96          try {
97              proplist.add(new PropertyDescriptor("ismap", ELImgTag.class, null,
98                      "setIsmapExpr"));
99          } catch (IntrospectionException ex) {
100         }
101 
102         try {
103             proplist.add(new PropertyDescriptor("locale", ELImgTag.class, null,
104                     "setLocaleExpr"));
105         } catch (IntrospectionException ex) {
106         }
107 
108         try {
109             proplist.add(new PropertyDescriptor("name", ELImgTag.class, null,
110                     "setNameExpr"));
111         } catch (IntrospectionException ex) {
112         }
113 
114         try {
115             proplist.add(new PropertyDescriptor("onclick", ELImgTag.class,
116                     null, "setOnclickExpr"));
117         } catch (IntrospectionException ex) {
118         }
119 
120         try {
121             proplist.add(new PropertyDescriptor("ondblclick", ELImgTag.class,
122                     null, "setOndblclickExpr"));
123         } catch (IntrospectionException ex) {
124         }
125 
126         try {
127             proplist.add(new PropertyDescriptor("onkeydown", ELImgTag.class,
128                     null, "setOnkeydownExpr"));
129         } catch (IntrospectionException ex) {
130         }
131 
132         try {
133             proplist.add(new PropertyDescriptor("onkeypress", ELImgTag.class,
134                     null, "setOnkeypressExpr"));
135         } catch (IntrospectionException ex) {
136         }
137 
138         try {
139             proplist.add(new PropertyDescriptor("onkeyup", ELImgTag.class,
140                     null, "setOnkeyupExpr"));
141         } catch (IntrospectionException ex) {
142         }
143 
144         try {
145             proplist.add(new PropertyDescriptor("onmousedown", ELImgTag.class,
146                     null, "setOnmousedownExpr"));
147         } catch (IntrospectionException ex) {
148         }
149 
150         try {
151             proplist.add(new PropertyDescriptor("onmousemove", ELImgTag.class,
152                     null, "setOnmousemoveExpr"));
153         } catch (IntrospectionException ex) {
154         }
155 
156         try {
157             proplist.add(new PropertyDescriptor("onmouseout", ELImgTag.class,
158                     null, "setOnmouseoutExpr"));
159         } catch (IntrospectionException ex) {
160         }
161 
162         try {
163             proplist.add(new PropertyDescriptor("onmouseover", ELImgTag.class,
164                     null, "setOnmouseoverExpr"));
165         } catch (IntrospectionException ex) {
166         }
167 
168         try {
169             proplist.add(new PropertyDescriptor("onmouseup", ELImgTag.class,
170                     null, "setOnmouseupExpr"));
171         } catch (IntrospectionException ex) {
172         }
173 
174         try {
175             proplist.add(new PropertyDescriptor("paramId", ELImgTag.class,
176                     null, "setParamIdExpr"));
177         } catch (IntrospectionException ex) {
178         }
179 
180         try {
181             proplist.add(new PropertyDescriptor("page", ELImgTag.class, null,
182                     "setPageExpr"));
183         } catch (IntrospectionException ex) {
184         }
185 
186         try {
187             proplist.add(new PropertyDescriptor("pageKey", ELImgTag.class,
188                     null, "setPageKeyExpr"));
189         } catch (IntrospectionException ex) {
190         }
191 
192         try {
193             proplist.add(new PropertyDescriptor("paramName", ELImgTag.class,
194                     null, "setParamNameExpr"));
195         } catch (IntrospectionException ex) {
196         }
197 
198         try {
199             proplist.add(new PropertyDescriptor("paramProperty",
200                     ELImgTag.class, null, "setParamPropertyExpr"));
201         } catch (IntrospectionException ex) {
202         }
203 
204         try {
205             proplist.add(new PropertyDescriptor("paramScope", ELImgTag.class,
206                     null, "setParamScopeExpr"));
207         } catch (IntrospectionException ex) {
208         }
209 
210         try {
211             proplist.add(new PropertyDescriptor("property", ELImgTag.class,
212                     null, "setPropertyExpr"));
213         } catch (IntrospectionException ex) {
214         }
215 
216         try {
217             proplist.add(new PropertyDescriptor("scope", ELImgTag.class, null,
218                     "setScopeExpr"));
219         } catch (IntrospectionException ex) {
220         }
221 
222         try {
223             proplist.add(new PropertyDescriptor("src", ELImgTag.class, null,
224                     "setSrcExpr"));
225         } catch (IntrospectionException ex) {
226         }
227 
228         try {
229             proplist.add(new PropertyDescriptor("srcKey", ELImgTag.class, null,
230                     "setSrcKeyExpr"));
231         } catch (IntrospectionException ex) {
232         }
233 
234         try {
235             proplist.add(new PropertyDescriptor("style", ELImgTag.class, null,
236                     "setStyleExpr"));
237         } catch (IntrospectionException ex) {
238         }
239 
240         try {
241             proplist.add(new PropertyDescriptor("styleClass", ELImgTag.class,
242                     null, "setStyleClassExpr"));
243         } catch (IntrospectionException ex) {
244         }
245 
246         try {
247             proplist.add(new PropertyDescriptor("styleId", ELImgTag.class,
248                     null, "setStyleIdExpr"));
249         } catch (IntrospectionException ex) {
250         }
251 
252         try {
253             proplist.add(new PropertyDescriptor("title", ELImgTag.class, null,
254                     "setTitleExpr"));
255         } catch (IntrospectionException ex) {
256         }
257 
258         try {
259             proplist.add(new PropertyDescriptor("titleKey", ELImgTag.class,
260                     null, "setTitleKeyExpr"));
261         } catch (IntrospectionException ex) {
262         }
263 
264         try {
265             proplist.add(new PropertyDescriptor("useLocalEncoding",
266                     ELImgTag.class, null, "setUseLocalEncodingExpr"));
267         } catch (IntrospectionException ex) {
268         }
269 
270         try {
271             proplist.add(new PropertyDescriptor("usemap", ELImgTag.class, null,
272                     "setUsemapExpr"));
273         } catch (IntrospectionException ex) {
274         }
275 
276         try {
277             proplist.add(new PropertyDescriptor("vspace", ELImgTag.class, null,
278                     "setVspaceExpr"));
279         } catch (IntrospectionException ex) {
280         }
281 
282         try {
283             proplist.add(new PropertyDescriptor("width", ELImgTag.class, null,
284                     "setWidthExpr"));
285         } catch (IntrospectionException ex) {
286         }
287 
288         PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()];
289 
290         return ((PropertyDescriptor[]) proplist.toArray(result));
291     }
292 }