Generating Bean Info
A BeanInfo class contains information about the JavaBeans component, such as properties, event sets, and methods. BeanInfo is an optional class, and you can choose what information will be included in it. In BeanInfo you can also specify additional properties of the JavaBeans properties and BeanInfo, including icons, display names, and so on.
By default, all superclass beaninfo, public properties and event sets are included in
BeanInfo
(permitting customization of various attributes), and all public methods are discovered by introspection.To generate BeanInfo for a class:
- Right-click on the
Bean Patterns
node in the class and choose Generate BeanInfo from the contextual menu.The Generate Bean Info dialog box will appear. The left panel shows the three main nodes (
Bean Info
,Properties
, andEvent Sources
) and the right panel shows the properties of the selected node.![]()
- Make any desired changes to the properties and then click OK.
Note: The JavaBeans component properties referred to in the
Properties
node should not be confused with the word "properties" as generically used in Forte for Java to refer to characteristics and settings (as displayed in each object's property sheet) of parts of the IDE and objects stored in it. Thus, in the Bean Info Generation dialog box, we refer to properties of JavaBeans properties.
Contents | Prev | Next | Index |