Subversion Repositories eFlore/Applications.coel

Rev

Rev 781 | Rev 786 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 781 Rev 782
1
package org.tela_botanica.client.vues;
1
package org.tela_botanica.client.vues;
2
 
2
 
3
import java.util.ArrayList;
3
import java.util.ArrayList;
4
import java.util.HashMap;
4
import java.util.HashMap;
5
import java.util.Iterator;
5
import java.util.Iterator;
6
import java.util.List;
6
import java.util.List;
7
 
7
 
8
import org.tela_botanica.client.Mediateur;
8
import org.tela_botanica.client.Mediateur;
9
import org.tela_botanica.client.RegistreId;
9
import org.tela_botanica.client.RegistreId;
10
import org.tela_botanica.client.composants.ChampMultiValeurs;
10
import org.tela_botanica.client.composants.ChampMultiValeurs;
11
import org.tela_botanica.client.images.Images;
11
import org.tela_botanica.client.images.Images;
12
import org.tela_botanica.client.interfaces.Rafraichissable;
12
import org.tela_botanica.client.interfaces.Rafraichissable;
13
import org.tela_botanica.client.modeles.Collection;
13
import org.tela_botanica.client.modeles.Collection;
14
import org.tela_botanica.client.modeles.CollectionListe;
14
import org.tela_botanica.client.modeles.CollectionListe;
15
import org.tela_botanica.client.modeles.Configuration;
15
import org.tela_botanica.client.modeles.Configuration;
16
import org.tela_botanica.client.modeles.Information;
16
import org.tela_botanica.client.modeles.Information;
17
import org.tela_botanica.client.modeles.MenuApplicationId;
17
import org.tela_botanica.client.modeles.MenuApplicationId;
18
import org.tela_botanica.client.modeles.Projet;
18
import org.tela_botanica.client.modeles.Projet;
19
import org.tela_botanica.client.modeles.ProjetListe;
19
import org.tela_botanica.client.modeles.ProjetListe;
20
import org.tela_botanica.client.modeles.Structure;
20
import org.tela_botanica.client.modeles.Structure;
21
import org.tela_botanica.client.modeles.StructureListe;
21
import org.tela_botanica.client.modeles.StructureListe;
22
import org.tela_botanica.client.modeles.Valeur;
22
import org.tela_botanica.client.modeles.Valeur;
23
import org.tela_botanica.client.modeles.ValeurListe;
23
import org.tela_botanica.client.modeles.ValeurListe;
24
 
24
 
25
import com.extjs.gxt.ui.client.Registry;
25
import com.extjs.gxt.ui.client.Registry;
26
import com.extjs.gxt.ui.client.Style.SortDir;
26
import com.extjs.gxt.ui.client.Style.SortDir;
27
import com.extjs.gxt.ui.client.event.BaseEvent;
27
import com.extjs.gxt.ui.client.event.BaseEvent;
28
import com.extjs.gxt.ui.client.event.ButtonEvent;
28
import com.extjs.gxt.ui.client.event.ButtonEvent;
29
import com.extjs.gxt.ui.client.event.ComponentEvent;
29
import com.extjs.gxt.ui.client.event.ComponentEvent;
30
import com.extjs.gxt.ui.client.event.EventType;
30
import com.extjs.gxt.ui.client.event.EventType;
31
import com.extjs.gxt.ui.client.event.Events;
31
import com.extjs.gxt.ui.client.event.Events;
32
import com.extjs.gxt.ui.client.event.Listener;
32
import com.extjs.gxt.ui.client.event.Listener;
33
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
33
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
34
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
34
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
35
import com.extjs.gxt.ui.client.event.SelectionListener;
35
import com.extjs.gxt.ui.client.event.SelectionListener;
36
import com.extjs.gxt.ui.client.event.WidgetListener;
36
import com.extjs.gxt.ui.client.event.WidgetListener;
37
import com.extjs.gxt.ui.client.store.ListStore;
37
import com.extjs.gxt.ui.client.store.ListStore;
38
import com.extjs.gxt.ui.client.store.Store;
38
import com.extjs.gxt.ui.client.store.Store;
39
import com.extjs.gxt.ui.client.store.StoreEvent;
39
import com.extjs.gxt.ui.client.store.StoreEvent;
40
import com.extjs.gxt.ui.client.store.StoreListener;
40
import com.extjs.gxt.ui.client.store.StoreListener;
41
import com.extjs.gxt.ui.client.widget.Component;
41
import com.extjs.gxt.ui.client.widget.Component;
42
import com.extjs.gxt.ui.client.widget.Info;
42
import com.extjs.gxt.ui.client.widget.Info;
43
import com.extjs.gxt.ui.client.widget.LayoutContainer;
43
import com.extjs.gxt.ui.client.widget.LayoutContainer;
44
import com.extjs.gxt.ui.client.widget.MessageBox;
44
import com.extjs.gxt.ui.client.widget.MessageBox;
45
import com.extjs.gxt.ui.client.widget.TabItem;
45
import com.extjs.gxt.ui.client.widget.TabItem;
46
import com.extjs.gxt.ui.client.widget.TabPanel;
46
import com.extjs.gxt.ui.client.widget.TabPanel;
47
import com.extjs.gxt.ui.client.widget.Text;
47
import com.extjs.gxt.ui.client.widget.Text;
48
import com.extjs.gxt.ui.client.widget.button.Button;
48
import com.extjs.gxt.ui.client.widget.button.Button;
49
import com.extjs.gxt.ui.client.widget.form.ComboBox;
49
import com.extjs.gxt.ui.client.widget.form.ComboBox;
50
import com.extjs.gxt.ui.client.widget.form.Field;
50
import com.extjs.gxt.ui.client.widget.form.Field;
51
import com.extjs.gxt.ui.client.widget.form.FieldSet;
51
import com.extjs.gxt.ui.client.widget.form.FieldSet;
52
import com.extjs.gxt.ui.client.widget.form.HiddenField;
52
import com.extjs.gxt.ui.client.widget.form.HiddenField;
53
import com.extjs.gxt.ui.client.widget.form.LabelField;
53
import com.extjs.gxt.ui.client.widget.form.LabelField;
54
import com.extjs.gxt.ui.client.widget.form.NumberField;
54
import com.extjs.gxt.ui.client.widget.form.NumberField;
55
import com.extjs.gxt.ui.client.widget.form.Radio;
55
import com.extjs.gxt.ui.client.widget.form.Radio;
56
import com.extjs.gxt.ui.client.widget.form.TextArea;
56
import com.extjs.gxt.ui.client.widget.form.TextArea;
57
import com.extjs.gxt.ui.client.widget.form.TextField;
57
import com.extjs.gxt.ui.client.widget.form.TextField;
58
import com.extjs.gxt.ui.client.widget.form.Validator;
58
import com.extjs.gxt.ui.client.widget.form.Validator;
59
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
59
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
60
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
60
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
61
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
61
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
62
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
62
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
63
import com.extjs.gxt.ui.client.widget.layout.FormData;
63
import com.extjs.gxt.ui.client.widget.layout.FormData;
64
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
64
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
65
import com.google.gwt.core.client.GWT;
65
import com.google.gwt.core.client.GWT;
66
import com.google.gwt.i18n.client.NumberFormat;
66
import com.google.gwt.i18n.client.NumberFormat;
67
import com.google.gwt.user.client.ui.Widget;
67
import com.google.gwt.user.client.ui.Widget;
68
 
68
 
69
public class CollectionForm extends Formulaire implements Rafraichissable {
69
public class CollectionForm extends Formulaire implements Rafraichissable {
70
 
70
 
71
	private Collection collection = null;
71
	private Collection collection = null;
72
	private Collection collectionCollectee = null;
72
	private Collection collectionCollectee = null;
73
 
73
 
74
	private HashMap<String,ComboBox<Valeur>> champsCbv = new HashMap<String,ComboBox<Valeur>>();
74
	private HashMap<String,ComboBox<Valeur>> champsCbv = new HashMap<String,ComboBox<Valeur>>();
75
	private HashMap<String,ListStore<Valeur>> champsLsv = new HashMap<String,ListStore<Valeur>>();
75
	private HashMap<String,ListStore<Valeur>> champsLsv = new HashMap<String,ListStore<Valeur>>();
76
	
76
	
77
	private TabPanel onglets = null;
77
	private TabPanel onglets = null;
78
	private TabItem generalOnglet = null;
78
	private TabItem generalOnglet = null;
79
	private TabItem auteurOnglet = null;
79
	private TabItem auteurOnglet = null;
80
	private TabItem publicationOnglet = null;
80
	private TabItem publicationOnglet = null;
81
	private TabItem descriptionOnglet = null;
81
	private TabItem descriptionOnglet = null;
82
	private TabItem contenuOnglet = null;
82
	private TabItem contenuOnglet = null;
83
	private TabItem documentOnglet = null;
83
	private TabItem documentOnglet = null;
84
	private TabItem inventaireOnglet = null;
84
	private TabItem inventaireOnglet = null;
85
	
85
	
86
	public CollectionForm(Mediateur mediateurCourrant, String modeDeCreation) {
86
	public CollectionForm(Mediateur mediateurCourrant, String modeDeCreation) {
87
		initialiserFormulaire(mediateurCourrant, modeDeCreation, MenuApplicationId.COLLECTION);
87
		initialiserFormulaire(mediateurCourrant, modeDeCreation, MenuApplicationId.COLLECTION);
88
		// Création des onglets
88
		// Création des onglets
89
		onglets = creerOnglets();
89
		onglets = creerOnglets();
90
		// Ajout des onglets au formulaire général
90
		// Ajout des onglets au formulaire général
91
		panneauFormulaire.add(onglets);
91
		panneauFormulaire.add(onglets);
92
	}
92
	}
93
	
93
	
94
	protected TabPanel creerOnglets() {
94
	protected TabPanel creerOnglets() {
95
		TabPanel ongletsCollection = new TabPanel();
95
		TabPanel ongletsCollection = new TabPanel();
96
		// NOTE : pour faire apparaître les scrollBar il faut définir la hauteur du panneau d'onglets à 100% (autoHeight ne semble pas fonctionner) 
96
		// NOTE : pour faire apparaître les scrollBar il faut définir la hauteur du panneau d'onglets à 100% (autoHeight ne semble pas fonctionner) 
97
		ongletsCollection.setHeight("100%");
97
		ongletsCollection.setHeight("100%");
98
		
98
		
99
		// Onlget formulaire GENERAL
99
		// Onlget formulaire GENERAL
100
		ongletsCollection.add(creerOngletGeneral());
100
		ongletsCollection.add(creerOngletGeneral());
101
		
101
		
102
		// Onlget formulaire AUTEUR
102
		// Onlget formulaire AUTEUR
103
		ongletsCollection.add(creerOngletAuteur());
103
		ongletsCollection.add(creerOngletAuteur());
104
		
104
		
105
		// Onlget formulaire PUBLICATION
105
		// Onlget formulaire PUBLICATION
106
		ongletsCollection.add(creerOngletPublication());
106
		ongletsCollection.add(creerOngletPublication());
107
		
107
		
108
		// Onlget formulaire DESCRIPTION
108
		// Onlget formulaire DESCRIPTION
109
		ongletsCollection.add(creerOngletDescription());
109
		ongletsCollection.add(creerOngletDescription());
110
		
110
		
111
		// Onlget formulaire CONTENU
111
		// Onlget formulaire CONTENU
112
		ongletsCollection.add(creerOngletContenu());
112
		ongletsCollection.add(creerOngletContenu());
113
		
113
		
114
		// Onlget formulaire DOCUMENT
114
		// Onlget formulaire DOCUMENT
115
		ongletsCollection.add(creerOngletDocument());
115
		ongletsCollection.add(creerOngletDocument());
116
		
116
		
117
		// Onlget formulaire INVENTAIRE
117
		// Onlget formulaire INVENTAIRE
118
		ongletsCollection.add(creerOngletInventaire());
118
		ongletsCollection.add(creerOngletInventaire());
119
		
119
		
120
		// Sélection de l'onglet par défaut
120
		// Sélection de l'onglet par défaut
121
		ongletsCollection.setSelection(auteurOnglet);
121
		ongletsCollection.setSelection(auteurOnglet);
122
		
122
		
123
		return ongletsCollection;
123
		return ongletsCollection;
124
	}
124
	}
125
	
125
	
126
	private TabItem creerOngletGeneral() {
126
	private TabItem creerOngletGeneral() {
127
		generalOnglet = new CollectionFormGeneral(this);
127
		generalOnglet = new CollectionFormGeneral(this);
128
		return generalOnglet;
128
		return generalOnglet;
129
	}
129
	}
130
	
130
	
131
	private TabItem creerOngletAuteur() {
131
	private TabItem creerOngletAuteur() {
132
		auteurOnglet = new CollectionFormAuteur(this);
132
		auteurOnglet = new CollectionFormAuteur(this);
133
		return auteurOnglet;
133
		return auteurOnglet;
134
	}
134
	}
135
	
135
	
136
	private TabItem creerOngletPublication() {
136
	private TabItem creerOngletPublication() {
137
		publicationOnglet = new CollectionFormPublication(this);
137
		publicationOnglet = new CollectionFormPublication(this);
138
		return publicationOnglet;
138
		return publicationOnglet;
139
	}
139
	}
140
	
140
	
141
	private TabItem creerOngletDescription() {
141
	private TabItem creerOngletDescription() {
142
		descriptionOnglet = creerOnglet(i18nC.collectionDescription(), "description");
142
		descriptionOnglet = creerOnglet(i18nC.collectionDescription(), "description");
143
		descriptionOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {  
143
		descriptionOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {  
144
			public void handleEvent(ComponentEvent be) {  
144
			public void handleEvent(ComponentEvent be) {  
145
				//peuplerOngletDescription();
145
				//peuplerOngletDescription();
146
				descriptionOnglet.layout();
146
				descriptionOnglet.layout();
147
			}  
147
			}  
148
		});
148
		});
149
		
149
		
150
		return descriptionOnglet;
150
		return descriptionOnglet;
151
	}
151
	}
152
	
152
	
153
	private TabItem creerOngletContenu() {
153
	private TabItem creerOngletContenu() {
154
		contenuOnglet = creerOnglet(i18nC.collectionContenu(), "contenu");
154
		contenuOnglet = creerOnglet(i18nC.collectionContenu(), "contenu");
155
		contenuOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {  
155
		contenuOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {  
156
			public void handleEvent(ComponentEvent be) {  
156
			public void handleEvent(ComponentEvent be) {  
157
				//peuplerOngletContenu();
157
				//peuplerOngletContenu();
158
				contenuOnglet.layout();
158
				contenuOnglet.layout();
159
			}  
159
			}  
160
		});
160
		});
161
		
161
		
162
		return contenuOnglet;
162
		return contenuOnglet;
163
	}
163
	}
164
	
164
	
165
	private TabItem creerOngletDocument() {
165
	private TabItem creerOngletDocument() {
166
		documentOnglet = creerOnglet(i18nC.collectionDocument(), "document");
166
		documentOnglet = creerOnglet(i18nC.collectionDocument(), "document");
167
		documentOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {  
167
		documentOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {  
168
			public void handleEvent(ComponentEvent be) {  
168
			public void handleEvent(ComponentEvent be) {  
169
				//peuplerOngletDocument();
169
				//peuplerOngletDocument();
170
				documentOnglet.layout();
170
				documentOnglet.layout();
171
			}  
171
			}  
172
		});
172
		});
173
		
173
		
174
		return documentOnglet;
174
		return documentOnglet;
175
	}
175
	}
176
	
176
	
177
	private TabItem creerOngletInventaire() {
177
	private TabItem creerOngletInventaire() {
178
		inventaireOnglet = creerOnglet(i18nC.collectionInventaire(), "inventaire");
178
		inventaireOnglet = creerOnglet(i18nC.collectionInventaire(), "inventaire");
179
		inventaireOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {  
179
		inventaireOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {  
180
			public void handleEvent(ComponentEvent be) {  
180
			public void handleEvent(ComponentEvent be) {  
181
				//peuplerOngletInventaire();
181
				//peuplerOngletInventaire();
182
				inventaireOnglet.layout();
182
				inventaireOnglet.layout();
183
			}  
183
			}  
184
		});
184
		});
185
		
185
		
186
		return inventaireOnglet;
186
		return inventaireOnglet;
187
	}
187
	}
188
	
188
	
189
	public void rafraichir(Object nouvellesDonnees) {
189
	public void rafraichir(Object nouvellesDonnees) {
190
		try {
190
		try {
191
			if (nouvellesDonnees instanceof Information) {
191
			if (nouvellesDonnees instanceof Information) {
192
				Information info = (Information) nouvellesDonnees;
192
				Information info = (Information) nouvellesDonnees;
193
				rafraichirInformation(info);
193
				rafraichirInformation(info);
194
			} else {
194
			} else {
195
				GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
195
				GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
196
			}
196
			}
197
		} catch (Exception e) {
197
		} catch (Exception e) {
198
			GWT.log("rafraichir()", e);
198
			GWT.log("rafraichir()", e);
199
		}
199
		}
200
		verifierApresRafraichissement();
200
		controlerFermetureApresRafraichissement();
201
	}
201
	}
202
 
202
 
203
	private void rafraichirInformation(Information info) {
203
	private void rafraichirInformation(Information info) {
204
		if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
204
		if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
205
			GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
205
			GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
206
		}
206
		}
207
		
207
		
208
		if (info.getType().equals("modif_structure")) {
208
		if (info.getType().equals("modif_structure")) {
209
			Info.display("Modification d'une collection", info.toString());
209
			Info.display("Modification d'une collection", info.toString());
210
		} else if (info.getType().equals("selection_collection")) {
210
		} else if (info.getType().equals("selection_collection")) {
211
			Info.display("Modification d'une collection", info.toString());
211
			Info.display("Modification d'une collection", info.toString());
212
			if (info.getDonnee(0) != null) {
212
			if (info.getDonnee(0) != null) {
213
				collection = (Collection) info.getDonnee(0);
213
				collection = (Collection) info.getDonnee(0);
214
			}
214
			}
215
			actualiserPeuplementOnglet();
215
			actualiserPeuplementOnglet();
216
			actualiserTitrePanneau();
216
			actualiserTitrePanneau();
217
		}
217
		}
218
	}
218
	}
219
	
219
	
220
	private void actualiserPeuplementOnglet() {
220
	private void actualiserPeuplementOnglet() {
221
		onglets.setSelection(onglets.getSelectedItem());
221
		onglets.setSelection(onglets.getSelectedItem());
222
	}
222
	}
223
 
223
 
224
	private void actualiserTitrePanneau() {
224
	private void actualiserTitrePanneau() {
225
		String titre = i18nC.titreModifFormCollection();
225
		String titre = i18nC.titreModifFormCollection();
226
		// Composition du titre
226
		// Composition du titre
227
		titre += " - ID : "+collection.getId();
227
		titre += " - ID : "+collection.getId();
228
		panneauFormulaire.setHeading(titre);		
228
		panneauFormulaire.setHeading(titre);		
229
	}
229
	}
230
 
230
 
231
	@Override
231
	@Override
232
	protected SelectionListener<ButtonEvent> creerEcouteurValidation() {
232
	protected SelectionListener<ButtonEvent> creerEcouteurValidation() {
233
		SelectionListener<ButtonEvent> ecouteur = new SelectionListener<ButtonEvent>() {
233
		SelectionListener<ButtonEvent> ecouteur = new SelectionListener<ButtonEvent>() {
234
			@Override
234
			@Override
235
			public void componentSelected(ButtonEvent ce) {
235
			public void componentSelected(ButtonEvent ce) {
236
				String code = ((Button) ce.getComponent()).getData("code");
236
				String code = ((Button) ce.getComponent()).getData("code");
237
				if (code.equals(FormulaireBarreValidation.CODE_BOUTON_VALIDER)) {
237
				if (code.equals(FormulaireBarreValidation.CODE_BOUTON_VALIDER)) {
238
					soumettreFormulaire(renvoyerCollectionForm());
238
					soumettreFormulaire();
239
					clicBoutonvalidation = true;
239
					clicBoutonvalidation = true;
240
				} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_APPLIQUER)) {
240
				} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_APPLIQUER)) {
241
					soumettreFormulaire(renvoyerCollectionForm());
241
					soumettreFormulaire();
242
				} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_ANNULER)) {
242
				} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_ANNULER)) {
243
					mediateur.clicMenu(menuIdCourant);
243
					mediateur.clicMenu(menuIdCourant);
244
				} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_REINITIALISER)) {
244
				} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_REINITIALISER)) {
245
					reinitialiserFormulaire();
245
					reinitialiserFormulaire();
246
				}
246
				}
247
			}
247
			}
248
		};
248
		};
249
		
249
		
250
		return ecouteur;
250
		return ecouteur;
251
	}
251
	}
252
	
-
 
253
	private CollectionForm renvoyerCollectionForm() {
-
 
254
		return this;
-
 
255
	}
-
 
256
	
252
	
257
	protected void soumettreFormulaire(Rafraichissable vueARafraichir) {
253
	protected void soumettreFormulaire() {
258
		// Vérification de la validité des champs du formulaire
254
		// Vérification de la validité des champs du formulaire
259
		if (verifierFormulaire()) {
255
		if (verifierFormulaire()) {
260
			// Collecte des données du formulaire
256
			// Collecte des données du formulaire
261
			Collection collection = collecterCollection();
257
			Collection collection = collecterCollection();
262
			
258
			
263
			if (mode.equals(MODE_AJOUTER)) {
259
			if (mode.equals(MODE_AJOUTER)) {
264
				mediateur.ajouterCollection(vueARafraichir, collection);
260
				mediateur.ajouterCollection(this, collection);
265
			} else if (mode.equals(MODE_MODIFIER)) {
261
			} else if (mode.equals(MODE_MODIFIER)) {
266
				if (collection == null) {
262
				if (collection == null) {
267
					Info.display("Modification d'une collection", "Rien n'a été enregistré car le formulaire n'a pas été modifié.");
263
					Info.display("Modification d'une collection", "Rien n'a été enregistré car le formulaire n'a pas été modifié.");
268
				} else {
264
				} else {
269
					mediateur.modifierCollection(vueARafraichir, collection);
265
					mediateur.modifierCollection(this, collection);
270
				}
266
				}
271
			}
267
			}
272
		}
268
		}
273
	}
269
	}
274
	
270
	
275
	protected void reinitialiserFormulaire() {
271
	protected void reinitialiserFormulaire() {
276
		if (mode.equals(StructureForm.MODE_MODIFIER)) {
272
		if (mode.equals(StructureForm.MODE_MODIFIER)) {
277
			mediateur.afficherFormCollection(collection.getId());
273
			mediateur.afficherFormCollection(collection.getId());
278
		} else {
274
		} else {
279
			mediateur.afficherFormCollection(null);
275
			mediateur.afficherFormCollection(null);
280
		}
276
		}
281
	}
277
	}
282
	
278
	
283
	private Collection collecterCollection() {
279
	private Collection collecterCollection() {
284
		collectionCollectee = (Collection) collection.cloner(new Collection());
280
		collectionCollectee = (Collection) collection.cloner(new Collection());
285
		
281
		
286
		collecterOngletGeneral();
282
		collecterOngletGeneral();
287
		
283
		
288
		Collection collectionARetourner = null;
284
		Collection collectionARetourner = null;
289
		if (!collectionCollectee.comparer(collection)) {
285
		if (!collectionCollectee.comparer(collection)) {
290
			collectionARetourner = collection = collectionCollectee;
286
			collectionARetourner = collection = collectionCollectee;
291
		}
287
		}
292
		return collectionARetourner;
288
		return collectionARetourner;
293
	}
289
	}
294
	
290
	
295
	private void collecterOngletGeneral() {
291
	private void collecterOngletGeneral() {
296
		if (generalOnglet.getData("acces").equals(true)) {
292
		if (generalOnglet.getData("acces").equals(true)) {
297
			
293
			
298
		}
294
		}
299
	}
295
	}
300
	
296
	
301
	private Boolean verifierFormulaire() {
297
	private Boolean verifierFormulaire() {
302
		return true;
298
		return true;
303
	}
299
	}
304
}
300
}