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
public static class FormPanel.SubmitEvent extends GwtEvent<FormPanel.SubmitHandler>
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 Constructor Description SubmitEvent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcancel()Cancel the form submit.protected voiddispatch(FormPanel.SubmitHandler handler)Should only be called byHandlerManager.GwtEvent.Type<FormPanel.SubmitHandler>getAssociatedType()Returns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.static GwtEvent.Type<FormPanel.SubmitHandler>getType()Handler hook.booleanisCanceled()Gets whether this form submit will be canceled.(package private) voidsetCanceled(boolean canceled)Deprecated.Usecancel()instead-
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
-
-
-
-
Method Detail
-
getType
public static GwtEvent.Type<FormPanel.SubmitHandler> 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
public final GwtEvent.Type<FormPanel.SubmitHandler> 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
protected void dispatch(FormPanel.SubmitHandler handler)
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:
EventBus.dispatchEvent(Event, Object)
-
setCanceled
@Deprecated void setCanceled(boolean canceled)
Deprecated.Usecancel()insteadThis method is used for legacy support and should be removed whenFormHandleris removed.
-
-