added comments
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/speciesdiscovery@79179 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5b03a78acb
commit
36e4a937c7
|
@ -70,6 +70,7 @@ public class SearchEvent extends GwtEvent<SearchEventHandler> {
|
|||
/**
|
||||
* @return the type
|
||||
*/
|
||||
//USED BY SIMPLE QUERY
|
||||
public SearchType getType() {
|
||||
return type;
|
||||
}
|
||||
|
@ -217,10 +218,12 @@ public class SearchEvent extends GwtEvent<SearchEventHandler> {
|
|||
this.activeFilterOnResult = activeFilterOnResult;
|
||||
}
|
||||
|
||||
//USED BY TEXT QUERY
|
||||
public Map<SearchType, List<String>> getMapTermsSearched() {
|
||||
return mapTermsSearched;
|
||||
}
|
||||
|
||||
//USED BY TEXT QUERY
|
||||
public void setMapTermsSearched(Map<SearchType, List<String>> mapTermsSearched) {
|
||||
this.mapTermsSearched = mapTermsSearched;
|
||||
}
|
||||
|
|
|
@ -38,13 +38,13 @@ public class CommonDetailComponents {
|
|||
|
||||
String searchType = "";
|
||||
|
||||
//USED BY TEXT QUERY
|
||||
if(lastSearchEvent.getMapTermsSearched()!=null){
|
||||
|
||||
searchType = lastSearchEvent.getMapTermsSearched().toString();
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
}else{
|
||||
//USED BY SIMPLE QUERY
|
||||
switch (lastSearchEvent.getType()) {
|
||||
case BY_COMMON_NAME:
|
||||
|
||||
|
|
Reference in New Issue