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