package org.gcube.portlets.widgets.ckancontentmoderator.client.events; import org.gcube.datacatalogue.utillibrary.shared.ItemStatus; import com.google.gwt.event.shared.GwtEvent; /** * The Class SelectItemsWithItemStatusEvent. * * @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it * * Jun 28, 2021 */ public class SelectItemsWithItemStatusEvent extends GwtEvent { public static Type TYPE = new Type(); private ItemStatus itemStatus; /** * Instantiates a new click item event. * * @param itemStatus the item status */ public SelectItemsWithItemStatusEvent(ItemStatus itemStatus) { this.itemStatus = itemStatus; } /** * Gets the associated type. * * @return the associated type */ @Override public Type getAssociatedType() { return TYPE; } /** * Dispatch. * * @param handler the handler */ @Override protected void dispatch(SelectItemsWithItemStatusEventHandler handler) { handler.onValueChanged(this); } /** * Gets the item status. * * @return the item status */ public ItemStatus getItemStatus() { return itemStatus; } }