Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1018 Rev 1032
Line 123... Line 123...
123
			}
123
			}
124
		});
124
		});
125
		projetsCombo.setTriggerAction(TriggerAction.ALL);
125
		projetsCombo.setTriggerAction(TriggerAction.ALL);
126
		projetsCombo.setStore(new ListStore<Projet>());
126
		projetsCombo.setStore(new ListStore<Projet>());
127
		projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE);
127
		projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE);
128
		projetsCombo.addListener(Events.Valid, new Listener<BaseEvent>() {
128
		projetsCombo.addListener(Events.Valid, Formulaire.creerEcouteurChampObligatoire());
129
			@Override
-
 
130
			public void handleEvent(BaseEvent be) {
-
 
131
				Projet valeur = projetsCombo.getValue();
-
 
132
				// Gestion du style obligatoire
-
 
133
				projetsCombo.removeStyleName(ComposantClass.OBLIGATOIRE);
-
 
134
				projetsCombo.removeStyleName(ComposantClass.OBLIGATOIRE_OK);
-
 
135
				if (valeur != null) {
-
 
136
					projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE_OK);
-
 
137
				} else {
-
 
138
					projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE);
-
 
139
				}
-
 
140
			}
-
 
141
		});
-
 
142
		liaisonFieldSet.add(projetsCombo, new FormData(450, 0));
129
		liaisonFieldSet.add(projetsCombo, new FormData(450, 0));
143
		mediateur.selectionnerProjet(this, null);
130
		mediateur.selectionnerProjet(this, null);
Line 144... Line 131...
144
		
131
		
145
		structuresCombo = new ComboBox<Structure>();
132
		structuresCombo = new ComboBox<Structure>();