Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1367 Rev 1369
Line 170... Line 170...
170
		structuresCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyStructures, modelTypeStructures, displayNameStructures);
170
		structuresCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyStructures, modelTypeStructures, displayNameStructures);
171
		structuresCombo.setWidth(250, 600);
171
		structuresCombo.setWidth(250, 600);
172
		structuresCombo.getCombo().setTabIndex(tabIndex++);
172
		structuresCombo.getCombo().setTabIndex(tabIndex++);
173
		structuresCombo.getCombo().setFieldLabel(i18nC.lienStructureCollection());
173
		structuresCombo.getCombo().setFieldLabel(i18nC.lienStructureCollection());
174
		structuresCombo.getCombo().setForceSelection(true);
174
		structuresCombo.getCombo().setForceSelection(true);
175
		structuresCombo.getCombo().addStyleName(ComposantClass.OBLIGATOIRE);
-
 
176
		structuresCombo.getCombo().addListener(Events.Valid, Formulaire.creerEcouteurChampObligatoire());		
-
 
Line 177... Line 175...
177
		
175
		
178
		structuresCombo.getCombo().setValidator(new Validator() {
176
		structuresCombo.getCombo().setValidator(new Validator() {
179
			public String validate(Field<?> field, String value) {
177
			public String validate(Field<?> field, String value) {
180
				String retour = null;
178
				String retour = null;
Line 209... Line 207...
209
		
207
		
210
		collectionsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyCollections, modelTypeCollections, displayNameCollections);
208
		collectionsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyCollections, modelTypeCollections, displayNameCollections);
211
		collectionsCombo.setWidth(250, 600);
209
		collectionsCombo.setWidth(250, 600);
212
		collectionsCombo.getCombo().setTabIndex(tabIndex++);
210
		collectionsCombo.getCombo().setTabIndex(tabIndex++);
213
		collectionsCombo.getCombo().setFieldLabel(i18nC.lienMereCollection());
211
		collectionsCombo.getCombo().setFieldLabel(i18nC.lienMereCollection());
214
		collectionsCombo.getCombo().setForceSelection(true);
-
 
215
		collectionsCombo.getCombo().addStyleName(ComposantClass.OBLIGATOIRE);
-
 
Line 216... Line 212...
216
		collectionsCombo.getCombo().addListener(Events.Valid, Formulaire.creerEcouteurChampObligatoire());	
212
		collectionsCombo.getCombo().setForceSelection(true);	
217
		
213
		
218
		collectionsCombo.getCombo().setValidator(new Validator() {
214
		collectionsCombo.getCombo().setValidator(new Validator() {
219
			public String validate(Field<?> field, String value) {
215
			public String validate(Field<?> field, String value) {
Line 448... Line 444...
448
		}
444
		}
449
		return valeur;
445
		return valeur;
450
	}
446
	}
451
	private void setValeurComboCollections() {
447
	private void setValeurComboCollections() {
452
		if (collectionsCombo.getCombo().getStore() != null && collection != null) {
448
		if (collectionsCombo.getCombo().getStore() != null && collection != null) {
453
			Debug.log("collection.getCollectionMereId()="+collection.getCollectionMereId());
-
 
454
			collectionsCombo.getCombo().setValue(collectionsCombo.getStore().findModel("cc_ce_mere", collection.getCollectionMereId()));
449
			collectionsCombo.getCombo().setValue(collectionsCombo.getStore().findModel("cc_ce_mere", collection.getCollectionMereId()));
455
		}
450
		}
456
	}
451
	}
Line 457... Line 452...
457
	
452