Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 404 → Rev 405

/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/MoteurRechercheImagePresenteur.java
31,6 → 31,7
public HasWidgets getZoneResultats();
public HasWidgets getZoneRecherche();
public String getNomProtocolSelectionne();
public int getIdProtocolSelectionne();
}
 
private Vue vue;
40,7 → 41,7
private List<Protocole> protocoles;
 
// TODO : passer ça en cache
private String protocoleParDefaut = Protocole.IDENTIFICATION_AUTOMATIQUE;
private String protocoleParDefaut = Protocole.ESTHETISME;
 
/**
* Constructeur
47,7 → 48,6
* */
public MoteurRechercheImagePresenteur(Vue vue) {
this.vue = vue;
 
if (CacheClient.getInstance().getProtocoleCourant() == null) {
CacheClient.getInstance().setProtocoleCourant(protocoleService.getProtocole(protocoleParDefaut));
}
76,7 → 76,7
public void onChange(ChangeEvent event) {
Protocole protocoleCourant = null;
for (Protocole protocole : protocoles) {
if (protocole.getNom().equals(vue.getNomProtocolSelectionne())) {
if (protocole.getId() == vue.getIdProtocolSelectionne()) {
protocoleCourant = protocole;
}
}