Bill Manaris : Fall 2005 / CSCI 380 MVC Intro

MVC (Model-View-Controller) Intro

Model : The core of the application. This maintains the state and data that the application represents. When significant changes occur in the model, it updates all of its views

Controller : The user interface presented to the user to manipulate the application.

View : The user interface which displays information about the model to the user. Any object that needs information about the model needs to be a registered view with the model.

In Java, everything is "glued" together by a system driver class. This class creates the main GUI window, and instantiates the Model, Controller, and View objects. For example, see Heart.java.

File Heart.jar runs the above example.

Reference

Cristobal Baray's intro on the model-view-controller (MVC) design pattern.

(Printable View of http://www.cs.cofc.edu/~manaris/?n=Fall2005.CSCI380MVCIntro)