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.
Description
Section titled “Description”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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
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. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
N | getNode() | Returns the node that the event concerns, typed as the node that the listener was added on. |
Creation details
Section titled “Creation details”create
Section titled “create”<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
Section titled “NodeEvent”NodeEvent(N node) protected
Creates an event about a node, from the constructor of a subclass.
Method details
Section titled “Method details”getNode
Section titled “getNode”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
