1.1 --- a/htmlpage/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/Element.java Tue Sep 25 09:08:39 2012 +0200
1.2 +++ b/htmlpage/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/Element.java Tue Sep 25 09:55:34 2012 +0200
1.3 @@ -33,4 +33,12 @@
1.4 static void setAttribute(Element el, String property, Object value) {
1.5 throw new UnsupportedOperationException("Needs JavaScript!");
1.6 }
1.7 +
1.8 + /** Executes given runnable when user performs a "click" on the given
1.9 + * element.
1.10 + * @param r the runnable to execute, never null
1.11 + */
1.12 + public final void addOnClick(Runnable r) {
1.13 + throw new UnsupportedOperationException("Needs JavaScript!");
1.14 + }
1.15 }