| |
|
| org.itsnat.core.event.KeyEvent
All known Subclasses: org.itsnat.impl.core.event.fromserv.dom.ServerKeyEventImpl, org.itsnat.impl.core.event.client2serv.dom.msie.MSIEKeyEventImpl, org.itsnat.impl.core.event.client2serv.dom.w3c.W3CKeyEventImpl,
KeyEvent | public interface KeyEvent extends UIEvent(Code) | | This interface is a Java DOM version of Mozilla/FireFox's KeyEvent
interface because there is no W3C DOM Level 2 key event interface.
Is similar to W3C DOM Level 3 KeyboardEvent.
MSIE 6 key events are converted to this event type.
Default implementation inherits from java.util.EventObject .
More info.
author: Jose Maria Arranz Santamaria |
Method Summary | |
public boolean | getAltKey() If the alternative (Alt) key modifier is activated. | public long | getCharCode() Returns the Unicode value of a character key that was pressed as part of a keypress event. | public boolean | getCtrlKey() If the Ctrl key modifier is activated. | public long | getKeyCode() Returns the Unicode value of a non-character key in a keypress event or any key in any other type of keyboard event. | public boolean | getMetaKey() If the Meta key modifier is activated. | public boolean | getShiftKey() If the Shift key modifier is activated. | public void | initKeyEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, long keyCodeArg, long charCodeArg) The initKeyEvent method is used to initialize the value of
a KeyEvent created through the DocumentEvent
interface. |
DOM_VK_0 | public long DOM_VK_0(Code) | | |
DOM_VK_1 | public long DOM_VK_1(Code) | | |
DOM_VK_2 | public long DOM_VK_2(Code) | | |
DOM_VK_3 | public long DOM_VK_3(Code) | | |
DOM_VK_4 | public long DOM_VK_4(Code) | | |
DOM_VK_5 | public long DOM_VK_5(Code) | | |
DOM_VK_6 | public long DOM_VK_6(Code) | | |
DOM_VK_7 | public long DOM_VK_7(Code) | | |
DOM_VK_8 | public long DOM_VK_8(Code) | | |
DOM_VK_9 | public long DOM_VK_9(Code) | | |
DOM_VK_A | public long DOM_VK_A(Code) | | |
DOM_VK_ADD | public long DOM_VK_ADD(Code) | | |
DOM_VK_ALT | public long DOM_VK_ALT(Code) | | |
DOM_VK_B | public long DOM_VK_B(Code) | | |
DOM_VK_BACK_QUOTE | public long DOM_VK_BACK_QUOTE(Code) | | |
DOM_VK_BACK_SLASH | public long DOM_VK_BACK_SLASH(Code) | | |
DOM_VK_BACK_SPACE | public long DOM_VK_BACK_SPACE(Code) | | |
DOM_VK_C | public long DOM_VK_C(Code) | | |
DOM_VK_CANCEL | public long DOM_VK_CANCEL(Code) | | |
DOM_VK_CAPS_LOCK | public long DOM_VK_CAPS_LOCK(Code) | | |
DOM_VK_CLEAR | public long DOM_VK_CLEAR(Code) | | |
DOM_VK_CLOSE_BRACKET | public long DOM_VK_CLOSE_BRACKET(Code) | | |
DOM_VK_COMMA | public long DOM_VK_COMMA(Code) | | |
DOM_VK_CONTEXT_MENU | public long DOM_VK_CONTEXT_MENU(Code) | | |
DOM_VK_CONTROL | public long DOM_VK_CONTROL(Code) | | |
DOM_VK_D | public long DOM_VK_D(Code) | | |
DOM_VK_DECIMAL | public long DOM_VK_DECIMAL(Code) | | |
DOM_VK_DELETE | public long DOM_VK_DELETE(Code) | | |
DOM_VK_DIVIDE | public long DOM_VK_DIVIDE(Code) | | |
DOM_VK_DOWN | public long DOM_VK_DOWN(Code) | | |
DOM_VK_E | public long DOM_VK_E(Code) | | |
DOM_VK_END | public long DOM_VK_END(Code) | | |
DOM_VK_ENTER | public long DOM_VK_ENTER(Code) | | |
DOM_VK_EQUALS | public long DOM_VK_EQUALS(Code) | | |
DOM_VK_ESCAPE | public long DOM_VK_ESCAPE(Code) | | |
DOM_VK_F | public long DOM_VK_F(Code) | | |
DOM_VK_F1 | public long DOM_VK_F1(Code) | | |
DOM_VK_F10 | public long DOM_VK_F10(Code) | | |
DOM_VK_F11 | public long DOM_VK_F11(Code) | | |
DOM_VK_F12 | public long DOM_VK_F12(Code) | | |
DOM_VK_F13 | public long DOM_VK_F13(Code) | | |
DOM_VK_F14 | public long DOM_VK_F14(Code) | | |
DOM_VK_F15 | public long DOM_VK_F15(Code) | | |
DOM_VK_F16 | public long DOM_VK_F16(Code) | | |
DOM_VK_F17 | public long DOM_VK_F17(Code) | | |
DOM_VK_F18 | public long DOM_VK_F18(Code) | | |
DOM_VK_F19 | public long DOM_VK_F19(Code) | | |
DOM_VK_F2 | public long DOM_VK_F2(Code) | | |
DOM_VK_F20 | public long DOM_VK_F20(Code) | | |
DOM_VK_F21 | public long DOM_VK_F21(Code) | | |
DOM_VK_F22 | public long DOM_VK_F22(Code) | | |
DOM_VK_F23 | public long DOM_VK_F23(Code) | | |
DOM_VK_F24 | public long DOM_VK_F24(Code) | | |
DOM_VK_F3 | public long DOM_VK_F3(Code) | | |
DOM_VK_F4 | public long DOM_VK_F4(Code) | | |
DOM_VK_F5 | public long DOM_VK_F5(Code) | | |
DOM_VK_F6 | public long DOM_VK_F6(Code) | | |
DOM_VK_F7 | public long DOM_VK_F7(Code) | | |
DOM_VK_F8 | public long DOM_VK_F8(Code) | | |
DOM_VK_F9 | public long DOM_VK_F9(Code) | | |
DOM_VK_G | public long DOM_VK_G(Code) | | |
DOM_VK_H | public long DOM_VK_H(Code) | | |
DOM_VK_HELP | public long DOM_VK_HELP(Code) | | |
DOM_VK_HOME | public long DOM_VK_HOME(Code) | | |
DOM_VK_I | public long DOM_VK_I(Code) | | |
DOM_VK_INSERT | public long DOM_VK_INSERT(Code) | | |
DOM_VK_J | public long DOM_VK_J(Code) | | |
DOM_VK_K | public long DOM_VK_K(Code) | | |
DOM_VK_L | public long DOM_VK_L(Code) | | |
DOM_VK_LEFT | public long DOM_VK_LEFT(Code) | | |
DOM_VK_M | public long DOM_VK_M(Code) | | |
DOM_VK_META | public long DOM_VK_META(Code) | | |
DOM_VK_MULTIPLY | public long DOM_VK_MULTIPLY(Code) | | |
DOM_VK_N | public long DOM_VK_N(Code) | | |
DOM_VK_NUMPAD0 | public long DOM_VK_NUMPAD0(Code) | | |
DOM_VK_NUMPAD1 | public long DOM_VK_NUMPAD1(Code) | | |
DOM_VK_NUMPAD2 | public long DOM_VK_NUMPAD2(Code) | | |
DOM_VK_NUMPAD3 | public long DOM_VK_NUMPAD3(Code) | | |
DOM_VK_NUMPAD4 | public long DOM_VK_NUMPAD4(Code) | | |
DOM_VK_NUMPAD5 | public long DOM_VK_NUMPAD5(Code) | | |
DOM_VK_NUMPAD6 | public long DOM_VK_NUMPAD6(Code) | | |
DOM_VK_NUMPAD7 | public long DOM_VK_NUMPAD7(Code) | | |
DOM_VK_NUMPAD8 | public long DOM_VK_NUMPAD8(Code) | | |
DOM_VK_NUMPAD9 | public long DOM_VK_NUMPAD9(Code) | | |
DOM_VK_NUM_LOCK | public long DOM_VK_NUM_LOCK(Code) | | |
DOM_VK_O | public long DOM_VK_O(Code) | | |
DOM_VK_OPEN_BRACKET | public long DOM_VK_OPEN_BRACKET(Code) | | |
DOM_VK_P | public long DOM_VK_P(Code) | | |
DOM_VK_PAGE_DOWN | public long DOM_VK_PAGE_DOWN(Code) | | |
DOM_VK_PAGE_UP | public long DOM_VK_PAGE_UP(Code) | | |
DOM_VK_PAUSE | public long DOM_VK_PAUSE(Code) | | |
DOM_VK_PERIOD | public long DOM_VK_PERIOD(Code) | | |
DOM_VK_PRINTSCREEN | public long DOM_VK_PRINTSCREEN(Code) | | |
DOM_VK_Q | public long DOM_VK_Q(Code) | | |
DOM_VK_QUOTE | public long DOM_VK_QUOTE(Code) | | |
DOM_VK_R | public long DOM_VK_R(Code) | | |
DOM_VK_RETURN | public long DOM_VK_RETURN(Code) | | |
DOM_VK_RIGHT | public long DOM_VK_RIGHT(Code) | | |
DOM_VK_S | public long DOM_VK_S(Code) | | |
DOM_VK_SCROLL_LOCK | public long DOM_VK_SCROLL_LOCK(Code) | | |
DOM_VK_SEMICOLON | public long DOM_VK_SEMICOLON(Code) | | |
DOM_VK_SEPARATOR | public long DOM_VK_SEPARATOR(Code) | | |
DOM_VK_SHIFT | public long DOM_VK_SHIFT(Code) | | |
DOM_VK_SLASH | public long DOM_VK_SLASH(Code) | | |
DOM_VK_SPACE | public long DOM_VK_SPACE(Code) | | |
DOM_VK_SUBTRACT | public long DOM_VK_SUBTRACT(Code) | | |
DOM_VK_T | public long DOM_VK_T(Code) | | |
DOM_VK_TAB | public long DOM_VK_TAB(Code) | | |
DOM_VK_U | public long DOM_VK_U(Code) | | |
DOM_VK_UP | public long DOM_VK_UP(Code) | | |
DOM_VK_V | public long DOM_VK_V(Code) | | |
DOM_VK_W | public long DOM_VK_W(Code) | | |
DOM_VK_X | public long DOM_VK_X(Code) | | |
DOM_VK_Y | public long DOM_VK_Y(Code) | | |
DOM_VK_Z | public long DOM_VK_Z(Code) | | |
getAltKey | public boolean getAltKey()(Code) | | If the alternative (Alt) key modifier is activated.
true if Alt is activated. |
getCharCode | public long getCharCode()(Code) | | Returns the Unicode value of a character key that was pressed as part of a keypress event.
the character code. |
getCtrlKey | public boolean getCtrlKey()(Code) | | If the Ctrl key modifier is activated.
true if Ctrl is activated. |
getKeyCode | public long getKeyCode()(Code) | | Returns the Unicode value of a non-character key in a keypress event or any key in any other type of keyboard event.
the key code. |
getMetaKey | public boolean getMetaKey()(Code) | | If the Meta key modifier is activated. Only Mac keyboards.
true if Meta is activated. |
getShiftKey | public boolean getShiftKey()(Code) | | If the Shift key modifier is activated.
true if Shift is activated. |
initKeyEvent | public void initKeyEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, long keyCodeArg, long charCodeArg)(Code) | | The initKeyEvent method is used to initialize the value of
a KeyEvent created through the DocumentEvent
interface. This method may only be called before the
KeyEvent 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.
Parameters: typeArg - specifies the event type. Parameters: canBubbleArg - specifies whether or not the event can bubble. Parameters: cancelableArg - specifies whether or not the event's default action can be prevented. Parameters: viewArg - specifies the Event 's AbstractView . Parameters: ctrlKeyArg - specifies whether or not control key was depressed during the Event . Parameters: altKeyArg - specifies whether or not alt key was depressed during the Event . Parameters: shiftKeyArg - specifies whether or not shift key was depressed during the Event . Parameters: metaKeyArg - specifies whether or not meta key was depressed during the Event . Parameters: keyCodeArg - specifies the Unicode value of a non-character key in a keypress event or any key in any other type of keyboard event. Parameters: charCodeArg - specifies the Unicode value of a character key that was pressed as part of a keypress event. |
|
|
|