I need to do something like the following in order to know what cell
in a FlexTable was clicked as well as preventDefault() browser
actions. It seems like the sinkEvents(Event.MOUSEEVENTS) trumps the
addClickHandler(). How can I accomplish this functionality? Thanks in
advance.


public class BaseTable extends FlexTable {

  public BaseTable() {
    super();
    sinkEvents(Event.MOUSEEVENTS);
    addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        HTMLTable.Cell cell = getCellForEvent(event);
        if(cell!=null) {
          Selector.setSelectedOuterTable((OuterTable) getParent(),
cell.getRowIndex(), cell.getCellIndex());
        }
      });
    }

    public void onBrowserEvent(Event event) {
      event.preventDefault();
    }
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to