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 ELInsertTagBeanInfo extends SimpleBeanInfo 33 { 34 public PropertyDescriptor [] getPropertyDescriptors() 35 { 36 ArrayList proplist = new ArrayList (); 37 38 try { 39 proplist.add(new PropertyDescriptor ("template", ELInsertTag.class, 40 null, "setTemplateExpr")); 41 } catch (IntrospectionException ex) {} 42 try { 43 proplist.add(new PropertyDescriptor ("component", ELInsertTag.class, 44 null, "setComponentExpr")); 45 } catch (IntrospectionException ex) {} 46 try { 47 proplist.add(new PropertyDescriptor ("page", ELInsertTag.class, 48 null, "setPageExpr")); 49 } catch (IntrospectionException ex) {} 50 try { 51 proplist.add(new PropertyDescriptor ("definition", ELInsertTag.class, 52 null, "setDefinitionExpr")); 53 } catch (IntrospectionException ex) {} 54 try { 55 proplist.add(new PropertyDescriptor ("attribute", ELInsertTag.class, 56 null, "setAttributeExpr")); 57 } catch (IntrospectionException ex) {} 58 try { 59 proplist.add(new PropertyDescriptor ("name", ELInsertTag.class, 60 null, "setNameExpr")); 61 } catch (IntrospectionException ex) {} 62 try { 63 proplist.add(new PropertyDescriptor ("beanName", ELInsertTag.class, 64 null, "setBeanNameExpr")); 65 } catch (IntrospectionException ex) {} 66 try { 67 proplist.add(new PropertyDescriptor ("beanProperty", ELInsertTag.class, 68 null, "setBeanPropertyExpr")); 69 } catch (IntrospectionException ex) {} 70 try { 71 proplist.add(new PropertyDescriptor ("beanScope", ELInsertTag.class, 72 null, "setBeanScopeExpr")); 73 } catch (IntrospectionException ex) {} 74 try { 75 proplist.add(new PropertyDescriptor ("flush", ELInsertTag.class, 76 null, "setFlushExpr")); 77 } catch (IntrospectionException ex) {} 78 try { 79 proplist.add(new PropertyDescriptor ("ignore", ELInsertTag.class, 80 null, "setIgnoreExpr")); 81 } catch (IntrospectionException ex) {} 82 try { 83 proplist.add(new PropertyDescriptor ("role", ELInsertTag.class, 84 null, "setRoleExpr")); 85 } catch (IntrospectionException ex) {} 86 try { 87 proplist.add(new PropertyDescriptor ("controllerUrl", ELInsertTag.class, 88 null, "setControllerUrlExpr")); 89 } catch (IntrospectionException ex) {} 90 try { 91 proplist.add(new PropertyDescriptor ("controllerClass", ELInsertTag.class, 92 null, "setControllerClassExpr")); 93 } catch (IntrospectionException ex) {} 94 95 PropertyDescriptor [] result = 96 new PropertyDescriptor [proplist.size()]; 97 return ((PropertyDescriptor []) proplist.toArray(result)); 98 } 99 } 100 | Popular Tags |