Wiring the JoltBeans Together

After all the beans are positioned on your form and the properties are set, you must wire the beans and their events together. The following figure illustrates an example of the flow to help you determine the correct order in which to wire the beans.

Wiring the beans allows you to establish event source-listener relationships between various beans on the form. For example, the JoltServiceBean is a listener of ActionEvents from the button and invokes callService() when the event is received. Use the Visual Café Interaction Wizard to wire the beans together.

The following figure shows the sequence in which you will wire the beans together to create this sample applet. The numbers in this figure correspond to the numbered steps that follow.

Figure 5-10 Sequence in Which JoltBeans Are Wired

Sequence in Which JoltBeans Are Wired Diagram

The steps below correspond to the callouts shown in the figure “Sequence in Which JoltBeans Are Wired”. Each of the steps below is detailed in the sections that follow.