| com.google.gwt.user.client.ui.KeyboardListener
All known Subclasses: com.google.gwt.user.client.ui.DelegatingKeyboardListenerCollectionTest, com.google.gwt.user.client.ui.KeyboardListenerAdapter, com.google.gwt.user.client.ui.DelegatingKeyboardListenerCollection,
KeyboardListener | public interface KeyboardListener extends EventListener(Code) | | Event listener interface for keyboard events.
|
Method Summary | |
void | onKeyDown(Widget sender, char keyCode, int modifiers) Fired when the user depresses a physical key.
Parameters: sender - the widget that was focused when the event occurred. Parameters: keyCode - the physical key that was depressed. | void | onKeyPress(Widget sender, char keyCode, int modifiers) Fired when a keyboard action generates a character. | void | onKeyUp(Widget sender, char keyCode, int modifiers) Fired when the user releases a physical key.
Parameters: sender - the widget that was focused when the event occurred. Parameters: keyCode - the physical key that was released. |
KEY_ALT | final public static int KEY_ALT(Code) | | |
KEY_BACKSPACE | final public static int KEY_BACKSPACE(Code) | | |
KEY_CTRL | final public static int KEY_CTRL(Code) | | |
KEY_DELETE | final public static int KEY_DELETE(Code) | | |
KEY_DOWN | final public static int KEY_DOWN(Code) | | |
KEY_END | final public static int KEY_END(Code) | | |
KEY_ENTER | final public static int KEY_ENTER(Code) | | |
KEY_ESCAPE | final public static int KEY_ESCAPE(Code) | | |
KEY_HOME | final public static int KEY_HOME(Code) | | |
KEY_LEFT | final public static int KEY_LEFT(Code) | | |
KEY_PAGEDOWN | final public static int KEY_PAGEDOWN(Code) | | |
KEY_PAGEUP | final public static int KEY_PAGEUP(Code) | | |
KEY_RIGHT | final public static int KEY_RIGHT(Code) | | |
KEY_SHIFT | final public static int KEY_SHIFT(Code) | | |
KEY_TAB | final public static int KEY_TAB(Code) | | |
KEY_UP | final public static int KEY_UP(Code) | | |
MODIFIER_ALT | final public static int MODIFIER_ALT(Code) | | |
MODIFIER_CTRL | final public static int MODIFIER_CTRL(Code) | | |
MODIFIER_META | final public static int MODIFIER_META(Code) | | |
MODIFIER_SHIFT | final public static int MODIFIER_SHIFT(Code) | | |
onKeyDown | void onKeyDown(Widget sender, char keyCode, int modifiers)(Code) | | Fired when the user depresses a physical key.
Parameters: sender - the widget that was focused when the event occurred. Parameters: keyCode - the physical key that was depressed. Constants for thisvalue are defined in this interface with the KEY prefix. Parameters: modifiers - the modifier keys pressed at when the event occurred. Thisvalue is a combination of the bits defined byKeyboardListener.MODIFIER_SHIFT,KeyboardListener.MODIFIER_CTRL, andKeyboardListener.MODIFIER_ALT. |
onKeyUp | void onKeyUp(Widget sender, char keyCode, int modifiers)(Code) | | Fired when the user releases a physical key.
Parameters: sender - the widget that was focused when the event occurred. Parameters: keyCode - the physical key that was released. Constants for this valueare defined in this interface with the KEY prefix. Parameters: modifiers - the modifier keys pressed at when the event occurred. Thisvalue is a combination of the bits defined byKeyboardListener.MODIFIER_SHIFT,KeyboardListener.MODIFIER_CTRL, andKeyboardListener.MODIFIER_ALT. |
|
|