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

fr.lteconsulting.hexa.client.event.DeletedEvent Maven / Gradle / Ivy

The newest version!
package fr.lteconsulting.hexa.client.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import fr.lteconsulting.hexa.client.event.DeletedEvent.DeletedEventHandler;

public class DeletedEvent extends GwtEvent>
{
	private T item;

	public DeletedEvent( T item )
	{
		this.item = item;
	}

	public T getItem()
	{
		return item;
	}

	public interface DeletedEventHandler extends EventHandler
	{
		void onDeleted( T item );
	}

	public static Type> TYPE = new Type<>();

	@SuppressWarnings( "unchecked" )
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type> getAssociatedType()
	{
		return (Type>)(Type)TYPE;
	}

	@Override
	protected void dispatch( DeletedEventHandler handler )
	{
		handler.onDeleted( item );
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy