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:
Francesco Mangiacrapa 2013-07-15 15:56:57 +00:00
parent 5b03a78acb
commit 36e4a937c7
2 changed files with 7 additions and 4 deletions

View File

@ -70,6 +70,7 @@ public class SearchEvent extends GwtEvent<SearchEventHandler> {
/** /**
* @return the type * @return the type
*/ */
//USED BY SIMPLE QUERY
public SearchType getType() { public SearchType getType() {
return type; return type;
} }
@ -216,11 +217,13 @@ public class SearchEvent extends GwtEvent<SearchEventHandler> {
public void setActiveFilterOnResult(ResultFilter activeFilterOnResult) { public void setActiveFilterOnResult(ResultFilter activeFilterOnResult) {
this.activeFilterOnResult = activeFilterOnResult; this.activeFilterOnResult = activeFilterOnResult;
} }
//USED BY TEXT QUERY
public Map<SearchType, List<String>> getMapTermsSearched() { public Map<SearchType, List<String>> getMapTermsSearched() {
return mapTermsSearched; return mapTermsSearched;
} }
//USED BY TEXT QUERY
public void setMapTermsSearched(Map<SearchType, List<String>> mapTermsSearched) { public void setMapTermsSearched(Map<SearchType, List<String>> mapTermsSearched) {
this.mapTermsSearched = mapTermsSearched; this.mapTermsSearched = mapTermsSearched;
} }

View File

@ -38,13 +38,13 @@ public class CommonDetailComponents {
String searchType = ""; String searchType = "";
//USED BY TEXT QUERY
if(lastSearchEvent.getMapTermsSearched()!=null){ if(lastSearchEvent.getMapTermsSearched()!=null){
searchType = lastSearchEvent.getMapTermsSearched().toString(); searchType = lastSearchEvent.getMapTermsSearched().toString();
} }else{
else{ //USED BY SIMPLE QUERY
switch (lastSearchEvent.getType()) { switch (lastSearchEvent.getType()) {
case BY_COMMON_NAME: case BY_COMMON_NAME: