OWLNext 7.0
Borland's Object Windows Library for the modern age
|
The user almost never interacts directly with a document.
Instead the user works with an interface object, such as a window, a dialog box, or whatever type of display is appropriate for the data being presented and the method in which it is presented. But this interface object doesn't stand on its own. A window has no information about the data it displays, the document that contains that data, or about how the user can manipulate and change the data. All this functionality is handled by the view object.
A view forms an interface between an interface object (which can only do what it is told to do) and a document (which does not know how to tell the interface object what to do). The view's job is to bridge the gap between the two objects, reading the data from the document object and telling the interface object how to display that data.
The following topics describe how to write a view class to work with your document classes: