1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.googlecode.mgwt.ui.client.widget.touch;
17
18 import com.google.gwt.event.shared.HandlerRegistration;
19 import com.google.gwt.user.client.ui.Widget;
20 import com.googlecode.mgwt.dom.client.event.touch.TouchCancelEvent;
21 import com.googlecode.mgwt.dom.client.event.touch.TouchCancelHandler;
22 import com.googlecode.mgwt.dom.client.event.touch.TouchEndEvent;
23 import com.googlecode.mgwt.dom.client.event.touch.TouchEndHandler;
24 import com.googlecode.mgwt.dom.client.event.touch.TouchMoveEvent;
25 import com.googlecode.mgwt.dom.client.event.touch.TouchMoveHandler;
26 import com.googlecode.mgwt.dom.client.event.touch.TouchStartEvent;
27 import com.googlecode.mgwt.dom.client.event.touch.TouchStartHandler;
28
29
30
31
32
33
34
35 public class TouchWidgetMobileImpl implements TouchWidgetImpl {
36
37
38
39
40
41
42 @Override
43 public HandlerRegistration addTouchStartHandler(Widget w, TouchStartHandler handler) {
44 return w.addDomHandler(handler, TouchStartEvent.getType());
45 }
46
47
48
49
50
51
52 @Override
53 public HandlerRegistration addTouchMoveHandler(Widget w, TouchMoveHandler handler) {
54 return w.addDomHandler(handler, TouchMoveEvent.getType());
55 }
56
57
58
59
60
61
62 @Override
63 public HandlerRegistration addTouchCancelHandler(Widget w, TouchCancelHandler handler) {
64 return w.addDomHandler(handler, TouchCancelEvent.getType());
65 }
66
67
68
69
70
71
72 @Override
73 public HandlerRegistration addTouchEndHandler(Widget w, TouchEndHandler handler) {
74 return w.addDomHandler(handler, TouchEndEvent.getType());
75 }
76
77 }