当使用描述的 MVP 模式时 here在 GWT 中,当 View 是另一个 uibinder 定义的 View 的一部分时,如何创建与 View 关联的展示者。
最佳答案
你自己实例化它:
@UiFactory
方法:@UiFactory public Widget getMyView(){ // here you instantiate your view & activity ... // your view contais a widget or is a widget return widget }
@UiField(provided=true)
字段:@UiField(provided=true) public Widget myView; // then instantiate it in constructor
关于java - GWT 中的 UIBinder 和 MVP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6313592/