Incorporating User-Written Code into Visual Composites

Although VisualAge enables you to compose and generate user interface parts, you will probably want to write other parts yourself at some point. These are typically nonvisual parts that provide business logic. You can either create a new part and write the code to support its features (Assembling a Part from Generated and User-Written Code), or you can define part interface features for code you have already written (Adapting User-Written Classes for Use as Parts). If you intend to export your part for use by others, read Sharing Parts with Other Programmers.

If you just need to extend the function of the composite, you can probably accomplish this by using member function or custom logic connections. As a last resort, you can modify generated code for the visual composite.


Related concepts
Visual, Nonvisual, and Composite Parts
Member Function Connections
Custom Logic Connections
Generated Code

Related procedures
Using Handwritten Code from Previous Versions of VisualAge
Defining Part Interfaces for Visual Composition
Specifying Code Files
Generating Feature Code
Modifying Generated Feature Code
Adding Part Information for Visual Composition