@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface SaveThisProperty
Component.getSettings()
will be saved and loaded without needing this annotation; this annotation should only
be placed on properties that widget authors do not want to be made user-configurable through the properties editor,
or when the name of the property is not particularly descriptive.
For example, this will save a property named foo
with the name of the property ("foo"):
{@code
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
name
The name to save the property as.
|