From e706b8b5da89557e0476b8e43300a59eeb98954d Mon Sep 17 00:00:00 2001 From: Ray Cromwell Date: Tue, 3 Jun 2008 07:18:45 +0000 Subject: Refactoring for 0.2 release --- .../src/main/java/gwtquery/client/Function.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gwtquery-core/src/main/java/gwtquery/client/Function.java (limited to 'gwtquery-core/src/main/java/gwtquery/client/Function.java') diff --git a/gwtquery-core/src/main/java/gwtquery/client/Function.java b/gwtquery-core/src/main/java/gwtquery/client/Function.java new file mode 100644 index 00000000..a30bd8ea --- /dev/null +++ b/gwtquery-core/src/main/java/gwtquery/client/Function.java @@ -0,0 +1,22 @@ +package gwtquery.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