Skip to content

NodeChangeEvent

abstract class NodeChangeEvent<N extends Node, V>
Extends: NodeEvent<N>
Known subtypes: NodeChangeEvent.Pre, NodeChangeEvent.Post
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeChangeEvent.java

The change of a value of a node, with the value before and the value after, in a cancellable Pre and a Post.

A beforeX listener receives a NodeChangeEvent.Pre before the change and can refuse it; an onX listener receives a NodeChangeEvent.Post once the value changed. The moves of a node (Node.beforeMove, Node.onMove), the value of a checkbox, a toggle or a choice (beforeChange, onChange), the focus, the cursor and the selection of a field, the opening of a selector, and the zoom and the rotation of a ModelViewerNode use it.

ReturnsSignatureSummary
VgetValue()Returns the value after the change: the value asked for in Pre, the value applied in Post.
VgetPrevious()Returns the value before the change.
Inherited from NodeEvent (1)

getNode

V getValue()

Returns the value after the change: the value asked for in Pre, the value applied in Post.

V getPrevious()

Returns the value before the change.


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