UIProperty
@interface UIProperty
Package: dev.joid.lib.ui.core.hook.property · Module: core · Source: UIProperty.java
Annotation that makes JOID remember a field of a UI on disk, from one run of the application to the next.
Description
Section titled “Description”Put it on a field of a UI that is neither static nor final.
JOID writes the field as JSON when the UI closes, reloads and when the JVM stops, and reads it back before init() at the next opening; the file is property/<class name>.property in the data folder.
Learn more
Section titled “Learn more”Elements
Section titled “Elements”| Type | Element | Default | Summary |
|---|---|---|---|
String | value | "" | Key of the field in the file; empty uses the name of the field. |
Element details
Section titled “Element details”String value() default ""
Key of the field in the file; empty uses the name of the field. Give a key to keep the saved value when you rename the field.
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
