1 18 19 package org.apache.strutsel.taglib.bean; 20 21 import java.beans.IntrospectionException ; 22 import java.beans.PropertyDescriptor ; 23 import java.beans.SimpleBeanInfo ; 24 import java.util.ArrayList ; 25 26 39 public class ELSizeTagBeanInfo extends SimpleBeanInfo 40 { 41 public PropertyDescriptor [] getPropertyDescriptors() 42 { 43 ArrayList proplist = new ArrayList (); 44 45 try { 46 proplist.add(new PropertyDescriptor ("collection", ELSizeTag.class, 47 null, "setCollectionExpr")); 48 } catch (IntrospectionException ex) {} 49 try { 50 proplist.add(new PropertyDescriptor ("id", ELSizeTag.class, 51 null, "setIdExpr")); 52 } catch (IntrospectionException ex) {} 53 try { 54 proplist.add(new PropertyDescriptor ("name", ELSizeTag.class, 55 null, "setNameExpr")); 56 } catch (IntrospectionException ex) {} 57 try { 58 proplist.add(new PropertyDescriptor ("property", ELSizeTag.class, 59 null, "setPropertyExpr")); 60 } catch (IntrospectionException ex) {} 61 try { 62 proplist.add(new PropertyDescriptor ("scope", ELSizeTag.class, 63 null, "setScopeExpr")); 64 } catch (IntrospectionException ex) {} 65 66 PropertyDescriptor [] result = 67 new PropertyDescriptor [proplist.size()]; 68 return ((PropertyDescriptor []) proplist.toArray(result)); 69 } 70 } 71 | Popular Tags |