你最喜欢的 GWT MVP 框架是什么? [英] What is your favorite GWT MVP Framework?

查看:29
本文介绍了你最喜欢的 GWT MVP 框架是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您最喜欢的 GWT MVP 框架是什么,以及您选择的原因?

What is your favorite GWT MVP Framework, and the reason behind your choice?

  1. Mvp4g
  2. GWTP
  3. 内置 GWT 2.1
  4. gwt-mpv
  5. gwt-pectin
  6. guit
  7. 其他平台(请提供链接)
  8. 自己的解决方案(带有样板代码?)

谢谢.

更新:在列表中添加了建议 3、4、5.

Updated: Added suggestions 3, 4, 5 to the list.

更新 2:将 guit 添加到列表中.

Updated 2: Added guit to the list.

推荐答案

我认为 GWT MVP 的最佳技术是拥有以下类

I think the best technique of MVP for GWT is to have the following classes

  1. 模型
  2. 查看
  3. 主持人

并使视图和演示者通过定义的接口进行交互,并让演示者从模型中获取数据.首先,它非常简单,其次它允许团队合作,因为我们使用接口,每个团队只需要遵守接口即可.

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.

例如

     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

我认为这其中可能出现的主要问题是,可能是 View、Model 或 Presenter 之一的部分不遵守接口

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆