* @see com.google.gwt.widgetideas.table.client.overrides.HTMLTable
*/
@Override
public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
Element targetRow = null;
Element targetCell = null;
switch (DOM.eventGetType(event)) {
// Hover the cell on mouse over
case Event.ONMOUSEOVER:
Element cellElem = getEventTargetCell(event);
if (cellElem != null) {
hoverCell(cellElem);
}
break;
// Unhover on mouse out
case Event.ONMOUSEOUT:
Element toElem = DOM.eventGetToElement(event);
if (hoveringRowElem != null
&& (toElem == null || !DOM.isOrHasChild(hoveringRowElem, toElem))) {
// Check that the coordinates are not directly over the cell
int clientX = DOM.eventGetClientX(event);
int clientY = DOM.eventGetClientY(event);