Package com.google.gwt.user.client.ui
Class FormPanel.SubmitCompleteEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<FormPanel.SubmitCompleteHandler>
com.google.gwt.user.client.ui.FormPanel.SubmitCompleteEvent
- Enclosing class:
- FormPanel
Fired when a form has been submitted successfully.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
Constructor Summary
ModifierConstructorDescriptionprotected
SubmitCompleteEvent
(String resultsHtml) Create a submit complete event. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispatch
(FormPanel.SubmitCompleteHandler handler) Should only be called byHandlerManager
.Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.Gets the result text of the form submission.getType()
Handler hook.Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
Constructor Details
-
SubmitCompleteEvent
Create a submit complete event.- Parameters:
resultsHtml
- the results from submitting the form
-
-
Method Details
-
getType
Handler hook.- Returns:
- the handler hook
-
getAssociatedType
Description copied from class:Event
Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.- Specified by:
getAssociatedType
in classGwtEvent<FormPanel.SubmitCompleteHandler>
- Returns:
- the type
-
getResults
Gets the result text of the form submission.- Returns:
- the result html, or
null
if there was an error reading it - Tip:
- The result html can be
null
as a result of submitting a form to a different domain.
-
dispatch
Description copied from class:GwtEvent
Should only be called byHandlerManager
. In other words, do not use or call.- Specified by:
dispatch
in classGwtEvent<FormPanel.SubmitCompleteHandler>
- Parameters:
handler
- handler- See Also:
-