private ClickHandler listenToTableClick(final FlexTable table)
{
return new ClickHandler()
{
public void onClick(ClickEvent event)
{
//instead of casting the former sender as a FlexTable, use the original table
Cell cell = table.getCellForEvent(event);
int row = cell.getRowIndex();
int col = cell.getCellIndex();
//original code here
}
}
No comments:
Post a Comment