隨筆 - 34, 文章 - 1, 評論 - 2, 引用 - 0
          數(shù)據(jù)加載中……

          MVC

        1. Model - The model represents data and the rules that govern access to and updates of this data. In enterprise software, a model often serves as a software approximation of a real-world process.
        2. View - The view renders the contents of a model. It specifies exactly how the model data should be presented. If the model data changes, the view must update its presentation as needed. This can be achieved by using a push model, in which the view registers itself with the model for change notifications, or a pull model, in which the view is responsible for calling the model when it needs to retrieve the most current data.
        3. Controller - The controller translates the user's interactions with the view into actions that the model will perform. In a stand-alone GUI client, user interactions could be button clicks or menu selections, whereas in an enterprise web application, they appear as GET and POST HTTP requests. Depending on the context, a controller may also select a new view -- for example, a web page of results -- to present back to the user.

          1   MVC explain  from Sun
                      http://java.sun.com/blueprints/patterns/MVC-detailed.html
          2  Java SE Application Design With MVC
                  http://java.sun.com/developer/technicalArticles/javase/mvc/
          3  Applying MVC
                  http://www.javadude.com/articles/vaddmvc1/mvc1.htm
          4   good  sample
                http://leepoint.net/notes-java/GUI/structure/40mvc.html
        4. 5  MVC design
              http://javadude.com/articles/index.html


          posted on 2010-01-14 15:04 河馬虎 閱讀(187) 評論(0)  編輯  收藏 所屬分類: java

          主站蜘蛛池模板: 论坛| 师宗县| 龙胜| 玉环县| 梅河口市| 富民县| 平昌县| 上杭县| 镇雄县| 德安县| 承德县| 宝山区| 霍州市| 东安县| 南郑县| 锡林郭勒盟| 彰化县| 潞城市| 苗栗县| 宕昌县| 株洲县| 尤溪县| 屏东县| 盐池县| 九寨沟县| 三门县| 大化| 旌德县| 尖扎县| 茂名市| 山东| 清丰县| 两当县| 吴桥县| 合山市| 赤水市| 霍城县| 尚义县| 隆尧县| 抚松县| 丹江口市|