Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 444 → Rev 445

/trunk/src/org/tela_botanica/del/client/composants/moteurrecherche/MoteurRechercheVue.java
61,12 → 61,12
public HasClickHandlers getBoutonRechercheSimple() {
return boutonRecherche;
}
 
@Override
public HasClickHandlers getBoutonFermer() {
return boutonFermer;
}
 
@Override
public HasClickHandlers getBoutonVider() {
return boutonVider;
97,18 → 97,8
recherchePrincipale.setText(valeurRecherche);
}
 
public void chargerValeursRechercheSimplePrecedente(InformationsRecherche informationsRecherche) {
 
this.nettoyer();
if (informationsRecherche.getRechercheLibre() != null && !informationsRecherche.getRechercheLibre().equals("")) {
getRecherchePrincipale().setText(informationsRecherche.getRechercheLibre());
}
afficherLigneInfoRecherche(informationsRecherche);
}
 
public void chargerValeursRecherchePrecedente(InformationsRecherche informationsRecherche) {
informationsRecherche.setRechercheLibre(null);
getRecherchePrincipale().setText("");
getRecherchePrincipale().setText(informationsRecherche.getRechercheLibre());
getDepartement().setText(informationsRecherche.getDepartement());
getCommune().setText(informationsRecherche.getCommune());
getFamille().setText(informationsRecherche.getFamille());
117,7 → 107,7
getMotCle().setText(informationsRecherche.getMotClef());
getAuteur().setText(informationsRecherche.getAuteur());
getDate().setText(informationsRecherche.getDate());
 
afficherLigneInfoRecherche(informationsRecherche);
}
 
129,42 → 119,40
*/
private void afficherLigneInfoRecherche(InformationsRecherche informationRecherche) {
 
//tax dep com fam gen ta mo au date
// tax dep com fam gen ta mo au date
StringBuffer texteRecherchePrecedente = new StringBuffer();
if (informationRecherche.getRechercheLibre()!=null&&!informationRecherche.getRechercheLibre().equals("")) {
 
if (informationRecherche.getRechercheLibre() != null && !informationRecherche.getRechercheLibre().equals("")) {
texteRecherchePrecedente.append(I18n.getVocabulary().rechercheLibre() + ":" + informationRecherche.getRechercheLibre() + " ");
}
if (informationRecherche.getTaxon() != null&&!informationRecherche.getTaxon().equals("")) {
if (informationRecherche.getTaxon() != null && !informationRecherche.getTaxon().equals("")) {
texteRecherchePrecedente.append(I18n.getVocabulary().taxon() + ":" + informationRecherche.getTaxon() + " ");
}
if (informationRecherche.getDepartement()!=null && !informationRecherche.getDepartement().equals("")) {
if (informationRecherche.getDepartement() != null && !informationRecherche.getDepartement().equals("")) {
texteRecherchePrecedente.append(I18n.getVocabulary().departement() + ":" + informationRecherche.getDepartement() + " ");
}
if (informationRecherche.getCommune()!=null && !informationRecherche.getCommune().equals("")) {
if (informationRecherche.getCommune() != null && !informationRecherche.getCommune().equals("")) {
texteRecherchePrecedente.append(I18n.getVocabulary().commune() + ":" + informationRecherche.getCommune() + " ");
}
if (informationRecherche.getFamille()!=null && !informationRecherche.getFamille().equals("")) {
if (informationRecherche.getFamille() != null && !informationRecherche.getFamille().equals("")) {
texteRecherchePrecedente.append(I18n.getVocabulary().famille() + ":" + informationRecherche.getFamille() + " ");
}
if (informationRecherche.getGenre()!=null && !informationRecherche.getGenre().equals("")) {
if (informationRecherche.getGenre() != null && !informationRecherche.getGenre().equals("")) {
texteRecherchePrecedente.append(I18n.getVocabulary().genre() + ":" + informationRecherche.getGenre() + " ");
}
if (informationRecherche.getTag()!=null && !informationRecherche.getTag().equals("")) {
if (informationRecherche.getTag() != null && !informationRecherche.getTag().equals("")) {
texteRecherchePrecedente.append(I18n.getVocabulary().tag() + ":" + informationRecherche.getTag() + " ");
}
if (informationRecherche.getMotClef()!=null && !informationRecherche.getMotClef().equals("")) {
if (informationRecherche.getMotClef() != null && !informationRecherche.getMotClef().equals("")) {
texteRecherchePrecedente.append(I18n.getVocabulary().mot_clef() + ":" + informationRecherche.getMotClef() + " ");
}
if (informationRecherche.getAuteur()!=null && !informationRecherche.getAuteur().equals("")) {
if (informationRecherche.getAuteur() != null && !informationRecherche.getAuteur().equals("")) {
texteRecherchePrecedente.append(I18n.getVocabulary().auteur() + ":" + informationRecherche.getAuteur() + " ");
}
if (informationRecherche.getDate()!=null && !informationRecherche.getDate().equals("")) {
if (informationRecherche.getDate() != null && !informationRecherche.getDate().equals("")) {
texteRecherchePrecedente.append(I18n.getVocabulary().date() + ":" + informationRecherche.getDate() + " ");
}
 
recherchePrecedente.setText(texteRecherchePrecedente.toString());
}
 
171,7 → 159,7
public void nettoyer() {
chargerValeursRecherchePrecedente(new InformationsRecherche());
}
 
public HasText getRecherchePrincipale() {
return recherchePrincipale;
}