Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 999 Rev 1032
Line 104... Line 104...
104
			}
104
			}
105
		});
105
		});
106
		projetsCombo.setTriggerAction(TriggerAction.ALL);
106
		projetsCombo.setTriggerAction(TriggerAction.ALL);
107
		projetsCombo.setStore(new ListStore<Projet>());
107
		projetsCombo.setStore(new ListStore<Projet>());
108
		projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE);
108
		projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE);
109
		projetsCombo.addListener(Events.Valid, new Listener<BaseEvent>() {
109
		projetsCombo.addListener(Events.Valid, Formulaire.creerEcouteurChampObligatoire());
110
			@Override
-
 
111
			public void handleEvent(BaseEvent be) {
-
 
112
				Projet valeur = projetsCombo.getValue();
-
 
113
				// Gestion du style obligatoire
-
 
114
				projetsCombo.removeStyleName(ComposantClass.OBLIGATOIRE);
-
 
115
				projetsCombo.removeStyleName(ComposantClass.OBLIGATOIRE_OK);
-
 
116
				if (valeur != null) {
-
 
117
					projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE_OK);
-
 
118
				} else {
-
 
119
					projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE);
-
 
120
				}
-
 
121
			}
-
 
122
		});
-
 
123
		panneauFormulaire.add(projetsCombo, new FormData(450, 0));
110
		panneauFormulaire.add(projetsCombo, new FormData(450, 0));
124
		mediateur.selectionnerProjet(this, null);
111
		mediateur.selectionnerProjet(this, null);
Line 125... Line 112...
125
		
112
		
126
		titreChp = new TextField<String>();
113
		titreChp = new TextField<String>();