Subversion Repositories eFlore/Applications.coel

Rev

Rev 1764 | Rev 1800 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1764 Rev 1784
Line 114... Line 114...
114
	}
114
	}
Line 115... Line 115...
115
 
115
 
116
	private ToolBar creerBarreOutilsGrille() {
116
	private ToolBar creerBarreOutilsGrille() {
Line 117... Line 117...
117
		ToolBar barreOutils = new ToolBar();  
117
		ToolBar barreOutils = new ToolBar();  
118
		
118
 
Line 119... Line 119...
119
		Button ajouterBouton = creerBoutonAjouter();
119
		publicationsSaisiesComboBox = creerComboBoxPublicationsSaisis();
Line 120... Line 120...
120
		barreOutils.add(ajouterBouton);
120
		barreOutils.add(publicationsSaisiesComboBox);
121
		
121
		
Line 122... Line 122...
122
		barreOutils.add(new Text(" ou "));
122
		barreOutils.add(new Text(" ou "));
Line 123... Line 123...
123
		
123
 
124
		publicationsSaisiesComboBox = creerComboBoxPublicationsSaisis();
124
		Button ajouterBouton = creerBoutonAjouter();
Line 294... Line 294...
294
				}
294
				}
295
				return retour;
295
				return retour;
296
			}
296
			}
297
		});
297
		});
Line -... Line 298...
-
 
298
		
-
 
299
		publicationsCombo.getCombo().setEmptyText("Rechercher et sélectionner une publication existante dans la base");
298
		
300
		
299
		publicationsCombo.getCombo().addListener(Events.Select, new Listener<BaseEvent>() {
301
		publicationsCombo.getCombo().addListener(Events.Select, new Listener<BaseEvent>() {
300
			public void handleEvent(BaseEvent be) {
302
			public void handleEvent(BaseEvent be) {
301
				if (publicationsSaisiesComboBox.getValeur() instanceof ModelData) {
303
				if (publicationsSaisiesComboBox.getValeur() instanceof ModelData) {
302
					Publication publicationSaisieSelectionne = new Publication(publicationsSaisiesComboBox.getValeur(), false);					
304
					Publication publicationSaisieSelectionne = new Publication(publicationsSaisiesComboBox.getValeur(), false);