是否可以将 ClickHandler 添加到 gwt 的 Grid 对象的整行?可以将 ClickHandler 添加到整个网格,但如何确定到底单击了哪一行?
最佳答案
根据 GWT 版本,您可能可以使用:
public HTMLTable.Cell getCellForEvent(ClickEvent event)
单元格有一个 getRowIndex()
方法。
关于gwt - 将点击监听器添加到 gwt 的 Grid 行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11555841/