The reusable part you created is much like any of the parts on the parts palette. As a matter of fact, you can add your part to the parts palette if you think it will be used often in your development efforts. You can also use the Add Part window to add the part without having it appear on the parts palette.
To add the SecurityFormView part to the BuySecurityView and SellSecurityView parts, ensure that a Composition Editor is open for each visual part and follow these steps for each part:
The Add part window opens:
Note: | If you do not remember the class name of the part you want to add, select the Browse button. This opens a list of all available classes. |
Note: | You do not have to specify a name in the Part name field. If you do not specify a name, one is provided for you just as when you add a part from the parts palette. |
The mouse pointer is now loaded with your SecurityFormView part.
Notice that your reusable composite visual part is manipulated as a single part now.
To set the input focus to the appropriate Text part when the window is opened, you need to connect the openedWidget event of the Window part to the setFocus action of the Text part.
Make sure you save each of the parts and close both of the Composition Editor windows.