Skip to content

NodeChangeEvent.Pre

final class NodeChangeEvent.Pre<N extends Node, V>
Extends: NodeChangeEvent<N,V>
Implements: ICancellableEvent
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeChangeEvent.java

The event of a beforeX listener of a node, which can refuse the change it announces.

It fires for a change that a gesture or a call such as move(...) or change(...) asks for; the setters and the bound signals are never refused.

ReturnsSignatureSummary
Pre<N,V>create(N node, V previous, V value) factoryCreates the event for a node, the value now and the value asked for.

ReturnsSignatureSummary
voidcancel()Refuses the change: the value stays, and the onX event does not fire.
booleanisCancelled()If true, a listener refused the change.
Inherited from NodeChangeEvent (2)

getValue · getPrevious

Inherited from NodeEvent (1)

getNode

<N extends Node, V> Pre<N,V> create(N node, V previous, V value) factory

Creates the event for a node, the value now and the value asked for.

void cancel()

Refuses the change: the value stays, and the onX event does not fire. Throws an IllegalStateException in a MONITOR listener.

boolean isCancelled()

If true, a listener refused 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