Subversion Repositories eFlore/Applications.del

Rev

Rev 1206 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1206 Rev 1222
Line 101... Line 101...
101
	public void mettreAJourDescriptionProtocoleCourant(
101
	public void mettreAJourDescriptionProtocoleCourant(
102
			Protocole protocoleCourant) {
102
			Protocole protocoleCourant) {
103
		listeProtocoles.setTitle(protocoleCourant.getDescription());
103
		listeProtocoles.setTitle(protocoleCourant.getDescription());
104
	}
104
	}
Line -... Line 105...
-
 
105
 
-
 
106
	@Override
-
 
107
	public void selectionnerProtocoleParProtocole(Protocole protocole) {
-
 
108
		int index = 0;
-
 
109
		for (int i = 0; i < listeProtocoles.getItemCount(); i++) {
-
 
110
			int id = Integer.parseInt(listeProtocoles.getValue(i));
-
 
111
			if (id == protocole.getId()) {
-
 
112
				index = i;
-
 
113
			}
-
 
114
		}
-
 
115
		listeProtocoles.setSelectedIndex(index);
-
 
116
	}
105
 
117