public class ClickEvent extends AbstractSmartEvent<ClickHandler> implements Cancellable
GwtEvent.Type<H>jsObj| Constructor and Description |
|---|
ClickEvent(JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Call this method to cancel the click event.
|
protected void |
dispatch(ClickHandler handler) |
static <S extends HasClickHandlers & HasHandlers> |
fire(S source,
JavaScriptObject jsObj)
Fires a open event on all registered handlers in the handler manager.If no
such handlers exist, this method will do nothing.
|
GwtEvent.Type<ClickHandler> |
getAssociatedType() |
DynamicForm |
getForm()
the managing DynamicForm instance
|
FormItem |
getItem()
the form item itself (also available as "this")
|
static GwtEvent.Type<ClickHandler> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled() |
assertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringpublic ClickEvent(JavaScriptObject jsObj)
public static <S extends HasClickHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
S - The event sourcesource - the source of the handlersjsObj - the native eventpublic static GwtEvent.Type<ClickHandler> getType()
protected void dispatch(ClickHandler handler)
dispatch in class GwtEvent<ClickHandler>public final GwtEvent.Type<ClickHandler> getAssociatedType()
getAssociatedType in class GwtEvent<ClickHandler>public void cancel()
click on the form containing this item.cancel in interface Cancellablepublic boolean isCancelled()
isCancelled in interface Cancellablepublic DynamicForm getForm()
public FormItem getItem()