Creating an Application

Designing the User Interface

The next task is to add the interface components to our application. This involves adding Presenter-View user pairs to the domain models that we have so far created in order to complete a series of MVP triads. It is from this plugging together of different objects that Smalltalk achieves its great flexibility even with only single inheritance available in the language. An MVP application can achieve its goal in one of two ways, either by the creation of it is usually fairly apparent which to choose in any given situation. basic or composite triads, and

So far we have created the domain models for our application. What we require from our user interface is a method of editing the various aspects of each of these models. It seems likely, therefore, that for each model we'll need to build a composite MVP triad in which each part of the composite is responsible for editing a single aspect of the overall model.

Let's start by creating a presenter-view pair for a PersonalAccount.


Click here to move on to the next section or here to go back to the previous section.