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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
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. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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. |
Inherited from UIInputEvent (2)
Creation details
Section titled “Creation details”create
Section titled “create”<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.
Method details
Section titled “Method details”getKey
Section titled “getKey”Key getKey()
Returns the key that the layout of the user names; use it for a shortcut.
getPhysicalKey
Section titled “getPhysicalKey”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
