Skip to content

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.

ReturnsSignatureSummary
Pre<U>create(U ui) factoryCreates the event for a UI about to close.

ReturnsSignatureSummary
voidcancel()Keeps the UI open: the closing does not start, and onClose does not fire.
booleanisCancelled()If true, a listener kept the UI open.
Inherited from UIEvent (1)

getUi

<U extends UI> Pre<U> create(U ui) factory

Creates the event for a UI about to close.

void cancel()

Keeps the UI open: the closing does not start, and onClose does not fire. Throws an IllegalStateException in a MONITOR listener.

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

Report a problem with this page