All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sksamuel.jqm4gwt.events.TapEvent Maven / Gradle / Ivy

The newest version!
package com.sksamuel.jqm4gwt.events;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * Represents a JQM tap event.
 *
 * @author Andrei Costescu [email protected] 31 Oct 2013
 */
public class TapEvent extends JQMEvent {

	/**
	 * Event type for tap events. Represents the meta-data associated with this event.
	 */
	private static Type TYPE = null;

	/**
	 * Gets the event handler type associated with tap events.
	 */
	public static Type getType() {
		if (TYPE == null) TYPE = new Type();
		return TYPE;
	}

	protected TapEvent(JavaScriptObject jQueryEvent) {
		super(jQueryEvent, getType());
	}

	@Override
	protected void dispatch(TapHandler handler) {
		handler.onTap(this);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy