Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 980 Rev 981
Line 2... Line 2...
2
 
2
 
3
import java.util.ArrayList;
3
import java.util.ArrayList;
4
import java.util.Iterator;
4
import java.util.Iterator;
Line -... Line 5...
-
 
5
import java.util.List;
5
import java.util.List;
6
 
6
 
7
import org.tela_botanica.client.ComposantClass;
7
import org.tela_botanica.client.Mediateur;
8
import org.tela_botanica.client.Mediateur;
8
import org.tela_botanica.client.RegistreId;
9
import org.tela_botanica.client.RegistreId;
9
import org.tela_botanica.client.images.Images;
10
import org.tela_botanica.client.images.Images;
Line 1215... Line 1216...
1215
		column = new ColumnConfig("prenom", "Prénom", 100);  
1216
		column = new ColumnConfig("prenom", "Prénom", 100);  
1216
		TextField<String> prenomChp = new TextField<String>();  
1217
		TextField<String> prenomChp = new TextField<String>();  
1217
		prenomChp.setAllowBlank(false);
1218
		prenomChp.setAllowBlank(false);
1218
		prenomChp.getMessages().setBlankText("Ce champ est obligatoire.");
1219
		prenomChp.getMessages().setBlankText("Ce champ est obligatoire.");
1219
		prenomChp.setAutoValidate(true);
1220
		prenomChp.setAutoValidate(true);
-
 
1221
		prenomChp.addStyleName(ComposantClass.OBLIGATOIRE);
1220
		prenomChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
1222
		prenomChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
1221
		column.setEditor(new CellEditor(prenomChp));
1223
		column.setEditor(new CellEditor(prenomChp));
1222
		configs.add(column);  
1224
		configs.add(column);  
Line 1223... Line 1225...
1223
		
1225
		
1224
		column = new ColumnConfig("nom", "Nom", 100);
1226
		column = new ColumnConfig("nom", "Nom", 100);
1225
		TextField<String> nomChp = new TextField<String>();  
1227
		TextField<String> nomChp = new TextField<String>();  
1226
		nomChp.setAllowBlank(false);
1228
		nomChp.setAllowBlank(false);
1227
		nomChp.getMessages().setBlankText("Ce champ est obligatoire.");
1229
		nomChp.getMessages().setBlankText("Ce champ est obligatoire.");
-
 
1230
		nomChp.setAutoValidate(true);
1228
		nomChp.setAutoValidate(true);
1231
		nomChp.addStyleName(ComposantClass.OBLIGATOIRE);
1229
		nomChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
1232
		nomChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
1230
		column.setEditor(new CellEditor(nomChp));
1233
		column.setEditor(new CellEditor(nomChp));
Line 1231... Line 1234...
1231
		configs.add(column);  
1234
		configs.add(column);  
Line 1438... Line 1441...
1438
		nomStructureChp = new TextField<String>();
1441
		nomStructureChp = new TextField<String>();
1439
		nomStructureChp.setTabIndex(tabIndex++);
1442
		nomStructureChp.setTabIndex(tabIndex++);
1440
		nomStructureChp.setFieldLabel("Nom de la structure");
1443
		nomStructureChp.setFieldLabel("Nom de la structure");
1441
		nomStructureChp.setAllowBlank(false);
1444
		nomStructureChp.setAllowBlank(false);
1442
		nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
1445
		nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
-
 
1446
		nomStructureChp.addStyleName(ComposantClass.OBLIGATOIRE);
1443
		nomStructureChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
1447
		nomStructureChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
1444
		fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
1448
		fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
Line 1445... Line 1449...
1445
		
1449
		
Line 1452... Line 1456...
1452
		projetsCombo.setLabelSeparator("");
1456
		projetsCombo.setLabelSeparator("");
1453
		projetsCombo.setDisplayField("nom");
1457
		projetsCombo.setDisplayField("nom");
1454
		projetsCombo.setEditable(false);
1458
		projetsCombo.setEditable(false);
1455
		projetsCombo.setTriggerAction(TriggerAction.ALL);
1459
		projetsCombo.setTriggerAction(TriggerAction.ALL);
1456
		projetsCombo.setStore(projetsMagazin);
1460
		projetsCombo.setStore(projetsMagazin);
-
 
1461
		projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE);
1457
		projetsCombo.addListener(Events.Valid, creerEcouteurChampObligatoire());
1462
		projetsCombo.addListener(Events.Valid, creerEcouteurChampObligatoire());
1458
		fieldSetIdentite.add(projetsCombo, new FormData(450, 0));
1463
		fieldSetIdentite.add(projetsCombo, new FormData(450, 0));
Line 1459... Line 1464...
1459
		
1464
		
1460
		// Création du sous-formulaire : Acronyme
1465
		// Création du sous-formulaire : Acronyme