UIChangeEvent
abstract class UIChangeEvent<U extends UI, V>
Extends: UIEvent<U>
Known subtypes: UIChangeEvent.Pre, UIChangeEvent.Post
Package: dev.joid.lib.ui.event.impl.ui · Module: core · Source: UIChangeEvent.java
The change of a value of a UI, with the value before and the value after, in a cancellable Pre and a Post.
Description
Section titled “Description”UI.beforeZoom receives a UIChangeEvent.Pre and can refuse a new zoom; UI.onZoom receives a UIChangeEvent.Post once the zoom changed.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
V | getValue() | Returns the value after the change: the value asked for in Pre, the value applied in Post. |
V | getPrevious() | Returns the value before the change. |
Method details
Section titled “Method details”getValue
Section titled “getValue”V getValue()
Returns the value after the change: the value asked for in Pre, the value applied in Post.
getPrevious
Section titled “getPrevious”V getPrevious()
Returns the value before 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
