Annotate in Java"
From Documentation
Line 1: | Line 1: | ||
{{ZKDevelopersReferencePageHeader}} | {{ZKDevelopersReferencePageHeader}} | ||
− | You could annotate a component in Java by use of <javadoc method="addAnnotation(java.lang.String, java.util.Map)" type="interface">org.zkoss.zk.ui.sys.ComponentCtrl</javadoc>, and annotate a property by <javadoc method="addAnnotation(java.lang.String, java.lang.String, java.util.Map)" type="interface">org.zkoss.zk.ui.sys.ComponentCtrl</javadoc>. | + | You could annotate a component in Java by the use of <javadoc method="addAnnotation(java.lang.String, java.util.Map)" type="interface">org.zkoss.zk.ui.sys.ComponentCtrl</javadoc>, and annotate a property by <javadoc method="addAnnotation(java.lang.String, java.lang.String, java.util.Map)" type="interface">org.zkoss.zk.ui.sys.ComponentCtrl</javadoc>. |
For example, | For example, |
Revision as of 01:06, 25 July 2011
You could annotate a component in Java by the 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
Version | Date | Content |
---|---|---|