title: Add a click handler to a HorizontalPanel in GWT
body: <p>How do i add click handlers to <code>HorizontalPanel</code>?</p>
  
  <p>It worked with the use of <code>addDomHandler()</code> in newer GWT versions, but i had to downgrade to GWT 2.0.4 where this isn't supported. I used to do it like this:</p>
  
  <pre><code>horizontalPanel.getWidget(1).addDomHandler(someClickHandler,ClickEvent.getType());
  //or
  horizontalPanel.addDomHandler(someClickHandler, ClickEvent.getType());
  </code></pre>