From Documentation

Jump to: navigation, search






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

Version History

Last Update : 2012/2/8


Version Date Content
     




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