1 18 19 package org.apache.strutsel.taglib.bean; 20 21 import java.beans.PropertyDescriptor ; 22 import java.beans.IntrospectionException ; 23 import java.beans.SimpleBeanInfo ; 24 import java.util.ArrayList ; 25 26 39 public class ELIncludeTagBeanInfo extends SimpleBeanInfo 40 { 41 public PropertyDescriptor [] getPropertyDescriptors() 42 { 43 ArrayList proplist = new ArrayList (); 44 45 try { 46 proplist.add(new PropertyDescriptor ("anchor", ELIncludeTag.class, 47 null, "setAnchorExpr")); 48 } catch (IntrospectionException ex) {} 49 try { 50 proplist.add(new PropertyDescriptor ("forward", ELIncludeTag.class, 51 null, "setForwardExpr")); 52 } catch (IntrospectionException ex) {} 53 try { 54 proplist.add(new PropertyDescriptor ("href", ELIncludeTag.class, 55 null, "setHrefExpr")); 56 } catch (IntrospectionException ex) {} 57 try { 58 proplist.add(new PropertyDescriptor ("id", ELIncludeTag.class, 59 null, "setIdExpr")); 60 } catch (IntrospectionException ex) {} 61 try { 62 proplist.add(new PropertyDescriptor ("name", ELIncludeTag.class, 63 null, "setNameExpr")); 64 } catch (IntrospectionException ex) {} 65 try { 66 proplist.add(new PropertyDescriptor ("page", ELIncludeTag.class, 67 null, "setPageExpr")); 68 } catch (IntrospectionException ex) {} 69 try { 70 proplist.add(new PropertyDescriptor ("transaction", 71 ELIncludeTag.class, 72 null, "setTransactionExpr")); 73 } catch (IntrospectionException ex) {} 74 75 PropertyDescriptor [] result = 76 new PropertyDescriptor [proplist.size()]; 77 return ((PropertyDescriptor []) proplist.toArray(result)); 78 } 79 } 80 | Popular Tags |