你最喜欢的GWT MVP框架是什么? [英] What is your favorite GWT MVP Framework?
问题描述
- Mvp4g
- GWTP
- GWT 2.1内置
- gwt-mpv
- gwt-pectin
- guit
- 其他平台(请提供链接)
- 自己的解决方案(带样板代码) li>
- 无
谢谢。
已更新:向列表中添加了建议3,4,5。
已更新2 :添加到列表中
我认为GWT的最佳技术是为了拥有以下类别
- 模型
- 查看
- 演示者
并使视图和演示者通过定义的界面进行交互,并从模型中获取演示者提取数据。首先,这很简单,其次,由于我们使用界面,所以每个团队都必须遵守这个界面。
例如
1.在MODEL上工作的人遵守ServiceAync接口
2.在视图上工作的人创建用户界面并根据由
定义的程序界面,将
指定的控件返回给演示者,他们各自的演示者
3.最后,在演示者级别工作的人定义了一个接口,
实现
我认为可能出现的主要问题是当一个部分可能是一个的视图,模型或演示者不遵守界面
What is your favorite GWT MVP Framework, and the reason behind your choice?
- Mvp4g
- GWTP
- GWT 2.1 Built in
- gwt-mpv
- gwt-pectin
- guit
- Other platform (please provide link)
- Own solution (with boilerplate code?)
- None
Thanks.
Updated: Added suggestions 3, 4, 5 to the list.
Updated 2: Added guit to the list.
I think the best technique of MVP for GWT is to have the following classes
- Model
- View
- Presenter
And make the view and the presenter interacts through a defined interface and have the presenter fetch data from the model. First, it is very simple, secondly it allows team working since we are using interfaces, every teams just have to abide by the interface.
For e.g.
1. Those working on the MODEL abide by the ServiceAync Interface
2. Those working on the view creates the User Interface and returns the
specified control to the presenter according the program interface defined by
their respective presenter
3. And Finally those working on the presenter level defines an interface which
the view has to implement
I think that the main problem that can arise in this is when one part which may be one of the View,the Model or the Presenter doesn't abide by the interface
这篇关于你最喜欢的GWT MVP框架是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!