Package com.google.gwt.user.client.ui
Class FormPanel.SubmitEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel the form submit.protected voiddispatch(FormPanel.SubmitHandler handler) Should only be called byHandlerManager.Returns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.static GwtEvent.Type<FormPanel.SubmitHandler>getType()Handler hook.booleanGets whether this form submit will be canceled.(package private) voidsetCanceled(boolean canceled) Deprecated.Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, reviveMethods 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.SubmitCompleteEventfrom being fired. -
getAssociatedType
Description copied from class:EventReturns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.- Specified by:
getAssociatedTypein classGwtEvent<FormPanel.SubmitHandler>- Returns:
- the type
-
isCanceled
public boolean isCanceled()Gets whether this form submit will be canceled.- Returns:
trueif the form submit will be canceled
-
dispatch
Description copied from class:GwtEventShould only be called byHandlerManager. In other words, do not use or call.- Specified by:
dispatchin classGwtEvent<FormPanel.SubmitHandler>- Parameters:
handler- handler- See Also:
-
setCanceled
Deprecated.Usecancel()insteadThis method is used for legacy support and should be removed whenFormHandleris removed.
-
cancel()instead