1 18 19 package org.apache.strutsel.taglib.tiles; 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 ELDefinitionTagBeanInfo extends SimpleBeanInfo 33 { 34 public PropertyDescriptor [] getPropertyDescriptors() 35 { 36 ArrayList proplist = new ArrayList (); 37 38 try { 39 proplist.add(new PropertyDescriptor ("id", ELDefinitionTag.class, 40 null, "setIdExpr")); 41 } catch (IntrospectionException ex) {} 42 try { 43 proplist.add(new PropertyDescriptor ("scope", ELDefinitionTag.class, 44 null, "setScopeExpr")); 45 } catch (IntrospectionException ex) {} 46 try { 47 proplist.add(new PropertyDescriptor ("template", ELDefinitionTag.class, 48 null, "setTemplateExpr")); 49 } catch (IntrospectionException ex) {} 50 try { 51 proplist.add(new PropertyDescriptor ("page", ELDefinitionTag.class, 52 null, "setPageExpr")); 53 } catch (IntrospectionException ex) {} 54 try { 55 proplist.add(new PropertyDescriptor ("role", ELDefinitionTag.class, 56 null, "setRoleExpr")); 57 } catch (IntrospectionException ex) {} 58 try { 59 proplist.add(new PropertyDescriptor ("extends", ELDefinitionTag.class, 60 null, "setExtendsExpr")); 61 } catch (IntrospectionException ex) {} 62 63 PropertyDescriptor [] result = 64 new PropertyDescriptor [proplist.size()]; 65 return ((PropertyDescriptor []) proplist.toArray(result)); 66 } 67 } 68 | Popular Tags |