Subversion Repositories eFlore/Applications.coel

Rev

Rev 1764 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1764 Rev 1784
Line 145... Line 145...
145
	}
145
	}
Line 146... Line 146...
146
 
146
 
147
	private ToolBar creerBarreOutilsGrille() {
147
	private ToolBar creerBarreOutilsGrille() {
Line 148... Line 148...
148
		ToolBar barreOutils = new ToolBar();  
148
		ToolBar barreOutils = new ToolBar();  
149
		
149
		
Line 150... Line 150...
150
		Button ajouterPersonneBouton = creerBoutonAjouter();
150
		commentairesSaisisComboBox = creerComboBoxCommentairesSaisies();
Line 151... Line 151...
151
		barreOutils.add(ajouterPersonneBouton);
151
		barreOutils.add(commentairesSaisisComboBox);
152
		
152
		
Line 153... Line 153...
153
		barreOutils.add(new Text(" ou "));
153
		barreOutils.add(new Text(" ou "));		
Line 154... Line 154...
154
		
154
		
155
		commentairesSaisisComboBox = creerComboBoxCommentairesSaisies();
155
		Button ajouterPersonneBouton = creerBoutonAjouter();
Line 315... Line 315...
315
				}
315
				}
316
				return retour;
316
				return retour;
317
			}
317
			}
318
		});
318
		});
Line -... Line 319...
-
 
319
		
-
 
320
		commentairesCombo.getCombo().setEmptyText("Rechercher et sélectionner une note existante dans la base");
319
		
321
		
320
		commentairesCombo.getCombo().addListener(Events.Select, new Listener<BaseEvent>() {
322
		commentairesCombo.getCombo().addListener(Events.Select, new Listener<BaseEvent>() {
321
			public void handleEvent(BaseEvent be) {
323
			public void handleEvent(BaseEvent be) {
322
				if (commentairesSaisisComboBox.getValeur() instanceof ModelData) {
324
				if (commentairesSaisisComboBox.getValeur() instanceof ModelData) {
323
					Commentaire commentaireSaisiSelectionnee = new Commentaire(commentairesSaisisComboBox.getValeur());
325
					Commentaire commentaireSaisiSelectionnee = new Commentaire(commentairesSaisisComboBox.getValeur());