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

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

问题描述


  1. Mvp4g

  2. GWTP

  3. GWT 2.1内置

  4. gwt-mpv

  5. gwt-pectin

  6. guit

  7. 其他平台(请提供链接)

  8. 自己的解决方案(带样板代码) li>

谢谢。



已更新:向列表中添加了建议3,4,5。



已更新2 :添加到列表中

解决方案

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


  1. 模型

  2. 查看

  3. 演示者

并使视图和演示者通过定义的界面进行交互,并从模型中获取演示者提取数据。首先,这很简单,其次,由于我们使用界面,所以每个团队都必须遵守这个界面。



例如

  1.在MODEL上工作的人遵守ServiceAync接口

2.在视图上工作的人创建用户界面并根据由
定义的程序界面,将
指定的控件返回给演示者,他们各自的演示者
3.最后,在演示者级别工作的人定​​义了一个接口,
实现

我认为可能出现的主要问题是当一个部分可能是一个的视图,模型或演示者不遵守界面


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

  1. Mvp4g
  2. GWTP
  3. GWT 2.1 Built in
  4. gwt-mpv
  5. gwt-pectin
  6. guit
  7. Other platform (please provide link)
  8. Own solution (with boilerplate code?)
  9. 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

  1. Model
  2. View
  3. 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屋!

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