Package org.loboevolution.html.js.events
Class KeyboardEventImpl
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.js.events.EventImpl
org.loboevolution.html.js.events.UIEventImpl
org.loboevolution.html.js.events.KeyboardEventImpl
- All Implemented Interfaces:
Event
,KeyboardEvent
,UIEvent
,ScriptableDelegate
-
Field Summary
Fields inherited from interface org.loboevolution.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE, NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
The deprecated KeyboardEvent.keyCode read-only property represents a system and implementation dependent numerical code identifying the unmodified value of the pressed key.getModifierState
(String modifierState) The KeyboardEvent.getModifierState() method returns the current state of the specified modifier key: true if the modifier is active (that is the modifier key is pressed or locked), otherwise, false.void
initKeyboardEvent
(String type) The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object.void
initKeyboardEvent
(String type, Boolean bubbles) The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object.void
initKeyboardEvent
(String type, Boolean bubbles, boolean cancelable) The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object.void
initKeyboardEvent
(String type, Boolean bubbles, boolean cancelable, Window view) The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object.void
initKeyboardEvent
(String type, Boolean bubbles, boolean cancelable, Window view, String key) The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object.void
initKeyboardEvent
(String type, Boolean bubbles, boolean cancelable, Window view, String key, Double location) The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object.void
initKeyboardEvent
(String type, Boolean bubbles, boolean cancelable, Window view, String key, Double location, boolean ctrlKey) The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object.void
initKeyboardEvent
(String type, Boolean bubbles, boolean cancelable, Window view, String key, Double location, boolean ctrlKey, boolean altKey) The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object.void
initKeyboardEvent
(String type, Boolean bubbles, boolean cancelable, Window view, String key, Double location, boolean ctrlKey, boolean altKey, boolean shiftKey) The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object.void
initKeyboardEvent
(String type, Boolean bubbles, boolean cancelable, Window view, String key, Double location, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey) The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object.toString()
Methods inherited from class org.loboevolution.html.js.events.UIEventImpl
initUIEvent, initUIEvent, initUIEvent, initUIEvent, initUIEvent, setUIEventParams
Methods inherited from class org.loboevolution.html.js.events.EventImpl
getBoolVal, getComposedPath, getDefaultPrevented, getDoubleVal, getLongVal, getReturnValue, getSrcElement, getStopImmediatePropagation, getStopPropagation, getStringVal, getTimeStamp, initEvent, initEvent, initEvent, isPropogationStopped, preventDefault, setParams, setReturnValue
Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.loboevolution.events.Event
getBubbles, getCancelable, getComposed, getComposedPath, getCurrentTarget, getDefaultPrevented, getEventPhase, getReturnValue, getSrcElement, getStopImmediatePropagation, getStopPropagation, getTarget, getTimeStamp, getTrusted, getType, initEvent, initEvent, initEvent, preventDefault
Methods inherited from interface org.loboevolution.events.KeyboardEvent
getAltKey, getCharCode, getCode, getCtrlKey, getIsComposing, getKey, getLocation, getMetaKey, getRepeat, getShiftKey
Methods inherited from interface org.loboevolution.events.UIEvent
getDetail, getView, getWhich, initUIEvent, initUIEvent, initUIEvent, initUIEvent, initUIEvent
-
Constructor Details
-
KeyboardEventImpl
Constructor for KeyboardEventImpl.
- Parameters:
params
- event constructor parameters
-
-
Method Details
-
getModifierState
Description copied from interface:KeyboardEvent
The KeyboardEvent.getModifierState() method returns the current state of the specified modifier key: true if the modifier is active (that is the modifier key is pressed or locked), otherwise, false.- Specified by:
getModifierState
in interfaceKeyboardEvent
- See Also:
-
getKeyCode
public int getKeyCode()Description copied from interface:KeyboardEvent
The deprecated KeyboardEvent.keyCode read-only property represents a system and implementation dependent numerical code identifying the unmodified value of the pressed key.- Specified by:
getKeyCode
in interfaceKeyboardEvent
- See Also:
-
initKeyboardEvent
public void initKeyboardEvent(String type, Boolean bubbles, boolean cancelable, Window view, String key, Double location, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey) Description copied from interface:KeyboardEvent
The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko won't support this feature since implementing this method as experimental broke existing web apps (see bug 999645). Web applications should use constructor instead of this if it's available.- Specified by:
initKeyboardEvent
in interfaceKeyboardEvent
- See Also:
-
initKeyboardEvent
public void initKeyboardEvent(String type, Boolean bubbles, boolean cancelable, Window view, String key, Double location, boolean ctrlKey, boolean altKey, boolean shiftKey) Description copied from interface:KeyboardEvent
The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko won't support this feature since implementing this method as experimental broke existing web apps (see bug 999645). Web applications should use constructor instead of this if it's available.- Specified by:
initKeyboardEvent
in interfaceKeyboardEvent
- See Also:
-
initKeyboardEvent
public void initKeyboardEvent(String type, Boolean bubbles, boolean cancelable, Window view, String key, Double location, boolean ctrlKey, boolean altKey) Description copied from interface:KeyboardEvent
The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko won't support this feature since implementing this method as experimental broke existing web apps (see bug 999645). Web applications should use constructor instead of this if it's available.- Specified by:
initKeyboardEvent
in interfaceKeyboardEvent
- See Also:
-
initKeyboardEvent
public void initKeyboardEvent(String type, Boolean bubbles, boolean cancelable, Window view, String key, Double location, boolean ctrlKey) Description copied from interface:KeyboardEvent
The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko won't support this feature since implementing this method as experimental broke existing web apps (see bug 999645). Web applications should use constructor instead of this if it's available.- Specified by:
initKeyboardEvent
in interfaceKeyboardEvent
- See Also:
-
initKeyboardEvent
public void initKeyboardEvent(String type, Boolean bubbles, boolean cancelable, Window view, String key, Double location) Description copied from interface:KeyboardEvent
The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko won't support this feature since implementing this method as experimental broke existing web apps (see bug 999645). Web applications should use constructor instead of this if it's available.- Specified by:
initKeyboardEvent
in interfaceKeyboardEvent
- See Also:
-
initKeyboardEvent
public void initKeyboardEvent(String type, Boolean bubbles, boolean cancelable, Window view, String key) Description copied from interface:KeyboardEvent
The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko won't support this feature since implementing this method as experimental broke existing web apps (see bug 999645). Web applications should use constructor instead of this if it's available.- Specified by:
initKeyboardEvent
in interfaceKeyboardEvent
- See Also:
-
initKeyboardEvent
Description copied from interface:KeyboardEvent
The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko won't support this feature since implementing this method as experimental broke existing web apps (see bug 999645). Web applications should use constructor instead of this if it's available.- Specified by:
initKeyboardEvent
in interfaceKeyboardEvent
- See Also:
-
initKeyboardEvent
Description copied from interface:KeyboardEvent
The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko won't support this feature since implementing this method as experimental broke existing web apps (see bug 999645). Web applications should use constructor instead of this if it's available.- Specified by:
initKeyboardEvent
in interfaceKeyboardEvent
- See Also:
-
initKeyboardEvent
Description copied from interface:KeyboardEvent
The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko won't support this feature since implementing this method as experimental broke existing web apps (see bug 999645). Web applications should use constructor instead of this if it's available.- Specified by:
initKeyboardEvent
in interfaceKeyboardEvent
- See Also:
-
initKeyboardEvent
Description copied from interface:KeyboardEvent
The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko won't support this feature since implementing this method as experimental broke existing web apps (see bug 999645). Web applications should use constructor instead of this if it's available.- Specified by:
initKeyboardEvent
in interfaceKeyboardEvent
- See Also:
-
toString
- Overrides:
toString
in classUIEventImpl
-