Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1462 Rev 1465
Line 187... Line 187...
187
	{
187
	{
188
		combo.setSelection(selection);
188
		combo.setSelection(selection);
189
	}
189
	}
Line 190... Line 190...
190
 
190
 
191
	public void chargerValeurInitiale(String valeurInitiale, String champ)
191
	public void chargerValeurInitiale(String valeurInitiale, String champ)
192
	{
192
	{		
193
		this.valeurInitiale = valeurInitiale;
193
		this.valeurInitiale = valeurInitiale;
Line 194... Line 194...
194
		this.champValeurInitiale = champ;
194
		this.champValeurInitiale = champ;
195
 
195
 
Line 204... Line 204...
204
			Information info = (Information) nouvellesDonnees;
204
			Information info = (Information) nouvellesDonnees;
205
			if (info.getType().equals("selectionnerValeurCombo")) {
205
			if (info.getType().equals("selectionnerValeurCombo")) {
206
				if (combo.getStore().findModel(champValeurInitiale, valeurInitiale) == null) {
206
				if (combo.getStore().findModel(champValeurInitiale, valeurInitiale) == null) {
207
					Debug.log("ERREUR. Modele non trouvé.");
207
					Debug.log("ERREUR. Modele non trouvé.");
208
					Debug.log("Recherché : ["+champValeurInitiale+"]="+valeurInitiale);
208
					Debug.log("Recherché : ["+champValeurInitiale+"]="+valeurInitiale);
209
					Debug.log("Les propriétés des modèles sont :");
209
					Debug.log("Le magasin contient "+combo.getStore().getCount()+" éléments. Les propriétés des modèles sont :");
210
					for (int i=0; i<combo.getStore().getCount(); i++) {
210
					for (int i=0; i<combo.getStore().getCount(); i++) {
211
						Debug.log(combo.getStore().getAt(i).getProperties().toString());
211
						Debug.log(combo.getStore().getAt(i).getProperties().toString());
212
					}
212
					}
213
				}
213
				}
214
				else combo.setValue(combo.getStore().findModel(champValeurInitiale, valeurInitiale));
214
				else combo.setValue(combo.getStore().findModel(champValeurInitiale, valeurInitiale));