1. From GUI to MVC

Source: Internet
Author: User

GUI (graphic user interface graphical interface). The purpose of GUI programming is to provide interactivity and update the interface in real time based on the user's operation. User actions are unpredictable mouse and keyboard events, how do we stay synchronized and updated? On the upper level, we must consider the business logic clearly. In the code layer, how do we translate the business logic into communication between objects (possibly with network communication)?

MVC addresses these requirements. It simplifies the communication of objects by subdividing the character of the Code (model layer, control layer, display layer).

GUI programming is sometimes particularly complex. Interface usability, multi-threading, event handling consistency. A large number of dialog boxes, buttons, drop-down lists to demonstrate different functions. GUI programming is a complex system. We need to avoid confusion under a uniform constraint, which is MVC.

We will implement all functions from one of the simplest classes. To Mvc:model, view, control to achieve this function.

1. From GUI to MVC

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.