From f4ed9dad475ba805161d0917f27ce1cdb856abaf Mon Sep 17 00:00:00 2001 From: Ray Cromwell Date: Tue, 3 Jun 2008 06:57:49 +0000 Subject: --- .../src/main/java/gquery/client/Function.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gwtquery-core/src/main/java/gquery/client/Function.java (limited to 'gwtquery-core/src/main/java/gquery/client/Function.java') diff --git a/gwtquery-core/src/main/java/gquery/client/Function.java b/gwtquery-core/src/main/java/gquery/client/Function.java new file mode 100644 index 00000000..d42207f6 --- /dev/null +++ b/gwtquery-core/src/main/java/gquery/client/Function.java @@ -0,0 +1,22 @@ +package gquery.client; + +import com.google.gwt.dom.client.Element; +import com.google.gwt.user.client.Event; + +/** + * Extend this class to implement functions. + */ +public abstract class Function { + + public void f(Element e) { + } + + public boolean f(Event e, Object data) { + return f(e); + } + + public boolean f(Event e) { + f(e.getCurrentTarget()); + return true; + } +} -- cgit v1.2.3