KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Id: ELFormTagBeanInfo.java 160263 2005-04-06 07:44:55Z niallp $
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.ELFormTag</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 ELFormTagBeanInfo 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", ELFormTag.class,
40                                                 null, "setActionExpr"));
41         } catch (IntrospectionException JavaDoc ex) {}
42         try {
43             proplist.add(new PropertyDescriptor JavaDoc("disabled", ELTextTag.class,
44                                                 null, "setDisabledExpr"));
45         } catch (IntrospectionException JavaDoc ex) {}
46         try {
47             proplist.add(new PropertyDescriptor JavaDoc("enctype", ELFormTag.class,
48                                                 null, "setEnctypeExpr"));
49         } catch (IntrospectionException JavaDoc ex) {}
50         try {
51             proplist.add(new PropertyDescriptor JavaDoc("focus", ELFormTag.class,
52                                                 null, "setFocusExpr"));
53         } catch (IntrospectionException JavaDoc ex) {}
54         try {
55             proplist.add(new PropertyDescriptor JavaDoc("focusIndex", ELFormTag.class,
56                                                 null, "setFocusIndexExpr"));
57         } catch (IntrospectionException JavaDoc ex) {}
58         try {
59             proplist.add(new PropertyDescriptor JavaDoc("method", ELFormTag.class,
60                                                 null, "setMethodExpr"));
61         } catch (IntrospectionException JavaDoc ex) {}
62         try {
63             proplist.add(new PropertyDescriptor JavaDoc("name", ELFormTag.class,
64                                                 null, "setNameExpr"));
65         } catch (IntrospectionException JavaDoc ex) {}
66         try {
67             proplist.add(new PropertyDescriptor JavaDoc("onreset", ELFormTag.class,
68                                                 null, "setOnresetExpr"));
69         } catch (IntrospectionException JavaDoc ex) {}
70         try {
71             proplist.add(new PropertyDescriptor JavaDoc("onsubmit", ELFormTag.class,
72                                                 null, "setOnsubmitExpr"));
73         } catch (IntrospectionException JavaDoc ex) {}
74         try {
75             proplist.add(new PropertyDescriptor JavaDoc("readonly", ELTextTag.class,
76                                                 null, "setReadonlyExpr"));
77         } catch (IntrospectionException JavaDoc ex) {}
78         try {
79             proplist.add(new PropertyDescriptor JavaDoc("scope", ELFormTag.class,
80                                                 null, "setScopeExpr"));
81         } catch (IntrospectionException JavaDoc ex) {}
82         try {
83             proplist.add(new PropertyDescriptor JavaDoc("scriptLanguage", ELFormTag.class,
84                                                 null, "setScriptLanguageExpr"));
85         } catch (IntrospectionException JavaDoc ex) {}
86         try {
87             proplist.add(new PropertyDescriptor JavaDoc("style", ELFormTag.class,
88                                                 null, "setStyleExpr"));
89         } catch (IntrospectionException JavaDoc ex) {}
90         try {
91             proplist.add(new PropertyDescriptor JavaDoc("styleClass", ELFormTag.class,
92                                                 null, "setStyleClassExpr"));
93         } catch (IntrospectionException JavaDoc ex) {}
94         try {
95             proplist.add(new PropertyDescriptor JavaDoc("styleId", ELFormTag.class,
96                                                 null, "setStyleIdExpr"));
97         } catch (IntrospectionException JavaDoc ex) {}
98         try {
99             proplist.add(new PropertyDescriptor JavaDoc("target", ELFormTag.class,
100                                                 null, "setTargetExpr"));
101         } catch (IntrospectionException JavaDoc ex) {}
102         try {
103             proplist.add(new PropertyDescriptor JavaDoc("type", ELFormTag.class,
104                                                 null, "setTypeExpr"));
105         } catch (IntrospectionException JavaDoc ex) {}
106         try {
107             proplist.add(new PropertyDescriptor JavaDoc("acceptCharset", ELFormTag.class,
108                                                 null, "setAcceptCharsetExpr"));
109         } catch (IntrospectionException JavaDoc ex) {}
110         
111         PropertyDescriptor JavaDoc[] result =
112             new PropertyDescriptor JavaDoc[proplist.size()];
113         return ((PropertyDescriptor JavaDoc[]) proplist.toArray(result));
114     }
115 }
116
Popular Tags