New Property dialog box
Use the New Property dialog box to create a new property for your JavaBean.
To display this dialog box,
- Select your component in the Navigation pane.
- Click the Bean tab to display the BeansExpress designers.
- Click the Properties tab to display the Properties Designer.
- Click the Add Property button.
Property Data
Property Name
Specify the name of your new property.
Type
Specify the type of your new property. You can type in any of the Java primitive types, or you can click the button to display a file browser to locate the object you want.
Getter
Check this check box if you want the property to be readable. When this option is checked, JBuilder generates a read access method (a getter) for your property in the source code.
Setter
Check this check box if you want the property to be writable so its value can be set. When this option is checked, JBuilder generates a write access method (a setter) for your property in the source code.
Binding
If your property is a bound or constrained property, select either bound or constrained; otherwise, leave the value of none. If bound or constrained is chosen, JBuilder adds supporting code for a bound or constrained property to the JavaBean.
BeanInfo data
Expose through BeanInfo
Determines whether the property is exposed in your JavaBean's BeanInfo class. Check this option if you want the user to access the property through the Component Inspector. If this option is unchecked, the property won't appear in the Component Inspector.
Display Name
The name of the property as it appears in the Component Inspector. This field is automatically filled when when you name the property. You can change it to specify a different name. This field is often used to provide a localized property name.
Short Description
The text that appears as a tool tip for the property in the Component Inspector. This field is automatically filled when you name the property, but you can change it to anything you want.
Editor
If you have created a property editor for your property, specify it using the choice menu (drop-down list box).