我正在使用 GWT 2.1.0
我有的:
- 我有一个
CustomCellList
whichextends CellList
,我onBrowserEvent2(event)
在 this中压倒一切CustomCellList
。数据由 a 提供AsyncDataProvider
。 - 设置选择模型:
NoSelectionModel
问题:
仅在将onBrowserEvent2(event)
数据添加到 时调用一次CustomCellList
。在我调用之后AsyncDataProvider#updateRowData()
,单击任何单元格时不会调用 onBrowserEvent2() CustomCellList
。
我尝试了什么:
我尝试在 google 上找到解决方案,但所有解决方案都讲述了传递可选 CellPreviewHandler 参数 addSelectionChangeHandler() 方法,但这在GWT 2.1.1+版本中可用,而我使用的是V2.1.0。我不能升级到 V2.1.1,因为它有很多 API 更改并且业务需求不允许我升级 GWT 版本。
你能帮我解决这个问题吗?
谢谢!