1 18 19 package org.apache.strutsel.taglib.bean; 20 21 import java.beans.PropertyDescriptor ; 22 import java.beans.IntrospectionException ; 23 import java.util.ArrayList ; 24 import java.beans.SimpleBeanInfo ; 25 26 32 public class ELResourceTagBeanInfo extends SimpleBeanInfo 33 { 34 public PropertyDescriptor [] getPropertyDescriptors() 35 { 36 ArrayList proplist = new ArrayList (); 37 38 try { 39 proplist.add(new PropertyDescriptor ("id", ELResourceTag.class, 40 null, "setIdExpr")); 41 } catch (IntrospectionException ex) {} 42 try { 43 proplist.add(new PropertyDescriptor ("input", ELResourceTag.class, 44 null, "setInputExpr")); 45 } catch (IntrospectionException ex) {} 46 try { 47 proplist.add(new PropertyDescriptor ("name", ELResourceTag.class, 48 null, "setNameExpr")); 49 } catch (IntrospectionException ex) {} 50 51 PropertyDescriptor [] result = 52 new PropertyDescriptor [proplist.size()]; 53 return ((PropertyDescriptor []) proplist.toArray(result)); 54 } 55 } 56 | Popular Tags |