Ok, I figured that out.
1. I misspelled 'onBrowseEvent' - it must be 'onBrowserEvent'.
2. I did not call super.onBrowserEvent() in onBrowserEvent.
The code that works is:
<code>
Tree tree = new Tree(){
public void onBrowserEvent(Event e) { {
sinkEvents(Event.ONDBLCLICK);
}
super.onBrowserEvent(e);
if(DOM.eventGetType(e) == Event.ONDBLCLICK) {
GWT.log("Double clicked.", null);
}
}
};
</code>
Hope this will help to someone new to GWT like me.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---