Annotate in Java
You could annotate a component or a property in Java by the use of org.zkoss.zk.ui.sys.ComponentCtrl#addAnnotation(java.lang.String, java.lang.String, java.util.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