UICloseEvent.Pre
final class UICloseEvent.Pre<U extends UI>
Extends: UICloseEvent<U>
Implements: ICancellableEvent
Package: dev.joid.lib.ui.event.impl.ui · Module: core · Source: UICloseEvent.java
The event of beforeClose, which can keep a UI open.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
Pre<U> | create(U ui) factory | Creates the event for a UI about to close. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | cancel() | Keeps the UI open: the closing does not start, and onClose does not fire. |
boolean | isCancelled() | If true, a listener kept the UI open. |
Creation details
Section titled “Creation details”create
Section titled “create”<U extends UI> Pre<U> create(U ui) factory
Creates the event for a UI about to close.
Method details
Section titled “Method details”cancel
Section titled “cancel”void cancel()
Keeps the UI open: the closing does not start, and onClose does not fire.
Throws an IllegalStateException in a MONITOR listener.
isCancelled
Section titled “isCancelled”boolean isCancelled()
If true, a listener kept the UI open.
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
