Skip to content

UIKeyEvent

final class UIKeyEvent<U extends UI>
Extends: UIInputEvent<U>
Package: dev.joid.lib.ui.event.impl.ui · Module: core · Source: UIKeyEvent.java

The event of handleKeyPressed and handleKeyReleased on a UI, with the key that the layout names and its place on the keyboard.

ReturnsSignatureSummary
UIKeyEvent<U>create(U ui, Key physicalKey, Key key) factoryCreates the event for a UI, the place of the key and the key that the layout names.

ReturnsSignatureSummary
KeygetKey()Returns the key that the layout of the user names; use it for a shortcut.
KeygetPhysicalKey()Returns the place of the key on a US QWERTY keyboard, whatever the layout; use it for a movement.
Inherited from UIInputEvent (2)

consume · isConsumed

Inherited from UIEvent (1)

getUi

<U extends UI> UIKeyEvent<U> create(U ui, Key physicalKey, Key key) factory

Creates the event for a UI, the place of the key and the key that the layout names.

Key getKey()

Returns the key that the layout of the user names; use it for a shortcut.

Key getPhysicalKey()

Returns the place of the key on a US QWERTY keyboard, whatever the layout; use it for a movement.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page