title: Gxt focus management
body: <p>I am working with Gxt. I need to set focus to the first enabled field on the page. But I have a lot of pages and I want to centralize that behaviour. There is a lack of documentation in Gxt so I wonder if somebody has met such a problem and can help me.</p>
  
  <p>Now it goes like that in each component's class</p>
  
  <pre><code>protected void resetFocus() {
      combobox.focus();
  }
  
  @Override
  public void show() {
      super.show();
      resetFocus();
  }
  </code></pre>
  
  <p>I have <em>found com.extjs.gxt.ui.client.aria.FocusManager</em> but is absolutely unclear how can I use it. Or maybe It is also possible to get chain of fields as they go on the component according to the focus. And I can move <em>resetFocus</em> method to the parent class.</p>
  
  <p>Smth like that</p>
  
  <pre><code>protected void resetFocus() {
      *getFocusChain().get(0).focus();*
  }
  </code></pre>