42,14 → 42,14 |
private void chargerProtocoles() { |
protocoles = dataSource.getProtocoles(); |
for (Protocole protocole : protocoles) { |
vue.getListeProtocoles().addItem(protocole.getNom()); |
vue.listeProtocoles.addItem(protocole.getNom()); |
} |
vue.getListeProtocoles().setSelectedIndex(protocoles.indexOf(CacheClient.getInstance().getProtocoleCourant())); |
vue.listeProtocoles.setSelectedIndex(protocoles.indexOf(CacheClient.getInstance().getProtocoleCourant())); |
} |
|
public void gererEvenements() { |
|
vue.getBoutonChercher().addClickHandler(new ClickHandler() { |
vue.boutonChercher.addClickHandler(new ClickHandler() { |
|
@Override |
public void onClick(ClickEvent event) { |
57,7 → 57,7 |
} |
}); |
|
vue.getTextBox().addKeyPressHandler(new KeyPressHandler() { |
vue.nomEspece.addKeyPressHandler(new KeyPressHandler() { |
|
public void onKeyPress(KeyPressEvent event) { |
if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER) { |
66,11 → 66,11 |
} |
}); |
|
vue.getListeProtocoles().addChangeHandler(new ChangeHandler() { |
vue.listeProtocoles.addChangeHandler(new ChangeHandler() { |
|
@Override |
public void onChange(ChangeEvent event) { |
Protocole protocoleCourant = protocoles.get(vue.getListeProtocoles().getSelectedIndex()); |
Protocole protocoleCourant = protocoles.get(vue.listeProtocoles.getSelectedIndex()); |
EvenementChangementProtocole evenement = new EvenementChangementProtocole(protocoleCourant); |
BusEvenementiel.getInstance().fireEvent(evenement); |
} |