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.
Description
Section titled “Description”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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
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. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | cancel() | Refuses the change: the value stays, and the onX event does not fire. |
boolean | isCancelled() | If true, a listener refused the change. |
Inherited from NodeChangeEvent (2)
Creation details
Section titled “Creation details”create
Section titled “create”<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.
Method details
Section titled “Method details”cancel
Section titled “cancel”void cancel()
Refuses the change: the value stays, and the onX event does not fire.
Throws an IllegalStateException in a MONITOR listener.
isCancelled
Section titled “isCancelled”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
