1 19 package org.netbeans.tax.decl; 20 21 import java.beans.*; 22 23 public class SequenceTypeBeanInfo 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", SequenceType.class, "toString", null ); } catch( IntrospectionException e) {} 44 return properties; 45 } 46 47 54 public EventSetDescriptor[] getEventSetDescriptors () { 55 int EVENT_propertyChangeListener = 0; 56 EventSetDescriptor[] eventSets = new EventSetDescriptor[1]; 57 58 try { 59 eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor ( SequenceType.class, "propertyChangeListener", PropertyChangeListener.class, new String [] {"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" ); } catch( IntrospectionException e) {} 61 return eventSets; 62 } 63 64 71 public MethodDescriptor[] getMethodDescriptors () { 72 return new MethodDescriptor[0]; 73 } 74 75 } 76 | Popular Tags |