【发布时间】:2016-03-03 04:04:33
【问题描述】:
我开始在我的项目中使用 GWTP,我目前正在重写我的所有代码以使其与这个库一起工作。
但是,如果需要,我很难理解如何使用 GWTP,例如ListView 和 ListItemView 项目。
@Inject
public ToolsPresenter(PlaceManager placeManager, EventBus eventBus, MyView view, MyProxy proxy) {
super(eventBus, view, proxy, AdminToolPresenter.SLOT_AdminToolMainContent);
this.placeManager = placeManager;
ToolListView toolListView = new ToolListView(...)
ToolListPresenter toolListPresenter = new ToolListPresenter(....);
this.setInSlot(SLOT_ToolList, toolListPresenter);
}
我想要的是将我的ListView 放在一个插槽中。我很确定我不能做那里显示的事情,但我只是不明白如何将简单的小部件与 GWTP 一起使用。
或者我这样做完全错了,我应该只为 ListView 扩展一个 Composite 而根本不在这里使用 GWTP 的东西?
【问题讨论】:
标签: gwtp