Abstract
This chapter describes the approach of openXMA for modeling and creating the presentation layer.
For developing the presentation layer different aspects are relevant. According to these aspects several types of models are used. Additionally models which are not part of the presentation layer itself provides presentation information and are therefore referenced from the presentation model.
This is a platform independent model of the user interface. It contains the content and its structure as well as the data binding and the event mapping.
For editing of this model a textual editor is used.
The presentation model and tooling is described in detail in chapter 1.2
This is a detailed and platformdependent model (SWT) of the user interface. It typically contains the gui elements and their layout.
For viewing and editing this model a graphical WYSIWYG editor is used. The model and the according tooling is described here: http://openxma.codehaus.org/docs/XMAGuide/
The most importent model für generating code for the presentation layer is of course the presentation model itself. But there is also information in the domain model which is relevant for presentation. The data binding for example references attributes of entities and views which are defined in the domain model. The approach of openXMA is to define metadata (formatter, constraints,...) on attributes and types in the domain model and use these metadata in the presentation model(s) for presentation purposes.
Example: A maximum lenght constraint for a attribute is used for the validator to limit the amount of characters which can be entered in a text field.