Skip to content

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.

UI.beforeZoom receives a UIChangeEvent.Pre and can refuse a new zoom; UI.onZoom receives a UIChangeEvent.Post once the zoom changed.

ReturnsSignatureSummary
VgetValue()Returns the value after the change: the value asked for in Pre, the value applied in Post.
VgetPrevious()Returns the value before the change.
Inherited from UIEvent (1)

getUi

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.


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