[问题]具有GWT应用程序的MVP [英] [Question] MVP with GWT application

查看:63
本文介绍了[问题]具有GWT应用程序的MVP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在使用Google Web Toolkit GWT开发网站,并且希望使用Model View Presenter设计模式.

我已经读过,视图和演示者之间的关系是一对一的关系.

我的网站主页包含三个主要部分,或者可能包含3个视图.
其中一个包含一个菜单,并且根据菜单中的所选项目显示所需的视图..

我已经使用MVP下载了一个示例项目

您可以从此处下载示例源代码[url = http://code.google.com/webtoolkit/articles/mvp-architecture.html]大型应用程序开发和MVP-Google Web工具包-Google代码[/url]

我不知道如何做这样的事情(根据所选的menuItem在同一页面上显示不同的视图),因为一次只能显示一个视图(应用程序控制器决定显示哪个视图)

在此先感谢:)

Hello

I''m developing a website using Google Web Toolkit GWT and I want to use the Model View Presenter design pattern.

I''ve read that the relation between view and presenter is a one to one relation..

My main page of the website consists of three main parts, or maybe 3 views.
One of them contains a menu, and the required view is displayed according to the chosen item in the menu..

I''ve downloaded a sample project using MVP

You can download the sample source code from here [url=http://code.google.com/webtoolkit/articles/mvp-architecture.html]Large scale application development and MVP - Google Web Toolkit - Google Code[/url]

I don''t know how to do something like this (display different view at the same page accprding to the selected menuItem) since only one view can be displayed at a time ( the Application Controller decides which view appears)

Thanks in advance :)

推荐答案

选择菜单项应刷新当前页面,这将加载所需的视图.
没有更多的细节和一个具体的问题,就没什么可说的了.
Selecting the menu item should refresh the current page which will load the required view.
Without more details and a concrete problem there is not a great deal more that can be said.


这篇关于[问题]具有GWT应用程序的MVP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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