title: Capturing mouse events on horizontal panel in GWT
body: <p>Is there a way to capture mouse events on a horizontal panel in gwt ?
  I am trying to capture mousedown or onclick events but m not able to get it working. This is what i have done so far</p>
  
  <pre><code>final HorizontalPanel container = new HorizontalPanel() {
          @Override
          public void sinkEvents(int eventBitsToAdd) {
              // TODO Auto-generated method stub
              super.sinkEvents(Event.ONCLICK);
          }
  
          @Override
          public void onBrowserEvent(final Event event) {
              // TODO Auto-generated method stub
              super.onBrowserEvent(event);
              if (DOM.eventGetType(event) == Event.ONCLICK) {
                      System.out.println("event type --&gt;&gt; " + event.getType());
              }
              /*if(Event.ONMOUSEDOWN == arg0.getTypeInt())
              System.out.println("event type --&gt;&gt; " + arg0.getType());*/
          }
  
      };
  </code></pre>
  
  <p>I have no clue why this doesn't work.
  any help would be appreciated.
  Thanks</p>