title: To know the type of widget in horizontal panel in gwt
body: <p>I have a GWT project. I am using a <code>getWidget()</code> method on a horizontal panel and I want to know the type of widget returned by this method.
   Whether the returned widget is a button or a textbox (as I would have put only these 2 kinds of widget into my horizontal panel initially).</p>
  
  <p>For example:</p>
  
  <pre><code>HorizontalPanel x;
  X.getWidget(4);
  </code></pre>
  
  <p>I want to know the type of the widget returned.</p>
  
  <p>Is there any method for this?</p>