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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
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. |
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 UIChangeEvent (2)
Creation details
Section titled “Creation details”create
Section titled “create”<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.
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
