UIDataOverlay
@interface UIDataOverlay
Package: dev.joid.lib.ui.core.data · Module: core · Source: UIDataOverlay.java
Annotation that makes a UI an overlay, drawn with the screens instead of replacing them.
Description
Section titled “Description”An overlay opens next to the current screen and stays open when the screen changes.
By default it is drawn below the screens and receives no input; render and interaction change that.
A UI cannot be both an overlay and a popup.
Learn more
Section titled “Learn more”Elements
Section titled “Elements”| Type | Element | Default | Summary |
|---|---|---|---|
boolean | active | false | If true, the UI is an overlay; the annotation without active = true changes nothing, and dev mode warns. |
UIDataOverlayRender | render | @UIDataOverlayRender | When the overlay is drawn: see UIDataOverlayRender. |
UIDataOverlayInteraction | interaction | @UIDataOverlayInteraction | Whether the overlay receives the input, and what it lets through: see UIDataOverlayInteraction. |
Element details
Section titled “Element details”active
Section titled “active”boolean active() default false
If true, the UI is an overlay; the annotation without active = true changes nothing, and dev mode warns.
render
Section titled “render”UIDataOverlayRender render() default @UIDataOverlayRender
When the overlay is drawn: see UIDataOverlayRender.
interaction
Section titled “interaction”UIDataOverlayInteraction interaction() default @UIDataOverlayInteraction
Whether the overlay receives the input, and what it lets through: see UIDataOverlayInteraction.
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
