package org.gcube.portlets.widgets.ckancontentmoderator.client.events; import java.util.List; import com.google.gwt.event.shared.GwtEvent; /** * The Class ClickItemEvent. * * @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it * * Jun 22, 2021 * @param the generic type */ public class ClickItemEvent extends GwtEvent { public static Type TYPE = new Type(); private List selectItems; /** * Instantiates a new click item event. * * @param selectItems the select items */ public ClickItemEvent(List selectItems) { this.selectItems = selectItems; } /** * Gets the associated type. * * @return the associated type */ /* * (non-Javadoc) * * @see com.google.gwt.event.shared.GwtEvent#getAssociatedType() */ @Override public Type getAssociatedType() { return TYPE; } /** * Dispatch. * * @param handler the handler */ /* * (non-Javadoc) * * @see * com.google.gwt.event.shared.GwtEvent#dispatch(com.google.gwt.event.shared. * EventHandler) */ @Override protected void dispatch(ClickItemEventHandler handler) { handler.onClick(this); } /** * Gets the select items. * * @return the select items */ public List getSelectItems() { return selectItems; } }