aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core/src/main/java/gwtquery/client/Function.java
blob: f9d70a4f8e29bc33caf06b79dd0aeb43a9d97f3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 String f(Element e,  int i) {
    return "";  
  }
  
  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;
  }
}