diff options
author | Ray Cromwell <cromwellian@gmail.com> | 2008-06-03 06:57:49 +0000 |
---|---|---|
committer | Ray Cromwell <cromwellian@gmail.com> | 2008-06-03 06:57:49 +0000 |
commit | f4ed9dad475ba805161d0917f27ce1cdb856abaf (patch) | |
tree | 659099f6bb880cdc170bb08dcf4386628c2d2acf /gwtquery-core/src/main/java/gquery/client/Function.java | |
parent | f90069409ff6627cbff53b72a2ec80afc88c3a6b (diff) | |
download | gwtquery-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.java | 22 |
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; + } +} |