Step 4: Creating View Objects
As mentioned previously, view objects are usually developed from the top down. This means that an idea of what the UI looks like exists before the view objects are created. For this application, we'll imagine that the Art Department has not yet created a final sketch of the UI which you are to work from, but the fields are defined in a table.
Some of the fields are read-only (such as the Date), while some of the fields require the user to enter data (such as Quantity). Each of the fields in the UI maps to a view object attribute. To illustrate this, the following table lists the UI field, the view object and attribute, and some notes on the type of the attribute.