我有一个 Web 应用程序,其 UI 在GXT(ext GWT)中实现。
现在我想切换到Flex,但由于应用程序太大,我无法立即开始迁移整个应用程序。
所以我决定慢慢迁移。所以我想要的是在点击 GXT 按钮时调出一个 Flex 面板。
基本上这个想法是如何让 Flex 组件监听 GXT 组件生成的事件。
Flex app is ultimately an SWF and GWT gives you JavaScript; you can use ExternalInterface to invoke an SWF's methods from JavaScript code and vice-versa. Checkout the addCallback method - the linked page has some sample code in it.