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() { |