Home   Info   DevZone   Wiki  
UsersWeb  |  MainWeb  |  InfoWeb  |  DevZoneWeb  |  SupportWeb
ModelViewControllerPattern ] [ not logged in ] [ Web: Imported ] goto:  options
[ get info on or edit ] login or new user ] [ list of topics, hubs & nodes, or recent changes ]

The ModelViewControllerPattern splits an application into three components. The model contains the core functionaility and data. Views display information to the user. Controllers handle user input. Views and controllers together comprise the user interface.

Advantages

Multiple views are possible for each model enabling the interface to be replaced by a different one without rewriting the internal representation of the data. It also allows for multiple concurrent views to be used (e.g. a hex view and an ascii view)

Disadvantages

This pattern increases the complexity of the application. Also, the three components are tightly coupled. Changes in the model's interface are likely to require changes to the view.

Variants

DocumentViewPattern

__See also:__ PresentationAbstractionControlPattern

Back to DesignPatterns




Content of these pages are owned and copyrighted by the poster.
Hosted by: