Visual Composition

Visual composition is the creation of object-oriented programs by manipulating graphical representations of components. VisualAge provides a powerful tool, the Composition Editor, that enables you to construct programs visually.

In the Composition Editor, you select and place parts to create graphical user interfaces (GUIs). These GUIs can include VisualAge parts, imported parts, and parts you create yourself. By following a few guidelines, you can design versatile parts that you can reuse in many compositions. VisualAge also enables you to use nonvisual parts to perform the business logic and data access.

Development using visual composition can include the following steps:

  1. Design your program elements. Determine what you can compose visually and what you must write by hand.
  2. Create nonvisual parts.
  3. Using the Composition Editor, enhance these classes by dropping parts and setting initial values for attributes. Extend the behavior of VisualAge parts by writing member functions.
  4. For business logic, add code to the appropriate class stubs.
  5. Connect parts to define the program element's behavior and flow.
  6. Save and generate the code for your part within the Composition Editor, and compile your application.


Related concepts
Visual Programming Fundamentals
How Classes and Parts Are Related
Visual, Nonvisual, and Composite Parts
Free-form Surface
Parts Palette
About Adding Parts in the Composition Editor
About Setting Groups and Tab Stops
About Tearing Off Attributes

Related procedures
Working with Parts in the Composition Editor