1 12 package org.displaytag.tags.el; 13 14 import java.beans.IntrospectionException ; 15 import java.beans.PropertyDescriptor ; 16 import java.beans.SimpleBeanInfo ; 17 import java.util.ArrayList ; 18 import java.util.List ; 19 20 21 28 public class ELCaptionTagBeanInfo extends SimpleBeanInfo 29 { 30 31 34 public PropertyDescriptor [] getPropertyDescriptors() 35 { 36 List proplist = new ArrayList (); 37 38 try 39 { 40 proplist.add(new PropertyDescriptor ("class", ELCaptionTag.class, null, "setClass")); proplist.add(new PropertyDescriptor ("dir", ELCaptionTag.class, null, "setDir")); proplist.add(new PropertyDescriptor ("id", ELCaptionTag.class, null, "setId")); proplist.add(new PropertyDescriptor ("lang", ELCaptionTag.class, null, "setLang")); proplist.add(new PropertyDescriptor ("media", ELColumnTag.class, null, "setMedia")); proplist.add(new PropertyDescriptor ("style", ELCaptionTag.class, null, "setStyle")); proplist.add(new PropertyDescriptor ("title", ELCaptionTag.class, null, "setTitle")); } 55 catch (IntrospectionException ex) 56 { 57 } 59 60 PropertyDescriptor [] result = new PropertyDescriptor [proplist.size()]; 61 return ((PropertyDescriptor []) proplist.toArray(result)); 62 } 63 64 } | Popular Tags |