Skip to content

NodeEvent

class NodeEvent<N extends Node>
Extends: Event
Known subtypes: NodeAnimateEvent, NodeChangeEvent, NodeChildEvent, NodeDragEvent, NodeDrawEvent, NodeFieldChangeEvent, NodeHoverEvent, NodeInputEvent, NodeProgressEvent, NodeReorderEvent, NodeScrollEvent, NodeWatchEvent
Package: dev.joid.lib.ui.event · Module: core · Source: NodeEvent.java

An event about a node, and the event of the node events that carry nothing else, such as onInit or onDetach.

Node.onInit, Node.onUpdate, Node.onMount, Node.onDetach, the playback events of ResourcePlayerNode and LineFieldNode.onSubmit receive a plain NodeEvent; the other node events extend it.

ReturnsSignatureSummary
NodeEvent<N>create(N node) factoryCreates an event about a node, for a node that fires an event of its own.
NodeEvent(N node) protectedCreates an event about a node, from the constructor of a subclass.

ReturnsSignatureSummary
NgetNode()Returns the node that the event concerns, typed as the node that the listener was added on.

<N extends Node> NodeEvent<N> create(N node) factory

Creates an event about a node, for a node that fires an event of its own.

NodeEvent(N node) protected

Creates an event about a node, from the constructor of a subclass.

N getNode()

Returns the node that the event concerns, typed as the node that the listener was added on.


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