User's Guide
Connect your nonvisual parts to your visual parts as follows:
- Connect the number attribute of Runner Factory part to the
runnerNumberTextObject attribute of the ReusableRoadRaceView
part.
- Connect the finishTime attribute of Runner Factory part to the
finishTimeTextObject attribute of the ReusableRoadRaceView
part.
Note: | We promoted the object attribute of the
runnerNumberText and finishTimeText parts in Creating reusable parts so you would be able to make these
connections. These connections give the Runner Factory part access to
the contents of the Text subparts.
|
- Connect the clicked event of the Record push button
to the recordPBClicked script of the RoadRaceView
class.
- Connect the self attribute of the Runners Collection part to
the items attribute of the Result List.
- Set the attributeName property of Result List to
asResultString.
Now every time Record is selected, the object factory creates a
new instance of the Runner class and adds it to the ordered
collection.
Your Composition Editor looks like the following:

Select
to test your visual part.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]