/** * */ package org.gcube.portlets.user.speciesdiscovery.client.event; import org.gcube.portlets.user.speciesdiscovery.shared.SearchResultType; import com.google.gwt.event.shared.GwtEvent; /** * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it * */ public class UpdateAllRowSelectionEvent extends GwtEvent { public static final GwtEvent.Type TYPE = new Type(); private boolean selectionValue; private SearchResultType searchType; @Override public Type getAssociatedType() { return TYPE; } @Override protected void dispatch(UpdateAllRowSelectionEventHandler handler) { handler.onUpdateAllRowSelection(this); } public UpdateAllRowSelectionEvent(boolean selectionValue, SearchResultType type){ this.selectionValue = selectionValue; this.searchType = type; } public boolean getSelectionValue() { return selectionValue; } public SearchResultType getSearchType() { return searchType; } }