title: How to register a ArrayList with RegistrationHandlers in GWT?
body: <p>in my current project i use the MVP-Pattern and i want to register a variable count of RegistrationHandlers for some checkboxes.</p>
  
  <p>Something like this:
  in my View.java i have:</p>
  
   <pre class="lang-java prettyprint-override"><code>public ArrayList&lt;HandlerRegistration&gt; getCheckBoxesHandlers(ClickHandler handler) {
      ArrayList&lt;HandlerRegistration&gt; handlerRegistration= new ArrayList&lt;HandlerRegistration&gt;();
      for (Widget checkBox : availableSets) {
              handlerRegistration.add(((CheckBox)checkBox).addClickHandler(handler));
      }
      return handlerRegistration;
  }
  </code></pre>
  
  <p>how can i handle this in my presenter? he following code doesn't work, because i don't know how to catch the handlers out of the array</p>
  
   <pre class="lang-java prettyprint-override"><code> display.getCheckBoxesHandlers(new ClickHandler() {
  
          @Override
          public void onClick(ClickEvent event) {
              //TODO do something here
  
          }
      });
  </code></pre>
  
  <p>greetz,
  destiny</p>