DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Mark has posted 3 posts at DZone. View Full User Profile

Gwt Event Handling Example (for Event Handling Not Taken Care Of Specifically)

06.18.2008
| 8805 views |
  • submit to reddit
        // description of your code here
Code below should be used to listen to any event not already covered in API

     sinkEvents(Event.MOUSEEVENTS);
    public void onBrowserEvent(Widget sender, Event event)
    {
        if ((DOM.eventGetButton(event) == Event.BUTTON_RIGHT) &&
            (DOM.eventGetType(event) == Event.ONMOUSEDOWN))
        { 
         ...