Searching facility integrated with CQL filter
parent
fb827a6913
commit
342d40fdf9
@ -0,0 +1,71 @@
|
||||
package org.gcube.portlets.user.geoportaldataviewer.client.events;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.application.geoportalcommon.shared.products.ConcessioneDV;
|
||||
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
|
||||
/**
|
||||
* The Class SearchPerformedEvent.
|
||||
*
|
||||
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
||||
*
|
||||
* Dec 14, 2021
|
||||
*/
|
||||
public class SearchPerformedEvent extends GwtEvent<SearchPerformedEventHandler> {
|
||||
public static Type<SearchPerformedEventHandler> TYPE = new Type<SearchPerformedEventHandler>();
|
||||
private List<ConcessioneDV> data;
|
||||
private boolean searchReset;
|
||||
|
||||
/**
|
||||
* Instantiates a new search performed event.
|
||||
*
|
||||
* @param data the data
|
||||
* @param searchReset the search reset
|
||||
*/
|
||||
public SearchPerformedEvent(List<ConcessioneDV> data, boolean searchReset) {
|
||||
this.data = data;
|
||||
this.searchReset = searchReset;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the associated type.
|
||||
*
|
||||
* @return the associated type
|
||||
*/
|
||||
@Override
|
||||
public Type<SearchPerformedEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dispatch.
|
||||
*
|
||||
* @param handler the handler
|
||||
*/
|
||||
@Override
|
||||
protected void dispatch(SearchPerformedEventHandler handler) {
|
||||
handler.onSearchDone(this);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the data.
|
||||
*
|
||||
* @return the data
|
||||
*/
|
||||
public List<ConcessioneDV> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if is search reset.
|
||||
*
|
||||
* @return true, if is search reset
|
||||
*/
|
||||
public boolean isSearchReset() {
|
||||
return searchReset;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package org.gcube.portlets.user.geoportaldataviewer.client.events;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
|
||||
/**
|
||||
* The Interface SearchPerformedEventHandler.
|
||||
*
|
||||
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
||||
*
|
||||
* Dec 14, 2021
|
||||
*/
|
||||
public interface SearchPerformedEventHandler extends EventHandler {
|
||||
|
||||
/**
|
||||
* On search done.
|
||||
*
|
||||
* @param searchPerformedEvent the search performed event
|
||||
*/
|
||||
void onSearchDone(SearchPerformedEvent searchPerformedEvent);
|
||||
}
|
Loading…
Reference in New Issue