Class KeyboardEventImpl

All Implemented Interfaces:
Event, KeyboardEvent, UIEvent, ScriptableDelegate

public class KeyboardEventImpl extends UIEventImpl implements KeyboardEvent
  • Constructor Details

    • KeyboardEventImpl

      public KeyboardEventImpl(Object[] params)

      Constructor for KeyboardEventImpl.

      Parameters:
      params - event constructor parameters
  • Method Details

    • getModifierState

      public Boolean getModifierState(String modifierState)
      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 interface KeyboardEvent
      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 interface KeyboardEvent
      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 interface KeyboardEvent
      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 interface KeyboardEvent
      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 interface KeyboardEvent
      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 interface KeyboardEvent
      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 interface KeyboardEvent
      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 interface KeyboardEvent
      See Also:
    • initKeyboardEvent

      public void initKeyboardEvent(String type, Boolean bubbles, boolean cancelable, Window view)
      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 interface KeyboardEvent
      See Also:
    • initKeyboardEvent

      public void initKeyboardEvent(String type, Boolean bubbles, boolean cancelable)
      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 interface KeyboardEvent
      See Also:
    • initKeyboardEvent

      public void initKeyboardEvent(String type, Boolean bubbles)
      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 interface KeyboardEvent
      See Also:
    • initKeyboardEvent

      public void initKeyboardEvent(String type)
      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 interface KeyboardEvent
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class UIEventImpl