public class ItemKeyPressEvent extends BrowserEvent<ItemKeyPressHandler> implements Cancellable
GwtEvent.Type<H>
jsObj
Constructor and Description |
---|
ItemKeyPressEvent(JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Call this method to cancel the keyPress
|
protected void |
dispatch(ItemKeyPressHandler handler) |
static <S extends HasItemKeyPressHandlers & 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<ItemKeyPressHandler> |
getAssociatedType() |
int |
getCharacterValue()
numeric character value of the pressed key.
|
FormItem |
getItem()
the FormItem where the change event occurred
|
java.lang.String |
getKeyName()
name of the key that was pressed (EG: "A", "Space")
|
static GwtEvent.Type<ItemKeyPressHandler> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled() |
getX, getY, isAltKeyDown, isCtrlKeyDown, isLeftButtonDown, isRightButtonDown
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
public ItemKeyPressEvent(JavaScriptObject jsObj)
public static <S extends HasItemKeyPressHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
S
- The event sourcesource
- the source of the handlersjsObj
- the native eventpublic static GwtEvent.Type<ItemKeyPressHandler> getType()
protected void dispatch(ItemKeyPressHandler handler)
dispatch
in class GwtEvent<ItemKeyPressHandler>
public final GwtEvent.Type<ItemKeyPressHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<ItemKeyPressHandler>
public void cancel()
cancel
in interface Cancellable
public boolean isCancelled()
isCancelled
in interface Cancellable
public FormItem getItem()
public java.lang.String getKeyName()
public int getCharacterValue()