1 19 package org.netbeans.tax.decl; 20 21 import java.beans.*; 22 23 public class EMPTYTypeBeanInfo extends SimpleBeanInfo { 24 25 37 public PropertyDescriptor[] getPropertyDescriptors () { 38 int PROPERTY_XMLString = 0; 39 PropertyDescriptor[] properties = new PropertyDescriptor[1]; 40 41 try { 42 properties[PROPERTY_XMLString] = new PropertyDescriptor ( "XMLString", EMPTYType.class, "toString", null ); } catch( IntrospectionException e) { 44 } 45 return properties; 46 } 47 48 55 public EventSetDescriptor[] getEventSetDescriptors () { 56 int EVENT_propertyChangeListener = 0; 57 EventSetDescriptor[] eventSets = new EventSetDescriptor[1]; 58 59 try { 60 eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor ( EMPTYType.class, "propertyChangeListener", PropertyChangeListener.class, new String [] {"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" ); } 62 catch( IntrospectionException e) {} 63 return eventSets; 64 } 65 66 73 public MethodDescriptor[] getMethodDescriptors () { 74 return new MethodDescriptor[0]; 75 } 76 } 77 | Popular Tags |