1
package org.netbeans.modules.webclient;
5
public class WebclientBrowserBeanInfo extends SimpleBeanInfo {
9
private static BeanDescriptor beanDescriptor = null /*lazy*/;
11
private static BeanDescriptor getBdescriptor(){
12
if(beanDescriptor == null){
13
beanDescriptor = new BeanDescriptor ( WebclientBrowser.class , null );
15
// Here you can add code for customizing the BeanDescriptor.
17
} return beanDescriptor; }
19
// Property identifiers
20
private static final int PROPERTY_appData = 0;
23
private static PropertyDescriptor[] properties = null /*lazy*/;
25
private static PropertyDescriptor[] getPdescriptor(){
26
if(properties == null){
27
properties = new PropertyDescriptor[1];
30
properties[PROPERTY_appData] = new PropertyDescriptor ( "appData", WebclientBrowser.class, "getAppData", "setAppData" ); // NOI18N
32
catch( IntrospectionException e) {}
34
// Here you can add code for customizing the properties array.
36
} return properties; }
38
// Event set information will be obtained from introspection.
39
private static EventSetDescriptor[] eventSets = null;
40
private static EventSetDescriptor[] getEdescriptor(){
44
// Here you can add code for customizing the event sets array.
47
// Method information will be obtained from introspection.
48
private static MethodDescriptor[] methods = null;
49
private static MethodDescriptor[] getMdescriptor(){
53
// Here you can add code for customizing the methods array.
56
private static final int defaultPropertyIndex = -1;
57
private static final int defaultEventIndex = -1;
61
* Gets the bean's <code>BeanDescriptor</code>s.
63
* @return BeanDescriptor describing the editable
64
* properties of this bean. May return null if the
65
* information should be obtained by automatic analysis.
67
public BeanDescriptor getBeanDescriptor() {
68
//return beanDescriptor;
69
return getBdescriptor();
73
* Gets the bean's <code>PropertyDescriptor</code>s.
75
* @return An array of PropertyDescriptors describing the editable
76
* properties supported by this bean. May return null if the
77
* information should be obtained by automatic analysis.
79
* If a property is indexed, then its entry in the result array will
80
* belong to the IndexedPropertyDescriptor subclass of PropertyDescriptor.
81
* A client of getPropertyDescriptors can use "instanceof" to check
82
* if a given PropertyDescriptor is an IndexedPropertyDescriptor.
84
public PropertyDescriptor[] getPropertyDescriptors() {
86
return getPdescriptor();
90
* Gets the bean's <code>EventSetDescriptor</code>s.
92
* @return An array of EventSetDescriptors describing the kinds of
93
* events fired by this bean. May return null if the information
94
* should be obtained by automatic analysis.
96
public EventSetDescriptor[] getEventSetDescriptors() {
98
return getEdescriptor();