NodeCharEvent
final class NodeCharEvent<N extends Node>
Extends: NodeInputEvent<N>
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeCharEvent.java
The event of handleCharTyped on a node, with one typed character as a Unicode code point.
Description
Section titled “Description”The character comes with the layout and the Shift key applied; control characters, such as the one of Enter, never arrive. Every visible node of the UI receives it, whether the pointer is over it or not.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
NodeCharEvent<N> | create(N node, int codepoint, IConsumableEvent source) factory | Creates the event for a node and a code point. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int | getCodepoint() | Returns the Unicode code point of the typed character; Character.toChars turns it into text. |
Inherited from NodeInputEvent (2)
Creation details
Section titled “Creation details”create
Section titled “create”<N extends Node> NodeCharEvent<N> create(N node, int codepoint, IConsumableEvent source) factory
Creates the event for a node and a code point.
source is the input that the event belongs to, consumed with it, or null for an input of its own.
Method details
Section titled “Method details”getCodepoint
Section titled “getCodepoint”int getCodepoint()
Returns the Unicode code point of the typed character; Character.toChars turns it into text.
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
