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.
我有一个 flextable,在该表中我有一列,其中每一行都有一个用于删除该行的按钮。如何获取该行的索引以便删除它。我只需要得到一个索引。
A solution: FlexTable myTable = new FlexTable(); myTable.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { Cell cell = myTable.getCellForEvent(event); int receiverRowIndex = cell.getRowIndex(); } });