1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/htmlpage/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/OnClick.java Tue Sep 25 09:55:34 2012 +0200
1.3 @@ -0,0 +1,21 @@
1.4 +/*
1.5 + * To change this template, choose Tools | Templates
1.6 + * and open the template in the editor.
1.7 + */
1.8 +package org.apidesign.bck2brwsr.htmlpage.api;
1.9 +
1.10 +import java.lang.annotation.ElementType;
1.11 +import java.lang.annotation.Retention;
1.12 +import java.lang.annotation.RetentionPolicy;
1.13 +import java.lang.annotation.Target;
1.14 +
1.15 +/** Adds an onClick handler to an element identified by given <em>id</em>.
1.16 + * Apply on a <code>public static void</code> method with no arguments.
1.17 + *
1.18 + * @author Jaroslav Tulach <jtulach@netbeans.org>
1.19 + */
1.20 +@Retention(RetentionPolicy.SOURCE)
1.21 +@Target(ElementType.METHOD)
1.22 +public @interface OnClick {
1.23 + String id();
1.24 +}