Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 935 Rev 980
Line 1214... Line 1214...
1214
		
1214
		
1215
		column = new ColumnConfig("prenom", "Prénom", 100);  
1215
		column = new ColumnConfig("prenom", "Prénom", 100);  
1216
		TextField<String> prenomChp = new TextField<String>();  
1216
		TextField<String> prenomChp = new TextField<String>();  
1217
		prenomChp.setAllowBlank(false);
1217
		prenomChp.setAllowBlank(false);
1218
		prenomChp.getMessages().setBlankText("Ce champ est obligatoire.");
1218
		prenomChp.getMessages().setBlankText("Ce champ est obligatoire.");
-
 
1219
		prenomChp.setAutoValidate(true);
1219
		prenomChp.setAutoValidate(true);  
1220
		prenomChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
1220
		column.setEditor(new CellEditor(prenomChp));
1221
		column.setEditor(new CellEditor(prenomChp));
Line 1221... Line 1222...
1221
		configs.add(column);  
1222
		configs.add(column);  
1222
		
1223
		
1223
		column = new ColumnConfig("nom", "Nom", 100);
1224
		column = new ColumnConfig("nom", "Nom", 100);
1224
		TextField<String> nomChp = new TextField<String>();  
1225
		TextField<String> nomChp = new TextField<String>();  
1225
		nomChp.setAllowBlank(false);
1226
		nomChp.setAllowBlank(false);
-
 
1227
		nomChp.getMessages().setBlankText("Ce champ est obligatoire.");
1226
		nomChp.getMessages().setBlankText("Ce champ est obligatoire.");
1228
		nomChp.setAutoValidate(true);
1227
		nomChp.setAutoValidate(true);  
1229
		nomChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
Line 1228... Line 1230...
1228
		column.setEditor(new CellEditor(nomChp));
1230
		column.setEditor(new CellEditor(nomChp));
1229
		configs.add(column);  
1231
		configs.add(column);  
Line 1436... Line 1438...
1436
		nomStructureChp = new TextField<String>();
1438
		nomStructureChp = new TextField<String>();
1437
		nomStructureChp.setTabIndex(tabIndex++);
1439
		nomStructureChp.setTabIndex(tabIndex++);
1438
		nomStructureChp.setFieldLabel("Nom de la structure");
1440
		nomStructureChp.setFieldLabel("Nom de la structure");
1439
		nomStructureChp.setAllowBlank(false);
1441
		nomStructureChp.setAllowBlank(false);
1440
		nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
1442
		nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
-
 
1443
		nomStructureChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
1441
		fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
1444
		fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
Line 1442... Line 1445...
1442
		
1445
		
1443
		
1446
		
Line 1449... Line 1452...
1449
		projetsCombo.setLabelSeparator("");
1452
		projetsCombo.setLabelSeparator("");
1450
		projetsCombo.setDisplayField("nom");
1453
		projetsCombo.setDisplayField("nom");
1451
		projetsCombo.setEditable(false);
1454
		projetsCombo.setEditable(false);
1452
		projetsCombo.setTriggerAction(TriggerAction.ALL);
1455
		projetsCombo.setTriggerAction(TriggerAction.ALL);
1453
		projetsCombo.setStore(projetsMagazin);
1456
		projetsCombo.setStore(projetsMagazin);
-
 
1457
		projetsCombo.addListener(Events.Valid, creerEcouteurChampObligatoire());
1454
		fieldSetIdentite.add(projetsCombo, new FormData(450, 0));
1458
		fieldSetIdentite.add(projetsCombo, new FormData(450, 0));
Line 1455... Line 1459...
1455
		
1459
		
1456
		// Création du sous-formulaire : Acronyme
1460
		// Création du sous-formulaire : Acronyme
1457
		LayoutContainer ligne = new LayoutContainer();  
1461
		LayoutContainer ligne = new LayoutContainer();