public class ItemChangeEvent extends BrowserEvent<ItemChangeHandler> implements Cancellable
GwtEvent.Type<H>jsObj| Constructor and Description |
|---|
ItemChangeEvent(JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Call this method to cancel the change
|
protected void |
dispatch(ItemChangeHandler handler) |
static <S extends HasItemChangeHandlers & 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<ItemChangeHandler> |
getAssociatedType() |
FormItem |
getItem()
the FormItem where the change event occurred
|
java.lang.Object |
getNewValue()
new value for the FormItem
|
java.lang.Object |
getOldValue()
value the FormItem had previous to this change() event
|
static GwtEvent.Type<ItemChangeHandler> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled() |
getX, getY, isAltKeyDown, isCtrlKeyDown, isLeftButtonDown, isRightButtonDownassertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringpublic ItemChangeEvent(JavaScriptObject jsObj)
public static <S extends HasItemChangeHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
S - The event sourcesource - the source of the handlersjsObj - the native eventpublic static GwtEvent.Type<ItemChangeHandler> getType()
protected void dispatch(ItemChangeHandler handler)
dispatch in class GwtEvent<ItemChangeHandler>public final GwtEvent.Type<ItemChangeHandler> getAssociatedType()
getAssociatedType in class GwtEvent<ItemChangeHandler>public void cancel()
cancel in interface Cancellablepublic boolean isCancelled()
isCancelled in interface Cancellablepublic FormItem getItem()
public java.lang.Object getNewValue()
public java.lang.Object getOldValue()