Class WKeyEvent

java.lang.Object
eu.webtoolkit.jwt.WKeyEvent
All Implemented Interfaces:
WAbstractEvent

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

    Constructors
    Constructor Description
    WKeyEvent()
    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