Monday 26 March 2012

MVC Architecture

•Generally each visual component consists of three distinct aspects:
1.The state information associated with the component.
2.The visual appearance of the component.
3.The way the component reacts to the user.
•In MVC(Model-View-Controller) architecture “model” corresponds to the state information of the component. “view” corresponds to the visual appearance of the component and the “controller” corresponds to how the component reacts to the user.
•In MVC architecture, model, view and controller are independent of one another.

•It means that the state information is independent of the look and feel of the component.
•Swing component uses a modified version of the MVC architecture known as “Model-Delegate” or “Separate model” architecture.
•In Java, “view” and “controller” of the MVC had been combined into a single entity known as “UI Delegate”.

No comments:

Post a Comment