Class WKeyEvent

All Implemented Interfaces:

public class WKeyEvent
extends java.lang.Object
implements WAbstractEvent
A class providing details for a keyboard event.

A key event is associated with the WInteractWidget.keyWentDown(), WInteractWidget.keyWentUp() and WInteractWidget.keyPressed() signals.

  • Constructor Summary

    Constructor Description
    Default constructor.
  • Method Summary

    Modifier and Type Method Description
    WAbstractEvent createFromJSEvent​(eu.webtoolkit.jwt.JavaScriptEvent jsEvent)
    Internal method.
    int getCharCode()
    Returns the unicode character code.
    Key getKey()
    Returns the key code key that was pressed or released.
    java.util.EnumSet<KeyboardModifier> getModifiers()
    Returns keyboard modifiers.
    java.lang.String getText()
    The (unicode) text that this key generated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait