aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core/src/main/java/gwtquery/client/Function.java
diff options
context:
space:
mode:
authorRay Cromwell <cromwellian@gmail.com>2008-06-03 07:18:45 +0000
committerRay Cromwell <cromwellian@gmail.com>2008-06-03 07:18:45 +0000
commite706b8b5da89557e0476b8e43300a59eeb98954d (patch)
tree43dbc4621950be87aefa69a941c8598b9f901a0f /gwtquery-core/src/main/java/gwtquery/client/Function.java
parent135769dca69b8664006e76f6b8f039dfb59cf009 (diff)
downloadgwtquery-e706b8b5da89557e0476b8e43300a59eeb98954d.tar.gz
gwtquery-e706b8b5da89557e0476b8e43300a59eeb98954d.zip
Refactoring for 0.2 release
Diffstat (limited to 'gwtquery-core/src/main/java/gwtquery/client/Function.java')
-rw-r--r--gwtquery-core/src/main/java/gwtquery/client/Function.java22
1 files changed, 22 insertions, 0 deletions
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;
+ }
+}