Package com.google.gwt.user.client.ui
Class FormPanel.SubmitEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<FormPanel.SubmitHandler>
com.google.gwt.event.shared.GwtEvent<FormPanel.SubmitHandler>
com.google.gwt.user.client.ui.FormPanel.SubmitEvent
- Enclosing class:
FormPanel
Fired when the form is submitted.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancel the form submit.protected void
dispatch
(FormPanel.SubmitHandler handler) Should only be called byHandlerManager
.Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.static GwtEvent.Type
<FormPanel.SubmitHandler> getType()
Handler hook.boolean
Gets whether this form submit will be canceled.(package private) void
setCanceled
(boolean canceled) Deprecated.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
-
SubmitEvent
public SubmitEvent()
-
-
Method Details
-
getType
Handler hook.- Returns:
- the handler hook
-
cancel
public void cancel()Cancel the form submit. Firing this will prevent a subsequentFormPanel.SubmitCompleteEvent
from being fired. -
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.SubmitHandler>
- Returns:
- the type
-
isCanceled
public boolean isCanceled()Gets whether this form submit will be canceled.- Returns:
true
if the form submit will be canceled
-
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.SubmitHandler>
- Parameters:
handler
- handler- See Also:
-
setCanceled
Deprecated.Usecancel()
insteadThis method is used for legacy support and should be removed whenFormHandler
is removed.
-
cancel()
instead