Make form event getTypes public.

Patch By: stephenh
Review By: t.broyer


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10934 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/ui/FormPanel.java b/user/src/com/google/gwt/user/client/ui/FormPanel.java
index 5644ab4..cd6a417 100644
--- a/user/src/com/google/gwt/user/client/ui/FormPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/FormPanel.java
@@ -77,7 +77,7 @@
      *
      * @return the handler hook
      */
-    static Type<SubmitCompleteHandler> getType() {
+    public static Type<SubmitCompleteHandler> getType() {
       if (TYPE == null) {
         TYPE = new Type<SubmitCompleteHandler>();
       }
@@ -97,7 +97,7 @@
 
     @Override
     public final Type<SubmitCompleteHandler> getAssociatedType() {
-      return TYPE;
+      return getType();
     }
 
     /**
@@ -137,14 +137,14 @@
     /**
      * The event type.
      */
-    private static Type<SubmitHandler> TYPE = new Type<SubmitHandler>();
+    private static Type<SubmitHandler> TYPE;
 
     /**
      * Handler hook.
      *
      * @return the handler hook
      */
-    static Type<SubmitHandler> getType() {
+    public static Type<SubmitHandler> getType() {
       if (TYPE == null) {
         TYPE = new Type<SubmitHandler>();
       }
@@ -163,7 +163,7 @@
 
     @Override
     public final Type<FormPanel.SubmitHandler> getAssociatedType() {
-      return TYPE;
+      return getType();
     }
 
     /**