Annotate in Java

From Documentation

Annotate in Java

You could annotate a component or a property in Java by the use of ComponentCtrl.addAnnotation(String, String, Map).

For example,

Listbox listbox = new Listbox();
listbox.addAnnotation(null, "foo", null); //null in the first argument means to annotate listbox
Label label = new Label();
label.addAnnotation("value", "fun", null); //annotate the value property of label

Last Update : 2024/02/05

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.