public interface ItsNatKeyEvent extends org.w3c.dom.events.UIEvent, ItsNatDOMStdEvent
FireFox's key event implementation is considered de facto standard. Is based on an early version of DOM Level 2 (key event specification was removed later) as states Mozilla developer center and is similar to W3C DOM Level 3 KeyboardEvent.
MSIE 6, Safari and Opera key events are converted to this event type.
To create programatically a key event use DocumentEvent.createEvent(String)}
(ItsNatNode.isInternalMode()
must return false)
or ItsNatDocument.createEvent(String)
with "ItsNatKeyEvent" or "KeyEvents" as parameter. "KeyboardEvent", "KeyboardEvents" names
are reserved for future, final, DOM 3 implementation (DOM 3 is still a draft).
Default implementation inherits from java.util.EventObject
.
Modifier and Type | Field and Description |
---|---|
static int |
DOM_VK_0 |
static int |
DOM_VK_1 |
static int |
DOM_VK_2 |
static int |
DOM_VK_3 |
static int |
DOM_VK_4 |
static int |
DOM_VK_5 |
static int |
DOM_VK_6 |
static int |
DOM_VK_7 |
static int |
DOM_VK_8 |
static int |
DOM_VK_9 |
static int |
DOM_VK_A |
static int |
DOM_VK_ADD |
static int |
DOM_VK_ALT |
static int |
DOM_VK_B |
static int |
DOM_VK_BACK_QUOTE |
static int |
DOM_VK_BACK_SLASH |
static int |
DOM_VK_BACK_SPACE |
static int |
DOM_VK_C |
static int |
DOM_VK_CANCEL |
static int |
DOM_VK_CAPS_LOCK |
static int |
DOM_VK_CLEAR |
static int |
DOM_VK_CLOSE_BRACKET |
static int |
DOM_VK_COMMA |
static int |
DOM_VK_CONTEXT_MENU |
static int |
DOM_VK_CONTROL |
static int |
DOM_VK_D |
static int |
DOM_VK_DECIMAL |
static int |
DOM_VK_DELETE |
static int |
DOM_VK_DIVIDE |
static int |
DOM_VK_DOWN |
static int |
DOM_VK_E |
static int |
DOM_VK_END |
static int |
DOM_VK_ENTER |
static int |
DOM_VK_EQUALS |
static int |
DOM_VK_ESCAPE |
static int |
DOM_VK_F |
static int |
DOM_VK_F1 |
static int |
DOM_VK_F10 |
static int |
DOM_VK_F11 |
static int |
DOM_VK_F12 |
static int |
DOM_VK_F13 |
static int |
DOM_VK_F14 |
static int |
DOM_VK_F15 |
static int |
DOM_VK_F16 |
static int |
DOM_VK_F17 |
static int |
DOM_VK_F18 |
static int |
DOM_VK_F19 |
static int |
DOM_VK_F2 |
static int |
DOM_VK_F20 |
static int |
DOM_VK_F21 |
static int |
DOM_VK_F22 |
static int |
DOM_VK_F23 |
static int |
DOM_VK_F24 |
static int |
DOM_VK_F3 |
static int |
DOM_VK_F4 |
static int |
DOM_VK_F5 |
static int |
DOM_VK_F6 |
static int |
DOM_VK_F7 |
static int |
DOM_VK_F8 |
static int |
DOM_VK_F9 |
static int |
DOM_VK_G |
static int |
DOM_VK_H |
static int |
DOM_VK_HELP |
static int |
DOM_VK_HOME |
static int |
DOM_VK_I |
static int |
DOM_VK_INSERT |
static int |
DOM_VK_J |
static int |
DOM_VK_K |
static int |
DOM_VK_L |
static int |
DOM_VK_LEFT |
static int |
DOM_VK_M |
static int |
DOM_VK_META |
static int |
DOM_VK_MULTIPLY |
static int |
DOM_VK_N |
static int |
DOM_VK_NUM_LOCK |
static int |
DOM_VK_NUMPAD0 |
static int |
DOM_VK_NUMPAD1 |
static int |
DOM_VK_NUMPAD2 |
static int |
DOM_VK_NUMPAD3 |
static int |
DOM_VK_NUMPAD4 |
static int |
DOM_VK_NUMPAD5 |
static int |
DOM_VK_NUMPAD6 |
static int |
DOM_VK_NUMPAD7 |
static int |
DOM_VK_NUMPAD8 |
static int |
DOM_VK_NUMPAD9 |
static int |
DOM_VK_O |
static int |
DOM_VK_OPEN_BRACKET |
static int |
DOM_VK_P |
static int |
DOM_VK_PAGE_DOWN |
static int |
DOM_VK_PAGE_UP |
static int |
DOM_VK_PAUSE |
static int |
DOM_VK_PERIOD |
static int |
DOM_VK_PRINTSCREEN |
static int |
DOM_VK_Q |
static int |
DOM_VK_QUOTE |
static int |
DOM_VK_R |
static int |
DOM_VK_RETURN |
static int |
DOM_VK_RIGHT |
static int |
DOM_VK_S |
static int |
DOM_VK_SCROLL_LOCK |
static int |
DOM_VK_SEMICOLON |
static int |
DOM_VK_SEPARATOR |
static int |
DOM_VK_SHIFT |
static int |
DOM_VK_SLASH |
static int |
DOM_VK_SPACE |
static int |
DOM_VK_SUBTRACT |
static int |
DOM_VK_T |
static int |
DOM_VK_TAB |
static int |
DOM_VK_U |
static int |
DOM_VK_UP |
static int |
DOM_VK_V |
static int |
DOM_VK_W |
static int |
DOM_VK_X |
static int |
DOM_VK_Y |
static int |
DOM_VK_Z |
Modifier and Type | Method and Description |
---|---|
boolean |
getAltKey()
If the alternative (Alt) key modifier is activated.
|
int |
getCharCode()
Returns the Unicode value of a character key that was pressed as part of a keypress event.
|
boolean |
getCtrlKey()
If the Ctrl key modifier is activated.
|
int |
getKeyCode()
Returns the Unicode value of a non-character key in a keypress event or any key in any other type of keyboard event.
|
boolean |
getMetaKey()
If the Meta key modifier is activated.
|
boolean |
getShiftKey()
If the Shift key modifier is activated.
|
void |
initKeyEvent(java.lang.String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
org.w3c.dom.views.AbstractView viewArg,
boolean ctrlKeyArg,
boolean altKeyArg,
boolean shiftKeyArg,
boolean metaKeyArg,
int keyCodeArg,
int charCodeArg)
The
initKeyEvent method is used to initialize the value of
a ItsNatKeyEvent . |
getCurrentTarget
getClientDocument, getCommMode, getExtraParam, getExtraParamMultiple, getItsNatDocument, getItsNatEventListenerChain, getItsNatServletRequest, getItsNatServletResponse, setExtraParam
containsUserValueName, getUserValue, getUserValueNames, removeUserValue, setUserValue
static final int DOM_VK_CANCEL
static final int DOM_VK_HELP
static final int DOM_VK_BACK_SPACE
static final int DOM_VK_TAB
static final int DOM_VK_CLEAR
static final int DOM_VK_RETURN
static final int DOM_VK_ENTER
static final int DOM_VK_SHIFT
static final int DOM_VK_CONTROL
static final int DOM_VK_ALT
static final int DOM_VK_PAUSE
static final int DOM_VK_CAPS_LOCK
static final int DOM_VK_ESCAPE
static final int DOM_VK_SPACE
static final int DOM_VK_PAGE_UP
static final int DOM_VK_PAGE_DOWN
static final int DOM_VK_END
static final int DOM_VK_HOME
static final int DOM_VK_LEFT
static final int DOM_VK_UP
static final int DOM_VK_RIGHT
static final int DOM_VK_DOWN
static final int DOM_VK_PRINTSCREEN
static final int DOM_VK_INSERT
static final int DOM_VK_DELETE
static final int DOM_VK_0
static final int DOM_VK_1
static final int DOM_VK_2
static final int DOM_VK_3
static final int DOM_VK_4
static final int DOM_VK_5
static final int DOM_VK_6
static final int DOM_VK_7
static final int DOM_VK_8
static final int DOM_VK_9
static final int DOM_VK_SEMICOLON
static final int DOM_VK_EQUALS
static final int DOM_VK_A
static final int DOM_VK_B
static final int DOM_VK_C
static final int DOM_VK_D
static final int DOM_VK_E
static final int DOM_VK_F
static final int DOM_VK_G
static final int DOM_VK_H
static final int DOM_VK_I
static final int DOM_VK_J
static final int DOM_VK_K
static final int DOM_VK_L
static final int DOM_VK_M
static final int DOM_VK_N
static final int DOM_VK_O
static final int DOM_VK_P
static final int DOM_VK_Q
static final int DOM_VK_R
static final int DOM_VK_S
static final int DOM_VK_T
static final int DOM_VK_U
static final int DOM_VK_V
static final int DOM_VK_W
static final int DOM_VK_X
static final int DOM_VK_Y
static final int DOM_VK_Z
static final int DOM_VK_CONTEXT_MENU
static final int DOM_VK_NUMPAD0
static final int DOM_VK_NUMPAD1
static final int DOM_VK_NUMPAD2
static final int DOM_VK_NUMPAD3
static final int DOM_VK_NUMPAD4
static final int DOM_VK_NUMPAD5
static final int DOM_VK_NUMPAD6
static final int DOM_VK_NUMPAD7
static final int DOM_VK_NUMPAD8
static final int DOM_VK_NUMPAD9
static final int DOM_VK_MULTIPLY
static final int DOM_VK_ADD
static final int DOM_VK_SEPARATOR
static final int DOM_VK_SUBTRACT
static final int DOM_VK_DECIMAL
static final int DOM_VK_DIVIDE
static final int DOM_VK_F1
static final int DOM_VK_F2
static final int DOM_VK_F3
static final int DOM_VK_F4
static final int DOM_VK_F5
static final int DOM_VK_F6
static final int DOM_VK_F7
static final int DOM_VK_F8
static final int DOM_VK_F9
static final int DOM_VK_F10
static final int DOM_VK_F11
static final int DOM_VK_F12
static final int DOM_VK_F13
static final int DOM_VK_F14
static final int DOM_VK_F15
static final int DOM_VK_F16
static final int DOM_VK_F17
static final int DOM_VK_F18
static final int DOM_VK_F19
static final int DOM_VK_F20
static final int DOM_VK_F21
static final int DOM_VK_F22
static final int DOM_VK_F23
static final int DOM_VK_F24
static final int DOM_VK_NUM_LOCK
static final int DOM_VK_SCROLL_LOCK
static final int DOM_VK_COMMA
static final int DOM_VK_PERIOD
static final int DOM_VK_SLASH
static final int DOM_VK_BACK_QUOTE
static final int DOM_VK_OPEN_BRACKET
static final int DOM_VK_BACK_SLASH
static final int DOM_VK_CLOSE_BRACKET
static final int DOM_VK_QUOTE
static final int DOM_VK_META
void initKeyEvent(java.lang.String typeArg, boolean canBubbleArg, boolean cancelableArg, org.w3c.dom.views.AbstractView viewArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, int keyCodeArg, int charCodeArg)
initKeyEvent
method is used to initialize the value of
a ItsNatKeyEvent
.
This method may only be called before the
ItsNatKeyEvent
has been dispatched via the
dispatchEvent
method, though it may be called multiple
times during that phase if necessary. If called multiple times, the
final invocation takes precedence.
typeArg
- specifies the event type.canBubbleArg
- specifies whether or not the event can bubble.cancelableArg
- specifies whether or not the event's default
action can be prevented.viewArg
- specifies the Event
's AbstractView
.ctrlKeyArg
- specifies whether or not control key was depressed
during the Event
.altKeyArg
- specifies whether or not alt key was depressed during
the Event
.shiftKeyArg
- specifies whether or not shift key was depressed
during the Event
.metaKeyArg
- specifies whether or not meta key was depressed
during the Event
.keyCodeArg
- specifies the Unicode value of a non-character key in a keypress event or any key in any other type of keyboard event.charCodeArg
- specifies the Unicode value of a character key that was pressed as part of a keypress event.boolean getAltKey()
int getCharCode()
boolean getCtrlKey()
int getKeyCode()
boolean getMetaKey()
boolean getShiftKey()
Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.