![]() |
![]() |
![]() |
Select the
on the palette to retrieve a bean and drop it on the beans list,free-form
surface, or an existing container bean. You must supply the fully
qualified class name to add the bean from this window. You can,
however, use the Browse button to locate the name.
Use the Choose Bean window under the following circumstances:
Note: | You cannot add a bean inside itself and you cannot embed a composite bean inside itself. |
Fields
Push buttons
To add the bean or variable to the free-form surface, select OK.
You can add a bean as a class, a serialized bean, or as a variable. When you add a bean as a class, the default constructor for the class is used when the application runs. This means that a real object is created, not a variable that points to a real object defined elsewhere.
From Bean Type, select the type of bean you want to add.
Select... | If you want... |
---|---|
Class | To add an instance of a visual or nonvisual bean |
Variable | To add a reference to an instance of a bean |
Serialized | To add a serialized bean |
This field name changes according to the specified bean type.
If you specified... | The field name is... |
---|---|
Class | Class Name |
Variable | Interface/Class Name |
Serialized | File Name |
In the Class name field, enter the fully qualified name of the Java class. You can use the Browse button to locate the name or, if you added the bean previously, it appears in the drop-down list box.
Enter a name in the Name field for the bean you want to drop. Bean names may include letters and numbers, but must begin with a letter and include no spaces. This text appears under the bean icon on the free-form surface. If you leave this field blank, VisualAge assigns a Name for you.
Adding Beans in the Visual Composition Editor
Choose Bean Tool
Adding Beans Not on the Palette