Skip to content

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.

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.

ReturnsSignatureSummary
NodeCharEvent<N>create(N node, int codepoint, IConsumableEvent source) factoryCreates the event for a node and a code point.

ReturnsSignatureSummary
intgetCodepoint()Returns the Unicode code point of the typed character; Character.toChars turns it into text.
Inherited from NodeInputEvent (2)

consume · isConsumed

Inherited from NodeEvent (1)

getNode

<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.

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

Report a problem with this page