Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 207 → Rev 208

/src/org/tela_botanica/del/client/vues/rechercheimages/RechercheImagePresenteur.java
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);
}
/src/org/tela_botanica/del/client/vues/rechercheimages/RechercheImageVue.java
26,23 → 26,22
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
 
@UiField
TextBox nomEspece;
protected TextBox nomEspece;
 
@UiField
Panel panneauProtocole, panneauResultats;
protected Panel panneauProtocole, panneauResultats;
 
@UiField
Button boutonChercher;
protected Button boutonChercher;
 
@UiField
Label protocoleLabel;
protected Label protocoleLabel;
 
@UiField
ListBox listeProtocoles;
protected ListBox listeProtocoles;
 
// Constructeur
protected RechercheImageVue() {
 
initWidget(uiBinder.createAndBindUi(this));
nomEspece.setFocus(true);
 
52,34 → 51,15
return panneauChargement;
}
 
public TextBox getTextBox() {
return nomEspece;
}
 
public Panel getPanel() {
return mainPanel;
}
 
public Button getBoutonChercher() {
return boutonChercher;
}
 
public ListBox getListeProtocoles() {
return listeProtocoles;
}
 
public void setListeProtocoles(ListBox listeProtocoles) {
this.listeProtocoles = listeProtocoles;
}
 
public Label getProtocoleLabel() {
return protocoleLabel;
}
 
public void setProtocoleLabel(Label protocoleLabel) {
this.protocoleLabel = protocoleLabel;
}
 
// Cette méthode est public car appelé dans GestionnaireHistorique
public Panel getPanneauResultats() {
return panneauResultats;
}