Вопрос

I have a flextable, and in that table I have a column where each row has a button to remove that row. How can I get the index of that row so that I can remove it. I only need to get a index.

Это было полезно?

Решение

A solution: 

FlexTable myTable = new FlexTable();
myTable.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
    Cell cell = myTable.getCellForEvent(event);
    int receiverRowIndex = cell.getRowIndex();
}
});
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top