Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1134 Rev 1176
Line 163... Line 163...
163
		});
163
		});
Line 164... Line 164...
164
		
164
		
165
		auteursFieldset.add(conteneurChamps);
165
		auteursFieldset.add(conteneurChamps);
166
		auteursFieldset.add(ajouterAuteurBouton);
166
		auteursFieldset.add(ajouterAuteurBouton);
167
		auteursFieldset.layout();
-
 
168
		
-
 
169
		if (mode.equals(Formulaire.MODE_AJOUTER)) {
-
 
170
			creerChampAuteurEtBoutonSupprimer(null);
-
 
171
		}
167
		auteursFieldset.layout();
Line 172... Line 168...
172
	}
168
	}
173
	
169
	
Line 221... Line 217...
221
		comboBox.setAllowBlank(false);
217
		comboBox.setAllowBlank(false);
222
		comboBox.setForceSelection(true);
218
		comboBox.setForceSelection(true);
223
		comboBox.setDisplayField("fmt_nom_complet");
219
		comboBox.setDisplayField("fmt_nom_complet");
224
		comboBox.setTriggerAction(TriggerAction.ALL);
220
		comboBox.setTriggerAction(TriggerAction.ALL);
225
		comboBox.setStore(auteursStore);
221
		comboBox.setStore(auteursStore);
-
 
222
		comboBox.setMessageTarget("tooltip");
226
		comboBox.addStyleName(ComposantClass.OBLIGATOIRE);
223
		comboBox.addStyleName(ComposantClass.OBLIGATOIRE);
227
		comboBox.addListener(Events.Valid, creerEcouteurChampObligatoire());
224
		comboBox.addListener(Events.Valid, creerEcouteurChampObligatoire());
Line 228... Line 225...
228
 
225
 
229
		return comboBox;
226
		return comboBox;
Line 346... Line 343...
346
		
343
		
347
		if (etrePretAAfficherAuteurs()) {
344
		if (etrePretAAfficherAuteurs()) {
348
			afficherAuteurs();
345
			afficherAuteurs();
349
			initialiserAffichageAuteurs();
346
			initialiserAffichageAuteurs();
-
 
347
		}
-
 
348
		if (etrePretAInitialiserAuteur()) {
-
 
349
			creerChampAuteurEtBoutonSupprimer(null);
-
 
350
			initialiserInitialisationAuteur();
Line 350... Line 351...
350
		}
351
		}
351
		
352
		
352
		if (etreValide()) {
353
		if (etreValide()) {
353
			initialiserValidation();
354
			initialiserValidation();
Line 464... Line 465...
464
	private void initialiserAffichageAuteurs() {
465
	private void initialiserAffichageAuteurs() {
465
		publicationOk = false;
466
		publicationOk = false;
466
		auteurStorePartageChargementOk = false;
467
		auteurStorePartageChargementOk = false;
467
		publicationAPersonneListeChargementOk = false;
468
		publicationAPersonneListeChargementOk = false;
468
	}
469
	}
-
 
470
	
-
 
471
	private void initialiserInitialisationAuteur() {
-
 
472
		auteurStorePartageChargementOk = false;
-
 
473
	}
Line 469... Line 474...
469
 
474
 
470
	private boolean etrePretAAfficherAuteurs() {
475
	private boolean etrePretAAfficherAuteurs() {
471
		boolean ok = false;
476
		boolean ok = false;
-
 
477
		if (mode.equals(Formulaire.MODE_MODIFIER) && publicationOk && auteurStorePartageChargementOk && publicationAPersonneListeChargementOk) {
-
 
478
			ok = true;
-
 
479
		}
-
 
480
		return ok;
-
 
481
	}
-
 
482
	
-
 
483
	private boolean etrePretAInitialiserAuteur() {
-
 
484
		boolean ok = false;
472
		if (publicationOk && auteurStorePartageChargementOk && publicationAPersonneListeChargementOk) {
485
		if (mode.equals(Formulaire.MODE_AJOUTER) && auteurStorePartageChargementOk) {
473
			ok = true;
486
			ok = true;
474
		}
487
		}
475
		return ok;
488
		return ok;