Refactored solution: Apply model-view-controller.
重构的解决方案:应用模型-视图-控制器。
Model-View-Controller is an architectural design pattern.
模式是一种软件体系结构模式。
The term model-view-controller has been in use since the late 1970s.
术语“模型-视图-控制器”自70年代后期就已出现。
Model-View-Controller (MVC) is a design pattern put together to help control change.
“模型-视图-控制器”(MVC)就是用来帮助您控制变化的一种设计模式。
This strategy is easily compatible with the popular Model-View-Controller (MVC) design pattern (see figure 3).
这个策略与流行的模型-视图-控制器(Model-View-Controller,MVC)设计模式相兼容(见图3)。
To create the new view and controller, type the code in Listing 5.
创建新的视图和控制器,请输入清单5所示的代码。
Table 1 shows each window's name and its view controller class.
表1显示了每一个窗口的名称及其视图控制器类。
This view receives the JSON data file from the caller view controller.
此视图从调用方视图控制器接收JSON数据文件。
A simple view controller manages the primary view.
有一个简单的视图控制器管理主视图。
Next, the coffee machine's view (v) and controller (c) are created.
接下来,创建咖啡机的视图(V)和控制器(C)。
Remember the job of the controller is to prepare the model for the view..
记住,控制器的职责是为视图准备模型对象。
Don't want to mix your view with your controller?
不想让视图与控制器混在一起?
The goal of the controller is to prepare the model for the view.
控制器的目的是为视图准备模型对象。
Next, create a default controller and view.
接下来,创建一个默认的控制器和视图。
A quick controller and view primer.
控制器和视图快速入门。
When an event happens in the view, the Cocoa framework will call the controller.
当视图中发生一个事件时,Cocoa框架将会调用这个控制器。
Enter the view controller file name, OneViewControler.
输入控制器文件名oneviewcontroler。
To illustrate these limitations, you'll create a Location with model, view, and controller.
为了说明这些限制,要创建带有模型、视图和控制器的Location。
Next, we'll bridge the model and view with the controller, or EditPart.
接下来,我们将用控制器或EditPart在模型与视图之间架起桥梁。
Forward to controller to update view.
直接发送给控制器来更新视图。
Build a controller method and possibly a view to render the Ajax response.
构建一个控制器方法,或者一个视图来呈现Ajax响应。
Most importantly, XForms splits a form's data model, view, and controller.
最重要的是,XForms分隔表单的数据模型、视图和控制器。
The grab view and controller are now good to go.
这样grab视图和控制器就准备好了。
Create your first view controller.
创建您的第一个视图控制器。
Kiosk grab view and controller.
Kioskgrab视图和控制器。
In it, a single servlet processes view, model and controller logic.
在这个反模式中,一个单独的servlet将处理视图、模型以及控制器逻辑。
Both the view and the controller depend on the model.
视图和控制器对象都依赖于模型。
The controller can also tell the view to update itself and pass back updated values.
控制器还可以告诉视图更新自身,并传回更新后的值。
View Controller - This is the view Controller for the view that it will hold.
视图控制器——这个部分用来控制着视图的显示。
The controller and view are fully automated based on the model.
控制器和视图是完全自动基于模型的。
应用推荐