next up previous contents
Next: Model registration Up: Details of implementation Previous: Models   Contents

Controllers

User's controllers must derive from this class. A controller is always associated with one model, that the controller can monitor and modify. At the other side the controller can control a View. Two members called model and view holds the corresponding instances.

The controller holds all the code that lives between data in model and the data-presentation in the view. For example the controller will read a property value from the model, and will send that value to the view, to visualize it. If the property in the model is an Observable Property that the Controller is interested in monitoring, than when somebody will change the property, the controller will be notified and will update the view.



Subsections

Roberto Cavada 2008-08-26