public class ItemKeyPressEvent extends BrowserEvent<ItemKeyPressHandler> implements Cancellable
jsObj
Constructor and Description |
---|
ItemKeyPressEvent(com.google.gwt.core.client.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 & com.google.gwt.event.shared.HasHandlers> |
fire(S source,
com.google.gwt.core.client.JavaScriptObject jsObj)
Fires a open event on all registered handlers in the handler manager.If no
such handlers exist, this method will do nothing.
|
com.google.gwt.event.shared.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 com.google.gwt.event.shared.GwtEvent.Type<ItemKeyPressHandler> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled() |
getX, getY, isAltKeyDown, isCtrlKeyDown, isLeftButtonDown, isRightButtonDown
assertLive, getSource, isLive, kill, revive
public ItemKeyPressEvent(com.google.gwt.core.client.JavaScriptObject jsObj)
public static <S extends HasItemKeyPressHandlers & com.google.gwt.event.shared.HasHandlers> void fire(S source, com.google.gwt.core.client.JavaScriptObject jsObj)
S
- The event sourcesource
- the source of the handlersjsObj
- the native eventpublic static com.google.gwt.event.shared.GwtEvent.Type<ItemKeyPressHandler> getType()
protected void dispatch(ItemKeyPressHandler handler)
dispatch
in class com.google.gwt.event.shared.GwtEvent<ItemKeyPressHandler>
public final com.google.gwt.event.shared.GwtEvent.Type<ItemKeyPressHandler> getAssociatedType()
getAssociatedType
in class com.google.gwt.event.shared.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()