Skip to content

UIChangeEvent.Pre

final class UIChangeEvent.Pre<U extends UI, V>
Extends: UIChangeEvent<U,V>
Implements: ICancellableEvent
Package: dev.joid.lib.ui.event.impl.ui · Module: core · Source: UIChangeEvent.java

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

ReturnsSignatureSummary
Pre<U,V>create(U ui, V previous, V value) factoryCreates the event for a UI, 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 UIChangeEvent (2)

getValue · getPrevious

Inherited from UIEvent (1)

getUi

<U extends UI, V> Pre<U,V> create(U ui, V previous, V value) factory

Creates the event for a UI, 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