KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Id: ELImgTagBeanInfo.java 54933 2004-10-16 17:04:52Z germuska $
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.ELImgTag</code> class. It is
29  * needed to override the default mapping of custom tag attribute names to
30  * class attribute names.
31  */

32 public class ELImgTagBeanInfo extends SimpleBeanInfo JavaDoc
33 {
34     public PropertyDescriptor JavaDoc[] getPropertyDescriptors()
35     {
36         ArrayList JavaDoc proplist = new ArrayList JavaDoc();
37
38         try {
39             proplist.add(new PropertyDescriptor JavaDoc("action", ELImgTag.class,
40                                                 null, "setActionExpr"));
41         } catch (IntrospectionException JavaDoc ex) {}
42         try {
43             proplist.add(new PropertyDescriptor JavaDoc("module", ELImgTag.class,
44                                                 null, "setModuleExpr"));
45         } catch (IntrospectionException JavaDoc ex) {}
46         try {
47             proplist.add(new PropertyDescriptor JavaDoc("align", ELImgTag.class,
48                                                 null, "setAlignExpr"));
49         } catch (IntrospectionException JavaDoc ex) {}
50         try {
51             proplist.add(new PropertyDescriptor JavaDoc("alt", ELImgTag.class,
52                                                 null, "setAltExpr"));
53         } catch (IntrospectionException JavaDoc ex) {}
54         try {
55             proplist.add(new PropertyDescriptor JavaDoc("altKey", ELImgTag.class,
56                                                 null, "setAltKeyExpr"));
57         } catch (IntrospectionException JavaDoc ex) {}
58         try {
59             proplist.add(new PropertyDescriptor JavaDoc("border", ELImgTag.class,
60                                                 null, "setBorderExpr"));
61         } catch (IntrospectionException JavaDoc ex) {}
62         try {
63             proplist.add(new PropertyDescriptor JavaDoc("bundle", ELImgTag.class,
64                                                 null, "setBundleExpr"));
65         } catch (IntrospectionException JavaDoc ex) {}
66         try {
67             proplist.add(new PropertyDescriptor JavaDoc("contextRelative", ELImgTag.class,
68                                                 null, "setContextRelativeExpr"));
69         } catch (IntrospectionException JavaDoc ex) {}
70         try {
71             proplist.add(new PropertyDescriptor JavaDoc("height", ELImgTag.class,
72                                                 null, "setHeightExpr"));
73         } catch (IntrospectionException JavaDoc ex) {}
74         try {
75             proplist.add(new PropertyDescriptor JavaDoc("hspace", ELImgTag.class,
76                                                 null, "setHspaceExpr"));
77         } catch (IntrospectionException JavaDoc ex) {}
78         try {
79             proplist.add(new PropertyDescriptor JavaDoc("imageName", ELImgTag.class,
80                                                 null, "setImageNameExpr"));
81         } catch (IntrospectionException JavaDoc ex) {}
82         try {
83             proplist.add(new PropertyDescriptor JavaDoc("ismap", ELImgTag.class,
84                                                 null, "setIsmapExpr"));
85         } catch (IntrospectionException JavaDoc ex) {}
86         try {
87             proplist.add(new PropertyDescriptor JavaDoc("locale", ELImgTag.class,
88                                                 null, "setLocaleExpr"));
89         } catch (IntrospectionException JavaDoc ex) {}
90         try {
91             proplist.add(new PropertyDescriptor JavaDoc("lowsrc", ELImgTag.class,
92                                                 null, "setLowsrcExpr"));
93         } catch (IntrospectionException JavaDoc ex) {}
94         try {
95             proplist.add(new PropertyDescriptor JavaDoc("name", ELImgTag.class,
96                                                 null, "setNameExpr"));
97         } catch (IntrospectionException JavaDoc ex) {}
98         try {
99             proplist.add(new PropertyDescriptor JavaDoc("onclick", ELImgTag.class,
100                                                 null, "setOnclickExpr"));
101         } catch (IntrospectionException JavaDoc ex) {}
102         try {
103             proplist.add(new PropertyDescriptor JavaDoc("ondblclick", ELImgTag.class,
104                                                 null, "setOndblclickExpr"));
105         } catch (IntrospectionException JavaDoc ex) {}
106         try {
107             proplist.add(new PropertyDescriptor JavaDoc("onkeydown", ELImgTag.class,
108                                                 null, "setOnkeydownExpr"));
109         } catch (IntrospectionException JavaDoc ex) {}
110         try {
111             proplist.add(new PropertyDescriptor JavaDoc("onkeypress", ELImgTag.class,
112                                                 null, "setOnkeypressExpr"));
113         } catch (IntrospectionException JavaDoc ex) {}
114         try {
115             proplist.add(new PropertyDescriptor JavaDoc("onkeyup", ELImgTag.class,
116                                                 null, "setOnkeyupExpr"));
117         } catch (IntrospectionException JavaDoc ex) {}
118         try {
119             proplist.add(new PropertyDescriptor JavaDoc("onmousedown", ELImgTag.class,
120                                                 null, "setOnmousedownExpr"));
121         } catch (IntrospectionException JavaDoc ex) {}
122         try {
123             proplist.add(new PropertyDescriptor JavaDoc("onmousemove", ELImgTag.class,
124                                                 null, "setOnmousemoveExpr"));
125         } catch (IntrospectionException JavaDoc ex) {}
126         try {
127             proplist.add(new PropertyDescriptor JavaDoc("onmouseout", ELImgTag.class,
128                                                 null, "setOnmouseoutExpr"));
129         } catch (IntrospectionException JavaDoc ex) {}
130         try {
131             proplist.add(new PropertyDescriptor JavaDoc("onmouseover", ELImgTag.class,
132                                                 null, "setOnmouseoverExpr"));
133         } catch (IntrospectionException JavaDoc ex) {}
134         try {
135             proplist.add(new PropertyDescriptor JavaDoc("onmouseup", ELImgTag.class,
136                                                 null, "setOnmouseupExpr"));
137         } catch (IntrospectionException JavaDoc ex) {}
138         try {
139             proplist.add(new PropertyDescriptor JavaDoc("paramId", ELImgTag.class,
140                                                 null, "setParamIdExpr"));
141         } catch (IntrospectionException JavaDoc ex) {}
142         try {
143             proplist.add(new PropertyDescriptor JavaDoc("page", ELImgTag.class,
144                                                 null, "setPageExpr"));
145         } catch (IntrospectionException JavaDoc ex) {}
146         try {
147             proplist.add(new PropertyDescriptor JavaDoc("pageKey", ELImgTag.class,
148                                                 null, "setPageKeyExpr"));
149         } catch (IntrospectionException JavaDoc ex) {}
150         try {
151             proplist.add(new PropertyDescriptor JavaDoc("paramName", ELImgTag.class,
152                                                 null, "setParamNameExpr"));
153         } catch (IntrospectionException JavaDoc ex) {}
154         try {
155             proplist.add(new PropertyDescriptor JavaDoc("paramProperty", ELImgTag.class,
156                                                 null, "setParamPropertyExpr"));
157         } catch (IntrospectionException JavaDoc ex) {}
158         try {
159             proplist.add(new PropertyDescriptor JavaDoc("paramScope", ELImgTag.class,
160                                                 null, "setParamScopeExpr"));
161         } catch (IntrospectionException JavaDoc ex) {}
162         try {
163             proplist.add(new PropertyDescriptor JavaDoc("property", ELImgTag.class,
164                                                 null, "setPropertyExpr"));
165         } catch (IntrospectionException JavaDoc ex) {}
166         try {
167             proplist.add(new PropertyDescriptor JavaDoc("scope", ELImgTag.class,
168                                                 null, "setScopeExpr"));
169         } catch (IntrospectionException JavaDoc ex) {}
170         try {
171             proplist.add(new PropertyDescriptor JavaDoc("src", ELImgTag.class,
172                                                 null, "setSrcExpr"));
173         } catch (IntrospectionException JavaDoc ex) {}
174         try {
175             proplist.add(new PropertyDescriptor JavaDoc("srcKey", ELImgTag.class,
176                                                 null, "setSrcKeyExpr"));
177         } catch (IntrospectionException JavaDoc ex) {}
178         try {
179             proplist.add(new PropertyDescriptor JavaDoc("style", ELImgTag.class,
180                                                 null, "setStyleExpr"));
181         } catch (IntrospectionException JavaDoc ex) {}
182         try {
183             proplist.add(new PropertyDescriptor JavaDoc("styleClass", ELImgTag.class,
184                                                 null, "setStyleClassExpr"));
185         } catch (IntrospectionException JavaDoc ex) {}
186         try {
187             proplist.add(new PropertyDescriptor JavaDoc("styleId", ELImgTag.class,
188                                                 null, "setStyleIdExpr"));
189         } catch (IntrospectionException JavaDoc ex) {}
190         try {
191             proplist.add(new PropertyDescriptor JavaDoc("title", ELImgTag.class,
192                                                 null, "setTitleExpr"));
193         } catch (IntrospectionException JavaDoc ex) {}
194         try {
195             proplist.add(new PropertyDescriptor JavaDoc("titleKey", ELImgTag.class,
196                                                 null, "setTitleKeyExpr"));
197         } catch (IntrospectionException JavaDoc ex) {}
198         try {
199             proplist.add(new PropertyDescriptor JavaDoc("useLocalEncoding", ELImgTag.class,
200                                                 null, "setUseLocalEncodingExpr"));
201         } catch (IntrospectionException JavaDoc ex) {}
202         try {
203             proplist.add(new PropertyDescriptor JavaDoc("usemap", ELImgTag.class,
204                                                 null, "setUsemapExpr"));
205         } catch (IntrospectionException JavaDoc ex) {}
206         try {
207             proplist.add(new PropertyDescriptor JavaDoc("vspace", ELImgTag.class,
208                                                 null, "setVspaceExpr"));
209         } catch (IntrospectionException JavaDoc ex) {}
210         try {
211             proplist.add(new PropertyDescriptor JavaDoc("width", ELImgTag.class,
212                                                 null, "setWidthExpr"));
213         } catch (IntrospectionException JavaDoc ex) {}
214         
215         PropertyDescriptor JavaDoc[] result =
216             new PropertyDescriptor JavaDoc[proplist.size()];
217         return ((PropertyDescriptor JavaDoc[]) proplist.toArray(result));
218     }
219 }
220
Popular Tags