Chapter 7 Defining a New Presentation Type

7.1 Conceptual Overview of Defining a New Presentation Type

CLIM's standard set of presentation types will be useful in many cases, but most applications will need customized presentation types to represent the objects modeled in the application.

In defining a presentation type, you define all the user interface components of the entity:

In other words, in one place you provide all the information about an object necessary to display it to the user and to accept it as input from the user.

The set of presentation types forms a type lattice, an extension of the Common Lisp CLOS type lattice. When a new presentation type is defined as a subtype of another presentation type, it inherits all the attributes of the supertype except those explicitly overridden in the definition.

To define a new presentation type, you follow these steps:

1. Use the define-presentation-type macro.

2. Define the CLIM presentation methods.

7.1.1 - CLIM Presentation Type Inheritance
7.1.2 - Defining an Accept for a Structure With Several Fields

CLIM 2.0 User's Guide - OCT 1998

Generated with Harlequin WebMaker