View Javadoc
1   /*
2    * Copyright 2010 Daniel Kurka
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5    * use this file except in compliance with the License. You may obtain a copy of
6    * the License at
7    * 
8    * http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations under
14   * the License.
15   */
16  package com.googlecode.mgwt.dom.client.event.touch;
17  
18  import com.google.gwt.event.shared.HandlerRegistration;
19  import com.google.gwt.event.shared.HasHandlers;
20  
21  /**
22   * This is a convenience interface that includes all touch handlers defined by
23   * mgwt.
24   * 
25   * @author kurt
26   * @version $Id: $
27   */
28  public interface HasTouchHandlers extends HasHandlers {
29  	/**
30  	 * <p>
31  	 * addTouchStartHandler
32  	 * </p>
33  	 * 
34  	 * @param handler a
35  	 *            {@link com.googlecode.mgwt.dom.client.event.touch.TouchStartHandler}
36  	 *            object.
37  	 * @return a {@link com.google.gwt.event.shared.HandlerRegistration} object.
38  	 */
39  	public HandlerRegistration addTouchStartHandler(TouchStartHandler handler);
40  
41  	/**
42  	 * <p>
43  	 * addTouchMoveHandler
44  	 * </p>
45  	 * 
46  	 * @param handler a
47  	 *            {@link com.googlecode.mgwt.dom.client.event.touch.TouchMoveHandler}
48  	 *            object.
49  	 * @return a {@link com.google.gwt.event.shared.HandlerRegistration} object.
50  	 */
51  	public HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler);
52  
53  	/**
54  	 * <p>
55  	 * addTouchCancelHandler
56  	 * </p>
57  	 * 
58  	 * @param handler a
59  	 *            {@link com.googlecode.mgwt.dom.client.event.touch.TouchCancelHandler}
60  	 *            object.
61  	 * @return a {@link com.google.gwt.event.shared.HandlerRegistration} object.
62  	 */
63  	public HandlerRegistration addTouchCancelHandler(TouchCancelHandler handler);
64  
65  	/**
66  	 * <p>
67  	 * addTouchEndHandler
68  	 * </p>
69  	 * 
70  	 * @param handler a
71  	 *            {@link com.googlecode.mgwt.dom.client.event.touch.TouchEndHandler}
72  	 *            object.
73  	 * @return a {@link com.google.gwt.event.shared.HandlerRegistration} object.
74  	 */
75  	public HandlerRegistration addTouchEndHandler(TouchEndHandler handler);
76  
77  	/**
78  	 * <p>
79  	 * addTouchHandler
80  	 * </p>
81  	 * 
82  	 * @param handler a
83  	 *            {@link com.googlecode.mgwt.dom.client.event.touch.TouchHandler}
84  	 *            object.
85  	 * @return a {@link com.google.gwt.event.shared.HandlerRegistration} object.
86  	 */
87  	public HandlerRegistration addTouchHandler(TouchHandler handler);
88  }