1 18 19 package org.apache.strutsel.taglib.html; 20 21 import java.beans.PropertyDescriptor ; 22 import java.beans.IntrospectionException ; 23 import java.util.ArrayList ; 24 import java.beans.SimpleBeanInfo ; 25 26 39 public class ELRewriteTagBeanInfo extends SimpleBeanInfo 40 { 41 public PropertyDescriptor [] getPropertyDescriptors() 42 { 43 ArrayList proplist = new ArrayList (); 44 45 try { 46 proplist.add(new PropertyDescriptor ("action", ELRewriteTag.class, 47 null, "setActionExpr")); 48 } catch (IntrospectionException ex) {} 49 try { 50 proplist.add(new PropertyDescriptor ("module", ELRewriteTag.class, 51 null, "setModuleExpr")); 52 } catch (IntrospectionException ex) {} 53 try { 54 proplist.add(new PropertyDescriptor ("anchor", ELRewriteTag.class, 55 null, "setAnchorExpr")); 56 } catch (IntrospectionException ex) {} 57 try { 58 proplist.add(new PropertyDescriptor ("forward", ELRewriteTag.class, 59 null, "setForwardExpr")); 60 } catch (IntrospectionException ex) {} 61 try { 62 proplist.add(new PropertyDescriptor ("href", ELRewriteTag.class, 63 null, "setHrefExpr")); 64 } catch (IntrospectionException ex) {} 65 try { 66 proplist.add(new PropertyDescriptor ("name", ELRewriteTag.class, 67 null, "setNameExpr")); 68 } catch (IntrospectionException ex) {} 69 try { 70 proplist.add(new PropertyDescriptor ("page", ELRewriteTag.class, 71 null, "setPageExpr")); 72 } catch (IntrospectionException ex) {} 73 try { 74 proplist.add(new PropertyDescriptor ("paramId", ELRewriteTag.class, 75 null, "setParamIdExpr")); 76 } catch (IntrospectionException ex) {} 77 try { 78 proplist.add(new PropertyDescriptor ("paramName", ELRewriteTag.class, 79 null, "setParamNameExpr")); 80 } catch (IntrospectionException ex) {} 81 try { 82 proplist.add(new PropertyDescriptor ("paramProperty", ELRewriteTag.class, 83 null, "setParamPropertyExpr")); 84 } catch (IntrospectionException ex) {} 85 try { 86 proplist.add(new PropertyDescriptor ("paramScope", ELRewriteTag.class, 87 null, "setParamScopeExpr")); 88 } catch (IntrospectionException ex) {} 89 try { 90 proplist.add(new PropertyDescriptor ("property", ELRewriteTag.class, 91 null, "setPropertyExpr")); 92 } catch (IntrospectionException ex) {} 93 try { 94 proplist.add(new PropertyDescriptor ("scope", ELRewriteTag.class, 95 null, "setScopeExpr")); 96 } catch (IntrospectionException ex) {} 97 try { 98 proplist.add(new PropertyDescriptor ("transaction", ELRewriteTag.class, 99 null, "setTransactionExpr")); 100 } catch (IntrospectionException ex) {} 101 try { 102 proplist.add(new PropertyDescriptor ("useLocalEncoding", ELRewriteTag.class, 103 null, "setUseLocalEncodingExpr")); 104 } catch (IntrospectionException ex) {} 105 106 PropertyDescriptor [] result = 107 new PropertyDescriptor [proplist.size()]; 108 return ((PropertyDescriptor []) proplist.toArray(result)); 109 } 110 } 111 | Popular Tags |