1 package org.netbeans.modules.webclient; 2 3 import java.beans.*; 4 5 public class WebclientBrowserBeanInfo extends SimpleBeanInfo { 6 7 8 private static BeanDescriptor beanDescriptor = null ; 10 11 private static BeanDescriptor getBdescriptor(){ 12 if(beanDescriptor == null){ 13 beanDescriptor = new BeanDescriptor ( WebclientBrowser.class , null ); 14 15 17 } return beanDescriptor; } 18 19 private static final int PROPERTY_appData = 0; 21 22 private static PropertyDescriptor[] properties = null ; 24 25 private static PropertyDescriptor[] getPdescriptor(){ 26 if(properties == null){ 27 properties = new PropertyDescriptor[1]; 28 29 try { 30 properties[PROPERTY_appData] = new PropertyDescriptor ( "appData", WebclientBrowser.class, "getAppData", "setAppData" ); } 32 catch( IntrospectionException e) {} 33 34 36 } return properties; } 37 38 private static EventSetDescriptor[] eventSets = null; 40 private static EventSetDescriptor[] getEdescriptor(){ 41 return eventSets; 42 } 43 44 46 47 private static MethodDescriptor[] methods = null; 49 private static MethodDescriptor[] getMdescriptor(){ 50 return methods; 51 } 52 53 55 56 private static final int defaultPropertyIndex = -1; 57 private static final int defaultEventIndex = -1; 58 59 60 67 public BeanDescriptor getBeanDescriptor() { 68 return getBdescriptor(); 70 } 71 72 84 public PropertyDescriptor[] getPropertyDescriptors() { 85 return getPdescriptor(); 87 } 88 89 96 public EventSetDescriptor[] getEventSetDescriptors() { 97 return getEdescriptor(); 99 } 100 101 } 102 103 | Popular Tags |