If you want to connect to the features of a bean that is
embedded within a composite, you must promote bean features. To promote
the bean features:
- Open the bean pop-up.
- Select Promote bean feature.
- Select the type of feature: Method, Property,
or Event.
- From the list box, select the feature you want to promote and
>> is enabled.
- Click >> and the feature is listed in the Promoted
features list.
- Repeat for the other features you wish to promote.
- If you wish to rename the feature, double-click and modify the name listed
in the Promote Name list.
- If you wish to remove the feature from the Promoted features
list, click <<.
- Click OK.
When you promote features, VisualAge performs the following tasks:
- Saves the composite bean
- Generates the code for the composite bean
- Creates a BeanInfo Class, if one doesn't already exist
- Adds a new connection between the embedded bean and the composite, where
appropriate (for all but promoted methods)
When you embed this bean within another bean, the features that you
promoted are listed under the type in the Connectable Features
window. Connect the promoted feature of each bean to effect the change
you desire.
Promotion of Bean Features
Visual Composition Editor Overview
Promote Bean Feature
Promote Features Window
Visual Composition Editor
Pop-Up Menus for the Visual Composition Editor
