Skip to content

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.

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.

ReturnsSignatureSummary
voidcancel() abstractRefuses the change: it does not apply, and its onX event does not fire.
booleanisCancelled() abstractIf true, a listener cancelled the event.

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.


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