GWT 与 MVP:如何在 2 个视图之间进行通信?
我在 GWT 中使用 MVP 模式。 我开发了一个GWT-TabPanel。每个选项卡都有自己的演示者和自己的视图。但现在我想在 ViewY 中使用 ViewX 的一些数据。
有没有简单的方法来实现呢?
格瑞兹
i use the MVP-Pattern in GWT.
I have developed a GWT-TabPanel. Each Tab has his own Presenter and his own view. But now i want to use some Datas from ViewX in ViewY.
Is there a simple way to realize it?
Greetz
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议使用 EventBus 在不同视图之间进行通信。要详细了解如何使用 EventBus 和事件,请参阅本文 - 大规模应用程序开发和 MVP 。
I would suggest to use EventBus to communicate between different views. See more about using EventBus and events in this article - Large scale application development and MVP.