UICloseEvent
abstract class UICloseEvent<U extends UI>
Extends: UIEvent<U>
Known subtypes: UICloseEvent.Pre, UICloseEvent.Post
Package: dev.joid.lib.ui.event.impl.ui · Module: core · Source: UICloseEvent.java
The closing of a UI, in a cancellable Pre before it starts and a Post once the UI is closed.
Description
Section titled “Description”The Pre fires for JOID.close(...), Escape on a closeable UI and a screen that a new screen replaces; the Post fires on every closing, forceClose, closeAll(), renew() and the end of the program included.
UI.beforeClose receives a UICloseEvent.Pre and can keep the UI open; UI.onClose receives a UICloseEvent.Post after the closing transition, once the UI saved its stores and its remembered fields.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”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
