Java Programmer's Guide and Reference


Telephony beans example

This section provides a step-by-step example to show you how to create a desktop softphone with Dial, Answer, and Hangup buttons using telephony beans and a visual builder.

The example includes IBM VisualAge(TM) for Java illustrations, but you can use any visual builder that supports JavaBeans (the connections you make and the properties you set are similar regardless of the visual application builder tool you use).

Step 1: Add a CPLineResource

This step is illustrated in Figure 7.

Figure 7. Add a CPLineResource

Graphic Image

Step 2: Start the CPLineResource

This step is illustrated in Figure 8.

Figure 8. Start the CPLineResource

Graphic Image

Step 3: Add the Telephony Action beans

This step is illustrated in Figure 9.

Figure 9. Add the Telephony Action beans

Graphic Image

Step 4: Add visible controls

This step is illustrated in Figure 10.

Figure 10. Add visible controls

Graphic Image

Step 5: Connect visible controls to model

This step is illustrated in Figure 11.

Figure 11. Connect visible controls to model

Graphic Image

Step 6: Set the enable and disable states of buttons

Step 7: Compile the code and test your application

Figure 12 illustrates the completed application. Generate the code using your visual builder and test your application.

Figure 12. Compile the code and test your application

Graphic Image


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]