1 18 19 package org.apache.strutsel.taglib.logic; 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 ELMessagesPresentTagBeanInfo extends SimpleBeanInfo 40 { 41 public PropertyDescriptor [] getPropertyDescriptors() 42 { 43 ArrayList proplist = new ArrayList (); 44 45 try { 46 proplist.add(new PropertyDescriptor ("name", ELMessagesPresentTag.class, 47 null, "setNameExpr")); 48 } catch (IntrospectionException ex) {} 49 try { 50 proplist.add(new PropertyDescriptor ("property", ELMessagesPresentTag.class, 51 null, "setPropertyExpr")); 52 } catch (IntrospectionException ex) {} 53 try { 54 proplist.add(new PropertyDescriptor ("message", ELMessagesPresentTag.class, 55 null, "setMessageExpr")); 56 } catch (IntrospectionException ex) {} 57 58 PropertyDescriptor [] result = 59 new PropertyDescriptor [proplist.size()]; 60 return ((PropertyDescriptor []) proplist.toArray(result)); 61 } 62 } 63 | Popular Tags |