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 32 public class ELMessagesTagBeanInfo extends SimpleBeanInfo 33 { 34 public PropertyDescriptor [] getPropertyDescriptors() 35 { 36 ArrayList proplist = new ArrayList (); 37 38 try { 39 proplist.add(new PropertyDescriptor ("id", ELMessagesTag.class, 40 null, "setIdExpr")); 41 } catch (IntrospectionException ex) {} 42 try { 43 proplist.add(new PropertyDescriptor ("bundle", ELMessagesTag.class, 44 null, "setBundleExpr")); 45 } catch (IntrospectionException ex) {} 46 try { 47 proplist.add(new PropertyDescriptor ("locale", ELMessagesTag.class, 48 null, "setLocaleExpr")); 49 } catch (IntrospectionException ex) {} 50 try { 51 proplist.add(new PropertyDescriptor ("name", ELMessagesTag.class, 52 null, "setNameExpr")); 53 } catch (IntrospectionException ex) {} 54 try { 55 proplist.add(new PropertyDescriptor ("property", ELMessagesTag.class, 56 null, "setPropertyExpr")); 57 } catch (IntrospectionException ex) {} 58 try { 59 proplist.add(new PropertyDescriptor ("header", ELMessagesTag.class, 60 null, "setHeaderExpr")); 61 } catch (IntrospectionException ex) {} 62 try { 63 proplist.add(new PropertyDescriptor ("footer", ELMessagesTag.class, 64 null, "setFooterExpr")); 65 } catch (IntrospectionException ex) {} 66 try { 67 proplist.add(new PropertyDescriptor ("message", ELMessagesTag.class, 68 null, "setMessageExpr")); 69 } catch (IntrospectionException ex) {} 70 71 PropertyDescriptor [] result = 72 new PropertyDescriptor [proplist.size()]; 73 return ((PropertyDescriptor []) proplist.toArray(result)); 74 } 75 } 76 | Popular Tags |