Subversion Repositories eFlore/Applications.del

Rev

Rev 204 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 204 Rev 208
Line 40... Line 40...
40
	}
40
	}
Line 41... Line 41...
41
 
41
 
42
	private void chargerProtocoles() {
42
	private void chargerProtocoles() {
43
		protocoles = dataSource.getProtocoles();
43
		protocoles = dataSource.getProtocoles();
44
		for (Protocole protocole : protocoles) {
44
		for (Protocole protocole : protocoles) {
45
			vue.getListeProtocoles().addItem(protocole.getNom());
45
			vue.listeProtocoles.addItem(protocole.getNom());
46
		}
46
		}
47
		vue.getListeProtocoles().setSelectedIndex(protocoles.indexOf(CacheClient.getInstance().getProtocoleCourant()));
47
		vue.listeProtocoles.setSelectedIndex(protocoles.indexOf(CacheClient.getInstance().getProtocoleCourant()));
Line 48... Line 48...
48
	}
48
	}
Line 49... Line 49...
49
 
49
 
Line 50... Line 50...
50
	public void gererEvenements() {
50
	public void gererEvenements() {
51
 
51
 
52
		vue.getBoutonChercher().addClickHandler(new ClickHandler() {
52
		vue.boutonChercher.addClickHandler(new ClickHandler() {
53
 
53
 
54
			@Override
54
			@Override
Line 55... Line 55...
55
			public void onClick(ClickEvent event) {
55
			public void onClick(ClickEvent event) {
Line 56... Line 56...
56
				chargerImages();
56
				chargerImages();
57
			}
57
			}
58
		});
58
		});
59
 
59
 
60
		vue.getTextBox().addKeyPressHandler(new KeyPressHandler() {
60
		vue.nomEspece.addKeyPressHandler(new KeyPressHandler() {
61
 
61
 
Line 62... Line 62...
62
			public void onKeyPress(KeyPressEvent event) {
62
			public void onKeyPress(KeyPressEvent event) {
Line 63... Line 63...
63
				if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER) {
63
				if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER) {
64
					chargerImages();
64
					chargerImages();
65
				}
65
				}
66
			}
66
			}
67
		});
67
		});
68
 
68
 
69
		vue.getListeProtocoles().addChangeHandler(new ChangeHandler() {
69
		vue.listeProtocoles.addChangeHandler(new ChangeHandler() {
70
 
70