Creation of a bean in the IDE begins with a Java class that has source code. A Bean Patterns subnode appears in the Filesystems window for any such class.
To create a new Java class to be used as a bean:
You can choose from many templates. The Bean template provides some skeleton code for a non-visual bean. A commonly used template for creating visual beans is the JFC/Swing JPanel template.
You can maintain or modify and sets for the class from the Bean Patterns subnode. These property and event sets define features of a bean, all of which can be visually manipulated in the IDE or any other building tool that supports beans.
You can also use the Bean Patterns subnode to set property and event mechanisms in standard classes that are not written to the JavaBeans architecture. These property and event mechanisms are not recognized when you use introspection.
For information about the JavaBeans component architecture, including how introspection works, see the JavaBeans web site at
http://java.sun.com/beans/
See Also | |
---|---|
Creating a Bean Property
Creating a Bean Event Set Deleting a Property or Event Set Generating BeanInfo Generating Getter and Setter Methods |