Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 453 → Rev 454

/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/MoteurRechercheImagePresenteur.java
31,7 → 31,8
public HasWidgets getZoneResultats();
public HasWidgets getZoneRecherche();
public String getNomProtocolSelectionne();
public int getIdProtocolSelectionne();
public int getIdProtocoleSelectionne();
public void ajouterVue(HasWidgets composite);
}
 
private Vue vue;
50,12 → 51,12
if (CacheClient.getInstance().getProtocoleCourant() == null) {
CacheClient.getInstance().setProtocoleCourant(protocoleService.getProtocole(protocoleParDefaut));
}
gererEvenements();
chargerProtocoles();
}
 
public void go(HasWidgets composite) {
composite.add(vue.asWidget());
gererEvenements();
chargerProtocoles();
vue.ajouterVue(composite);
chargerMoteurRechercheAvancee();
}
 
73,20 → 74,24
 
@Override
public void onChange(ChangeEvent event) {
Protocole protocoleCourant = null;
for (Protocole protocole : protocoles) {
if (protocole.getId() == vue.getIdProtocolSelectionne()) {
protocoleCourant = protocole;
}
}
 
CacheClient.getInstance().setProtocoleCourant(protocoleCourant);
EvenementChangementProtocole evenement = new EvenementChangementProtocole(protocoleCourant);
BusEvenementiel.getInstance().fireEvent(evenement);
surChangementProtocole();
}
});
}
public void surChangementProtocole() {
Protocole protocoleCourant = null;
for (Protocole protocole : protocoles) {
if (protocole.getId() == vue.getIdProtocoleSelectionne()) {
protocoleCourant = protocole;
}
}
 
CacheClient.getInstance().setProtocoleCourant(protocoleCourant);
EvenementChangementProtocole evenement = new EvenementChangementProtocole(protocoleCourant);
BusEvenementiel.getInstance().fireEvent(evenement);
}
 
public void chargerMoteurRechercheAvancee() {
MoteurRecherchePresenteur presenteurRecherche = new MoteurRecherchePresenteur(new MoteurRechercheVue(""), ModeRecherche.MODE_IMAGE) {
public void lancerRecherche() {
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/MoteurRechercheImageVue.java
75,7 → 75,12
}
@Override
public int getIdProtocolSelectionne() {
public int getIdProtocoleSelectionne() {
return listeProtocoles.getSelectedIndex();
}
 
@Override
public void ajouterVue(HasWidgets composite) {
composite.add(this.asWidget());
}
}