diff options
author | Ray Cromwell <cromwellian@gmail.com> | 2008-06-03 07:18:45 +0000 |
---|---|---|
committer | Ray Cromwell <cromwellian@gmail.com> | 2008-06-03 07:18:45 +0000 |
commit | e706b8b5da89557e0476b8e43300a59eeb98954d (patch) | |
tree | 43dbc4621950be87aefa69a941c8598b9f901a0f /gwtquery-core/src/main/java/gwtquery/client/Function.java | |
parent | 135769dca69b8664006e76f6b8f039dfb59cf009 (diff) | |
download | gwtquery-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.java | 22 |
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; + } +} |