ICancellableEvent
interface ICancellableEvent
Known subtypes: NodeChangeEvent.Pre, NodeDragEvent.Pre, NodeFieldChangeEvent.Pre, NodeReorderEvent.Pre, NodeScrollEvent.Pre, UIChangeEvent.Pre, UICloseEvent.Pre
Package: dev.joid.lib.ui.event · Module: core · Source: ICancellableEvent.java
An event that a listener cancels to refuse the change it announces.
Description
Section titled “Description”The beforeX events implement it: a beforeMove, beforeChange or beforeClose listener that calls cancel() refuses the change, and the listeners after it do not run, except the MONITOR ones.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | cancel() abstract | Refuses the change: it does not apply, and its onX event does not fire. |
boolean | isCancelled() abstract | If true, a listener cancelled the event. |
Method details
Section titled “Method details”cancel
Section titled “cancel”void cancel() abstract
Refuses the change: it does not apply, and its onX event does not fire.
isCancelled
Section titled “isCancelled”boolean isCancelled() abstract
If true, a listener cancelled the event.
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
