Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 GWT 中使用 MVP 模式。我开发了一个 GWT-TabPanel。每个 Tab 都有自己的 Presenter 和自己的视图。但现在我想在 ViewY 中使用来自 ViewX 的一些数据。
有没有一种简单的方法来实现它?
格雷茨
我建议使用EventBus在不同视图之间进行通信。在这篇文章 -大规模应用程序开发和 MVP中查看更多关于使用 EventBus 和事件的信息。