Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以将 ClickHandler 添加到 gwt 的 Grid 对象的整行?可以将 ClickHandler 添加到整个网格,但是如何确定单击了哪一行?
根据 GWT 版本,您可能可以使用:
public HTMLTable.Cell getCellForEvent(ClickEvent event)
Cell 有一个getRowIndex()方法。
getRowIndex()