Collection-class parts rely on class templates to be able to handle a variety of element types. Some IBM Open Class parts contain a collection attribute (actually called items), so they, too, use class templates. A list of these parts follows:
Among these parts, two forms of class template exist. One takes only one argument (element type); the other takes two arguments (element type and collection type).
You are not limited to these template-based classes.
In any case, you must set the appropriate arguments in order for VisualAge to generate code that can be successfully compiled. To do this, select Change Template Arguments from the pop-up menu for the part. Then enter the types required, using template notation for the collection type as necessary. For an example, see Constructing the OASkillView Part.
Working with Parts in the
Composition Editor
ICollectionViewComboBox
ICollectionViewListBox
IVBContainerControl
IVSequence
