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 ELOptionsCollectionTagBeanInfo extends SimpleBeanInfo 40 { 41 public PropertyDescriptor [] getPropertyDescriptors() 42 { 43 ArrayList proplist = new ArrayList (); 44 45 try { 46 proplist.add(new PropertyDescriptor ("filter", ELOptionsCollectionTag.class, 47 null, "setFilterExpr")); 48 } catch (IntrospectionException ex) {} 49 try { 50 proplist.add(new PropertyDescriptor ("label", ELOptionsCollectionTag.class, 51 null, "setLabelExpr")); 52 } catch (IntrospectionException ex) {} 53 try { 54 proplist.add(new PropertyDescriptor ("name", ELOptionsCollectionTag.class, 55 null, "setNameExpr")); 56 } catch (IntrospectionException ex) {} 57 try { 58 proplist.add(new PropertyDescriptor ("property", ELOptionsCollectionTag.class, 59 null, "setPropertyExpr")); 60 } catch (IntrospectionException ex) {} 61 try { 62 proplist.add(new PropertyDescriptor ("style", ELOptionsCollectionTag.class, 63 null, "setStyleExpr")); 64 } catch (IntrospectionException ex) {} 65 try { 66 proplist.add(new PropertyDescriptor ("styleClass", ELOptionsCollectionTag.class, 67 null, "setStyleClassExpr")); 68 } catch (IntrospectionException ex) {} 69 try { 70 proplist.add(new PropertyDescriptor ("value", ELOptionsCollectionTag.class, 71 null, "setValueExpr")); 72 } catch (IntrospectionException ex) {} 73 74 PropertyDescriptor [] result = 75 new PropertyDescriptor [proplist.size()]; 76 return ((PropertyDescriptor []) proplist.toArray(result)); 77 } 78 } 79 | Popular Tags |