aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core/src/main/java/gquery/client/Function.java
diff options
context:
space:
mode:
authorRay Cromwell <cromwellian@gmail.com>2008-06-03 06:57:49 +0000
committerRay Cromwell <cromwellian@gmail.com>2008-06-03 06:57:49 +0000
commitf4ed9dad475ba805161d0917f27ce1cdb856abaf (patch)
tree659099f6bb880cdc170bb08dcf4386628c2d2acf /gwtquery-core/src/main/java/gquery/client/Function.java
parentf90069409ff6627cbff53b72a2ec80afc88c3a6b (diff)
downloadgwtquery-f4ed9dad475ba805161d0917f27ce1cdb856abaf.tar.gz
gwtquery-f4ed9dad475ba805161d0917f27ce1cdb856abaf.zip
Diffstat (limited to 'gwtquery-core/src/main/java/gquery/client/Function.java')
-rw-r--r--gwtquery-core/src/main/java/gquery/client/Function.java22
1 files changed, 22 insertions, 0 deletions
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;
+ }
+}