Annotate in Java

From Documentation
Revision as of 08:49, 17 November 2010 by Tomyeh (talk | contribs)


Annotate in Java


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

For example,

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

Version History

Last Update : 2010/11/17


Version Date Content
     



Last Update : 2010/11/17

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