| Line 59... |
Line 59... |
| 59 |
|
59 |
|
| 60 |
@Override
|
60 |
@Override
|
| 61 |
public HasClickHandlers getBoutonRechercheSimple() {
|
61 |
public HasClickHandlers getBoutonRechercheSimple() {
|
| 62 |
return boutonRecherche;
|
62 |
return boutonRecherche;
|
| 63 |
}
|
63 |
}
|
| 64 |
|
64 |
|
| 65 |
@Override
|
65 |
@Override
|
| 66 |
public HasClickHandlers getBoutonFermer() {
|
66 |
public HasClickHandlers getBoutonFermer() {
|
| 67 |
return boutonFermer;
|
67 |
return boutonFermer;
|
| 68 |
}
|
68 |
}
|
| 69 |
|
69 |
|
| 70 |
@Override
|
70 |
@Override
|
| 71 |
public HasClickHandlers getBoutonVider() {
|
71 |
public HasClickHandlers getBoutonVider() {
|
| 72 |
return boutonVider;
|
72 |
return boutonVider;
|
| Line 95... |
Line 95... |
| 95 |
@Override
|
95 |
@Override
|
| 96 |
public void setValeurRechercheSimple(String valeurRecherche) {
|
96 |
public void setValeurRechercheSimple(String valeurRecherche) {
|
| 97 |
recherchePrincipale.setText(valeurRecherche);
|
97 |
recherchePrincipale.setText(valeurRecherche);
|
| 98 |
}
|
98 |
}
|
| Line 99... |
Line -... |
| 99 |
|
- |
|
| 100 |
public void chargerValeursRechercheSimplePrecedente(InformationsRecherche informationsRecherche) {
|
- |
|
| 101 |
|
- |
|
| 102 |
this.nettoyer();
|
- |
|
| 103 |
if (informationsRecherche.getRechercheLibre() != null && !informationsRecherche.getRechercheLibre().equals("")) {
|
- |
|
| 104 |
getRecherchePrincipale().setText(informationsRecherche.getRechercheLibre());
|
- |
|
| 105 |
}
|
- |
|
| 106 |
afficherLigneInfoRecherche(informationsRecherche);
|
- |
|
| 107 |
}
|
- |
|
| 108 |
|
99 |
|
| 109 |
public void chargerValeursRecherchePrecedente(InformationsRecherche informationsRecherche) {
|
100 |
public void chargerValeursRecherchePrecedente(InformationsRecherche informationsRecherche) {
|
| 110 |
informationsRecherche.setRechercheLibre(null);
|
- |
|
| 111 |
getRecherchePrincipale().setText("");
|
101 |
getRecherchePrincipale().setText(informationsRecherche.getRechercheLibre());
|
| 112 |
getDepartement().setText(informationsRecherche.getDepartement());
|
102 |
getDepartement().setText(informationsRecherche.getDepartement());
|
| 113 |
getCommune().setText(informationsRecherche.getCommune());
|
103 |
getCommune().setText(informationsRecherche.getCommune());
|
| 114 |
getFamille().setText(informationsRecherche.getFamille());
|
104 |
getFamille().setText(informationsRecherche.getFamille());
|
| 115 |
getGenre().setText(informationsRecherche.getGenre());
|
105 |
getGenre().setText(informationsRecherche.getGenre());
|
| 116 |
getTag().setText(informationsRecherche.getTag());
|
106 |
getTag().setText(informationsRecherche.getTag());
|
| 117 |
getMotCle().setText(informationsRecherche.getMotClef());
|
107 |
getMotCle().setText(informationsRecherche.getMotClef());
|
| 118 |
getAuteur().setText(informationsRecherche.getAuteur());
|
108 |
getAuteur().setText(informationsRecherche.getAuteur());
|
| 119 |
getDate().setText(informationsRecherche.getDate());
|
109 |
getDate().setText(informationsRecherche.getDate());
|
| 120 |
|
110 |
|
| 121 |
afficherLigneInfoRecherche(informationsRecherche);
|
111 |
afficherLigneInfoRecherche(informationsRecherche);
|
| Line 122... |
Line 112... |
| 122 |
}
|
112 |
}
|
| 123 |
|
113 |
|
| Line 127... |
Line 117... |
| 127 |
*
|
117 |
*
|
| 128 |
* @param informationRecherche
|
118 |
* @param informationRecherche
|
| 129 |
*/
|
119 |
*/
|
| 130 |
private void afficherLigneInfoRecherche(InformationsRecherche informationRecherche) {
|
120 |
private void afficherLigneInfoRecherche(InformationsRecherche informationRecherche) {
|
| Line 131... |
Line 121... |
| 131 |
|
121 |
|
| 132 |
//tax dep com fam gen ta mo au date
|
122 |
// tax dep com fam gen ta mo au date
|
| 133 |
StringBuffer texteRecherchePrecedente = new StringBuffer();
|
123 |
StringBuffer texteRecherchePrecedente = new StringBuffer();
|
| 134 |
|
124 |
|
| 135 |
if (informationRecherche.getRechercheLibre()!=null&&!informationRecherche.getRechercheLibre().equals("")) {
|
125 |
if (informationRecherche.getRechercheLibre() != null && !informationRecherche.getRechercheLibre().equals("")) {
|
| 136 |
texteRecherchePrecedente.append(I18n.getVocabulary().rechercheLibre() + ":" + informationRecherche.getRechercheLibre() + " ");
|
126 |
texteRecherchePrecedente.append(I18n.getVocabulary().rechercheLibre() + ":" + informationRecherche.getRechercheLibre() + " ");
|
| 137 |
}
|
127 |
}
|
| 138 |
if (informationRecherche.getTaxon() != null&&!informationRecherche.getTaxon().equals("")) {
|
128 |
if (informationRecherche.getTaxon() != null && !informationRecherche.getTaxon().equals("")) {
|
| 139 |
texteRecherchePrecedente.append(I18n.getVocabulary().taxon() + ":" + informationRecherche.getTaxon() + " ");
|
129 |
texteRecherchePrecedente.append(I18n.getVocabulary().taxon() + ":" + informationRecherche.getTaxon() + " ");
|
| 140 |
}
|
130 |
}
|
| 141 |
if (informationRecherche.getDepartement()!=null && !informationRecherche.getDepartement().equals("")) {
|
131 |
if (informationRecherche.getDepartement() != null && !informationRecherche.getDepartement().equals("")) {
|
| 142 |
texteRecherchePrecedente.append(I18n.getVocabulary().departement() + ":" + informationRecherche.getDepartement() + " ");
|
132 |
texteRecherchePrecedente.append(I18n.getVocabulary().departement() + ":" + informationRecherche.getDepartement() + " ");
|
| 143 |
}
|
133 |
}
|
| 144 |
if (informationRecherche.getCommune()!=null && !informationRecherche.getCommune().equals("")) {
|
134 |
if (informationRecherche.getCommune() != null && !informationRecherche.getCommune().equals("")) {
|
| 145 |
texteRecherchePrecedente.append(I18n.getVocabulary().commune() + ":" + informationRecherche.getCommune() + " ");
|
135 |
texteRecherchePrecedente.append(I18n.getVocabulary().commune() + ":" + informationRecherche.getCommune() + " ");
|
| 146 |
}
|
136 |
}
|
| 147 |
if (informationRecherche.getFamille()!=null && !informationRecherche.getFamille().equals("")) {
|
137 |
if (informationRecherche.getFamille() != null && !informationRecherche.getFamille().equals("")) {
|
| 148 |
texteRecherchePrecedente.append(I18n.getVocabulary().famille() + ":" + informationRecherche.getFamille() + " ");
|
138 |
texteRecherchePrecedente.append(I18n.getVocabulary().famille() + ":" + informationRecherche.getFamille() + " ");
|
| 149 |
}
|
139 |
}
|
| 150 |
if (informationRecherche.getGenre()!=null && !informationRecherche.getGenre().equals("")) {
|
140 |
if (informationRecherche.getGenre() != null && !informationRecherche.getGenre().equals("")) {
|
| 151 |
texteRecherchePrecedente.append(I18n.getVocabulary().genre() + ":" + informationRecherche.getGenre() + " ");
|
141 |
texteRecherchePrecedente.append(I18n.getVocabulary().genre() + ":" + informationRecherche.getGenre() + " ");
|
| 152 |
}
|
142 |
}
|
| 153 |
if (informationRecherche.getTag()!=null && !informationRecherche.getTag().equals("")) {
|
143 |
if (informationRecherche.getTag() != null && !informationRecherche.getTag().equals("")) {
|
| 154 |
texteRecherchePrecedente.append(I18n.getVocabulary().tag() + ":" + informationRecherche.getTag() + " ");
|
144 |
texteRecherchePrecedente.append(I18n.getVocabulary().tag() + ":" + informationRecherche.getTag() + " ");
|
| 155 |
}
|
145 |
}
|
| 156 |
if (informationRecherche.getMotClef()!=null && !informationRecherche.getMotClef().equals("")) {
|
146 |
if (informationRecherche.getMotClef() != null && !informationRecherche.getMotClef().equals("")) {
|
| 157 |
texteRecherchePrecedente.append(I18n.getVocabulary().mot_clef() + ":" + informationRecherche.getMotClef() + " ");
|
147 |
texteRecherchePrecedente.append(I18n.getVocabulary().mot_clef() + ":" + informationRecherche.getMotClef() + " ");
|
| 158 |
}
|
148 |
}
|
| 159 |
if (informationRecherche.getAuteur()!=null && !informationRecherche.getAuteur().equals("")) {
|
149 |
if (informationRecherche.getAuteur() != null && !informationRecherche.getAuteur().equals("")) {
|
| 160 |
texteRecherchePrecedente.append(I18n.getVocabulary().auteur() + ":" + informationRecherche.getAuteur() + " ");
|
150 |
texteRecherchePrecedente.append(I18n.getVocabulary().auteur() + ":" + informationRecherche.getAuteur() + " ");
|
| 161 |
}
|
151 |
}
|
| 162 |
if (informationRecherche.getDate()!=null && !informationRecherche.getDate().equals("")) {
|
152 |
if (informationRecherche.getDate() != null && !informationRecherche.getDate().equals("")) {
|
| 163 |
texteRecherchePrecedente.append(I18n.getVocabulary().date() + ":" + informationRecherche.getDate() + " ");
|
153 |
texteRecherchePrecedente.append(I18n.getVocabulary().date() + ":" + informationRecherche.getDate() + " ");
|
| 164 |
}
|
- |
|
| 165 |
|
154 |
}
|
| 166 |
|
- |
|
| 167 |
|
155 |
|
| 168 |
recherchePrecedente.setText(texteRecherchePrecedente.toString());
|
156 |
recherchePrecedente.setText(texteRecherchePrecedente.toString());
|
| Line 169... |
Line 157... |
| 169 |
}
|
157 |
}
|
| 170 |
|
158 |
|
| 171 |
public void nettoyer() {
|
159 |
public void nettoyer() {
|
| 172 |
chargerValeursRecherchePrecedente(new InformationsRecherche());
|
160 |
chargerValeursRecherchePrecedente(new InformationsRecherche());
|
| 173 |
}
|
161 |
}
|
| 174 |
|
162 |
|
| 175 |
public HasText getRecherchePrincipale() {
|
163 |
public HasText getRecherchePrincipale() {
|
| Line 176... |
Line 164... |
| 176 |
return recherchePrincipale;
|
164 |
return recherchePrincipale;
|