1 19 package org.netbeans.tax.decl; 20 21 import java.beans.*; 22 23 public class ANYTypeBeanInfo extends SimpleBeanInfo { 24 25 37 public PropertyDescriptor[] getPropertyDescriptors () { 38 int PROPERTY_XMLString = 0; 39 PropertyDescriptor[] properties = new PropertyDescriptor[1]; 40 try { 41 properties[PROPERTY_XMLString] = new PropertyDescriptor ( "XMLString", ANYType.class, "toString", null ); } catch( IntrospectionException e) {} 43 return properties; 44 } 45 46 53 public EventSetDescriptor[] getEventSetDescriptors () { 54 int EVENT_propertyChangeListener = 0; 55 EventSetDescriptor[] eventSets = new EventSetDescriptor[1]; 56 57 try { 58 eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor ( ANYType.class, "propertyChangeListener", PropertyChangeListener.class, new String [] {"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" ); } catch( IntrospectionException e) {} 60 return eventSets; 61 } 62 63 70 public MethodDescriptor[] getMethodDescriptors () { 71 return new MethodDescriptor[0]; 72 } 73 } 74 | Popular Tags |