001: /*
002: * $Id: ELImgTagBeanInfo.java 479635 2006-11-27 14:27:18Z pbenedict $
003: *
004: * Licensed to the Apache Software Foundation (ASF) under one
005: * or more contributor license agreements. See the NOTICE file
006: * distributed with this work for additional information
007: * regarding copyright ownership. The ASF licenses this file
008: * to you under the Apache License, Version 2.0 (the
009: * "License"); you may not use this file except in compliance
010: * with the License. You may obtain a copy of the License at
011: *
012: * http://www.apache.org/licenses/LICENSE-2.0
013: *
014: * Unless required by applicable law or agreed to in writing,
015: * software distributed under the License is distributed on an
016: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017: * KIND, either express or implied. See the License for the
018: * specific language governing permissions and limitations
019: * under the License.
020: */
021: package org.apache.strutsel.taglib.html;
022:
023: import java.beans.IntrospectionException;
024: import java.beans.PropertyDescriptor;
025: import java.beans.SimpleBeanInfo;
026:
027: import java.util.ArrayList;
028:
029: /**
030: * This is the <code>BeanInfo</code> descriptor for the
031: * <code>org.apache.strutsel.taglib.html.ELImgTag</code> class. It is needed
032: * to override the default mapping of custom tag attribute names to class
033: * attribute names.
034: */
035: public class ELImgTagBeanInfo extends SimpleBeanInfo {
036: public PropertyDescriptor[] getPropertyDescriptors() {
037: ArrayList proplist = new ArrayList();
038:
039: try {
040: proplist.add(new PropertyDescriptor("action",
041: ELImgTag.class, null, "setActionExpr"));
042: } catch (IntrospectionException ex) {
043: }
044:
045: try {
046: proplist.add(new PropertyDescriptor("module",
047: ELImgTag.class, null, "setModuleExpr"));
048: } catch (IntrospectionException ex) {
049: }
050:
051: try {
052: proplist.add(new PropertyDescriptor("align",
053: ELImgTag.class, null, "setAlignExpr"));
054: } catch (IntrospectionException ex) {
055: }
056:
057: try {
058: proplist.add(new PropertyDescriptor("alt", ELImgTag.class,
059: null, "setAltExpr"));
060: } catch (IntrospectionException ex) {
061: }
062:
063: try {
064: proplist.add(new PropertyDescriptor("altKey",
065: ELImgTag.class, null, "setAltKeyExpr"));
066: } catch (IntrospectionException ex) {
067: }
068:
069: try {
070: proplist.add(new PropertyDescriptor("border",
071: ELImgTag.class, null, "setBorderExpr"));
072: } catch (IntrospectionException ex) {
073: }
074:
075: try {
076: proplist.add(new PropertyDescriptor("bundle",
077: ELImgTag.class, null, "setBundleExpr"));
078: } catch (IntrospectionException ex) {
079: }
080:
081: try {
082: proplist.add(new PropertyDescriptor("dir", ELImgTag.class,
083: null, "setDirExpr"));
084: } catch (IntrospectionException ex) {
085: }
086:
087: try {
088: proplist.add(new PropertyDescriptor("height",
089: ELImgTag.class, null, "setHeightExpr"));
090: } catch (IntrospectionException ex) {
091: }
092:
093: try {
094: proplist.add(new PropertyDescriptor("hspace",
095: ELImgTag.class, null, "setHspaceExpr"));
096: } catch (IntrospectionException ex) {
097: }
098:
099: try {
100: proplist.add(new PropertyDescriptor("imageName",
101: ELImgTag.class, null, "setImageNameExpr"));
102: } catch (IntrospectionException ex) {
103: }
104:
105: try {
106: proplist.add(new PropertyDescriptor("ismap",
107: ELImgTag.class, null, "setIsmapExpr"));
108: } catch (IntrospectionException ex) {
109: }
110:
111: try {
112: proplist.add(new PropertyDescriptor("lang", ELImgTag.class,
113: null, "setLangExpr"));
114: } catch (IntrospectionException ex) {
115: }
116:
117: try {
118: proplist.add(new PropertyDescriptor("locale",
119: ELImgTag.class, null, "setLocaleExpr"));
120: } catch (IntrospectionException ex) {
121: }
122:
123: try {
124: proplist.add(new PropertyDescriptor("name", ELImgTag.class,
125: null, "setNameExpr"));
126: } catch (IntrospectionException ex) {
127: }
128:
129: try {
130: proplist.add(new PropertyDescriptor("onclick",
131: ELImgTag.class, null, "setOnclickExpr"));
132: } catch (IntrospectionException ex) {
133: }
134:
135: try {
136: proplist.add(new PropertyDescriptor("ondblclick",
137: ELImgTag.class, null, "setOndblclickExpr"));
138: } catch (IntrospectionException ex) {
139: }
140:
141: try {
142: proplist.add(new PropertyDescriptor("onkeydown",
143: ELImgTag.class, null, "setOnkeydownExpr"));
144: } catch (IntrospectionException ex) {
145: }
146:
147: try {
148: proplist.add(new PropertyDescriptor("onkeypress",
149: ELImgTag.class, null, "setOnkeypressExpr"));
150: } catch (IntrospectionException ex) {
151: }
152:
153: try {
154: proplist.add(new PropertyDescriptor("onkeyup",
155: ELImgTag.class, null, "setOnkeyupExpr"));
156: } catch (IntrospectionException ex) {
157: }
158:
159: try {
160: proplist.add(new PropertyDescriptor("onmousedown",
161: ELImgTag.class, null, "setOnmousedownExpr"));
162: } catch (IntrospectionException ex) {
163: }
164:
165: try {
166: proplist.add(new PropertyDescriptor("onmousemove",
167: ELImgTag.class, null, "setOnmousemoveExpr"));
168: } catch (IntrospectionException ex) {
169: }
170:
171: try {
172: proplist.add(new PropertyDescriptor("onmouseout",
173: ELImgTag.class, null, "setOnmouseoutExpr"));
174: } catch (IntrospectionException ex) {
175: }
176:
177: try {
178: proplist.add(new PropertyDescriptor("onmouseover",
179: ELImgTag.class, null, "setOnmouseoverExpr"));
180: } catch (IntrospectionException ex) {
181: }
182:
183: try {
184: proplist.add(new PropertyDescriptor("onmouseup",
185: ELImgTag.class, null, "setOnmouseupExpr"));
186: } catch (IntrospectionException ex) {
187: }
188:
189: try {
190: proplist.add(new PropertyDescriptor("paramId",
191: ELImgTag.class, null, "setParamIdExpr"));
192: } catch (IntrospectionException ex) {
193: }
194:
195: try {
196: proplist.add(new PropertyDescriptor("page", ELImgTag.class,
197: null, "setPageExpr"));
198: } catch (IntrospectionException ex) {
199: }
200:
201: try {
202: proplist.add(new PropertyDescriptor("pageKey",
203: ELImgTag.class, null, "setPageKeyExpr"));
204: } catch (IntrospectionException ex) {
205: }
206:
207: try {
208: proplist.add(new PropertyDescriptor("paramName",
209: ELImgTag.class, null, "setParamNameExpr"));
210: } catch (IntrospectionException ex) {
211: }
212:
213: try {
214: proplist.add(new PropertyDescriptor("paramProperty",
215: ELImgTag.class, null, "setParamPropertyExpr"));
216: } catch (IntrospectionException ex) {
217: }
218:
219: try {
220: proplist.add(new PropertyDescriptor("paramScope",
221: ELImgTag.class, null, "setParamScopeExpr"));
222: } catch (IntrospectionException ex) {
223: }
224:
225: try {
226: proplist.add(new PropertyDescriptor("property",
227: ELImgTag.class, null, "setPropertyExpr"));
228: } catch (IntrospectionException ex) {
229: }
230:
231: try {
232: proplist.add(new PropertyDescriptor("scope",
233: ELImgTag.class, null, "setScopeExpr"));
234: } catch (IntrospectionException ex) {
235: }
236:
237: try {
238: proplist.add(new PropertyDescriptor("src", ELImgTag.class,
239: null, "setSrcExpr"));
240: } catch (IntrospectionException ex) {
241: }
242:
243: try {
244: proplist.add(new PropertyDescriptor("srcKey",
245: ELImgTag.class, null, "setSrcKeyExpr"));
246: } catch (IntrospectionException ex) {
247: }
248:
249: try {
250: proplist.add(new PropertyDescriptor("style",
251: ELImgTag.class, null, "setStyleExpr"));
252: } catch (IntrospectionException ex) {
253: }
254:
255: try {
256: proplist.add(new PropertyDescriptor("styleClass",
257: ELImgTag.class, null, "setStyleClassExpr"));
258: } catch (IntrospectionException ex) {
259: }
260:
261: try {
262: proplist.add(new PropertyDescriptor("styleId",
263: ELImgTag.class, null, "setStyleIdExpr"));
264: } catch (IntrospectionException ex) {
265: }
266:
267: try {
268: proplist.add(new PropertyDescriptor("title",
269: ELImgTag.class, null, "setTitleExpr"));
270: } catch (IntrospectionException ex) {
271: }
272:
273: try {
274: proplist.add(new PropertyDescriptor("titleKey",
275: ELImgTag.class, null, "setTitleKeyExpr"));
276: } catch (IntrospectionException ex) {
277: }
278:
279: try {
280: proplist.add(new PropertyDescriptor("useLocalEncoding",
281: ELImgTag.class, null, "setUseLocalEncodingExpr"));
282: } catch (IntrospectionException ex) {
283: }
284:
285: try {
286: proplist.add(new PropertyDescriptor("usemap",
287: ELImgTag.class, null, "setUsemapExpr"));
288: } catch (IntrospectionException ex) {
289: }
290:
291: try {
292: proplist.add(new PropertyDescriptor("vspace",
293: ELImgTag.class, null, "setVspaceExpr"));
294: } catch (IntrospectionException ex) {
295: }
296:
297: try {
298: proplist.add(new PropertyDescriptor("width",
299: ELImgTag.class, null, "setWidthExpr"));
300: } catch (IntrospectionException ex) {
301: }
302:
303: PropertyDescriptor[] result = new PropertyDescriptor[proplist
304: .size()];
305:
306: return ((PropertyDescriptor[]) proplist.toArray(result));
307: }
308: }
|