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  /**
19   * This represents a native touch end Event
20   *
21   * @author Daniel Kurka
22   * @version $Id: $
23   */
24  public class TouchEndEvent extends TouchEvent<TouchEndHandler> {
25  
26  	private static final Type<TouchEndHandler> TYPE = new Type<TouchEndHandler>("touchend", new TouchEndEvent());
27  
28  	/**
29  	 * <p>getType</p>
30  	 *
31  	 * @return a Type object.
32  	 */
33  	public static Type<TouchEndHandler> getType() {
34  		return TYPE;
35  	}
36  
37  	/**
38  	 * {@inheritDoc}
39  	 *
40  	 * Gets the event type associated with animation end events.
41  	 */
42  	@Override
43  	public com.google.gwt.event.dom.client.DomEvent.Type<TouchEndHandler> getAssociatedType() {
44  		return TYPE;
45  	}
46  
47  	/**
48  	 * <p>Constructor for TouchEndEvent.</p>
49  	 */
50  	protected TouchEndEvent() {
51  
52  	}
53  
54  	/** {@inheritDoc} */
55  	@Override
56  	protected void dispatch(TouchEndHandler handler) {
57  		handler.onTouchEnd(this);
58  
59  	}
60  
61  }