使用GWT-Platform将参数从一个演讲者传递给另一个演讲者 [英] passing parameters from one presenter to another with GWT-Platform

查看:107
本文介绍了使用GWT-Platform将参数从一个演讲者传递给另一个演讲者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我试图将我已经加载到演示者上的一个参数传递给另一个演示者,例如来自某个客户端的一辆车。

什么是最好的方法去做这个?使用守门人?任何示例?



PS:我使用DI与杜松子酒和GWT-Platform框架。

解决方案

如果应用程序在事件触发时加载,则可以使用 ProxyEvent 。查看 http://code.google.com/p/gwt- platform / wiki / GettingStarted?tm = 6#Attaching_events_to_proxies http://arcbees.wordpress .com / 2010/08/31 / using-proxyevent /

I'm trying to pass a parameter that I have loaded on a presenter to another presenter, a car from some client, for example.

What's the best way to do this? Using the gatekeeper? Any example?

PS: I using DI with gin and the GWT-Platform framework.

解决方案

If the presenter should be loaded when the event is fired you can use a ProxyEvent. Have a look at http://code.google.com/p/gwt-platform/wiki/GettingStarted?tm=6#Attaching_events_to_proxies and http://arcbees.wordpress.com/2010/08/31/using-proxyevent/.

这篇关于使用GWT-Platform将参数从一个演讲者传递给另一个演讲者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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