com.google.gwt.user.client.ui
Class FormHandlerCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<FormHandler>
              extended by com.google.gwt.user.client.ui.FormHandlerCollection
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<FormHandler>, java.util.Collection<FormHandler>, java.util.List<FormHandler>, java.util.RandomAccess

public class FormHandlerCollection
extends java.util.ArrayList<FormHandler>

Helper class for widgets that accept FormHandlers. This subclass of ArrayList assumes that all items added to it will be of type FormHandler.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
FormHandlerCollection()
           
 
Method Summary
 void fireOnComplete(FormPanel sender, java.lang.String results)
          Fires a FormHandler.onSubmitComplete(FormSubmitCompleteEvent) on all handlers in the collection.
 boolean fireOnSubmit(FormPanel sender)
          Fires a FormHandler.onSubmit(FormSubmitEvent) on all handlers in the collection.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

FormHandlerCollection

public FormHandlerCollection()
Method Detail

fireOnComplete

public void fireOnComplete(FormPanel sender,
                           java.lang.String results)
Fires a FormHandler.onSubmitComplete(FormSubmitCompleteEvent) on all handlers in the collection.

Parameters:
sender - the object sending the event
results - the results of the form submission

fireOnSubmit

public boolean fireOnSubmit(FormPanel sender)
Fires a FormHandler.onSubmit(FormSubmitEvent) on all handlers in the collection.

Parameters:
sender - the object sending the event
Returns:
true if the event should be cancelled