@Override
public ClickPoint getClickedPoint(ClickEvent event) {
final Image img;
int selectedRow = -1;
ClickPoint point = null;
HTMLTable.Cell cell = entitiesTable.getCellForEvent(event);
if (cell != null) {
// Suppress clicks if not on the property button
if (cell.getCellIndex() > 0) {
selectedRow = cell.getRowIndex();
img = (Image) entitiesTable.getWidget(selectedRow, 1);
int left = img.getAbsoluteLeft();
int top = img.getAbsoluteTop();
point = new ClickPoint(top, left);
}
}
return point;
}