216,6 → 216,8 |
FormLayout formLayout = new FormLayout(); |
formLayout.setLabelAlign(LabelAlign.LEFT); |
|
//+------------------------------------------------------------------------------------------------------------+ |
// Fieldset PROJET |
FieldSet fsProjet = new FieldSet(); |
fsProjet.setHeading(i18nC.menuProjet()); |
fsProjet.setLayout(new FormLayout()); |
232,7 → 234,7 |
cbProjets.setAllowBlank(false); |
cbProjets.addStyleName(ComposantClass.OBLIGATOIRE); |
cbProjets.addListener(Events.Valid, creerEcouteurChampObligatoire()); |
fsProjet.add(cbProjets); |
fsProjet.add(cbProjets, new FormData(450, 0)); |
|
hmIdentite.put("cbProjets", cbProjets); |
|
239,7 → 241,9 |
mediateur.selectionnerProjet(this, null); |
|
left.add(fsProjet); |
|
|
//+------------------------------------------------------------------------------------------------------------+ |
// Fieldset NOM |
FieldSet fsNoms = new FieldSet(); |
fsNoms.setHeading("Noms"); |
fsNoms.setLayout(formLayout); |
270,7 → 274,7 |
tfPrenom.setFieldLabel("Prénom"); |
tfPrenom.setName("prenom"); |
|
fsNoms.add(tfPrenom); |
fsNoms.add(tfPrenom, new FormData(300, 0)); |
hmIdentite.put("tfPrenom", tfPrenom); |
|
//Nom |
281,7 → 285,7 |
tfNom.addStyleName(ComposantClass.OBLIGATOIRE); |
tfNom.addListener(Events.Valid, creerEcouteurChampObligatoire()); |
|
fsNoms.add(tfNom); |
fsNoms.add(tfNom, new FormData(300, 0)); |
hmIdentite.put("tfNom", tfNom); |
|
//Suffixe |
318,6 → 322,8 |
|
left.add(fsNoms); |
|
//+------------------------------------------------------------------------------------------------------------+ |
// Fieldset NAISSANCE ET DÉCÈS |
FieldSet fsNaissanceEtDeces = new FieldSet(); |
fsNaissanceEtDeces.setHeading("Naissance et Décès"); |
fsNaissanceEtDeces.setLayout(new ColumnLayout()); |
407,23 → 413,21 |
|
fsNaissanceEtDeces.add(containerDeces, new ColumnData(.5)); |
tiIdentite.add(main); |
|
|
//+------------------------------------------------------------------------------------------------------------+ |
// Fieldset CONTACT |
FieldSet fsContact = new FieldSet(); |
fsContact.setHeading("Contact"); |
fsContact.setLayout(new RowLayout()); |
|
LayoutContainer containerTelEtEmail = new LayoutContainer(new ColumnLayout()); |
|
ChampMultiValeursMultiTypes telephones = new ChampMultiValeursMultiTypes("Téléphones", 180, 100); |
telephones.initialiserType("tel"); |
fsContact.add(telephones, new FormData(450, 0)); |
hmIdentite.put("telephones", telephones); |
telephones.initialiserType("tel"); |
containerTelEtEmail.add(telephones, new ColumnData(.5)); |
|
ChampMultiValeurs courriels = new ChampMultiValeurs("Courriels", 280); |
courriels.setValidation(Pattern.email, "moi@domaine.fr"); |
containerTelEtEmail.add(courriels, new ColumnData(.5)); |
fsContact.add(containerTelEtEmail); |
right.add(fsContact); |
fsContact.add(courriels, new FormData(450, 0)); |
hmIdentite.put("courriels", courriels); |
|
LayoutContainer lcCourrielContainer = new LayoutContainer(new RowLayout()); |
437,7 → 441,11 |
sites.setValidation(Pattern.url, "http://www.monsite.com"); |
fsContact.add(sites); |
hmIdentite.put("sites", sites); |
|
|
right.add(fsContact); |
|
//+------------------------------------------------------------------------------------------------------------+ |
// Fieldset AUTRES INFOS |
FieldSet fsAutresInfos = new FieldSet(); |
fsAutresInfos.setHeading("Autres informations"); |
|
449,8 → 457,7 |
formLayout = new FormLayout(); |
formLayout.setLabelAlign(LabelAlign.TOP); |
LayoutContainer lcAutreInformations1 = new LayoutContainer(formLayout); |
|
//Civilité |
|
ListStore<Valeur> storeSexe = new ListStore<Valeur>(); |
ComboBox<Valeur> cbSexe = new ComboBox<Valeur>(); |
cbSexe.setStore(storeSexe); |
472,7 → 479,7 |
taDescription.setWidth("100%"); |
taDescription.setName("description"); |
|
lcAutreInformations1.add(taDescription, fd100); |
lcAutreInformations1.add(taDescription, new FormData(500, 200)); |
hmIdentite.put("taDescription", taDescription); |
|
fsAutresInfos.add(lcAutreInformations1); |
497,7 → 504,8 |
fsAutresInfos.add(lcAutreInformations2); |
|
right.add(fsAutresInfos); |
|
|
//+------------------------------------------------------------------------------------------------------------+ |
// Ajout des évènements saisi |
KeyListener klNoms = new KeyListener() { |
public void componentKeyUp(ComponentEvent ev) { |
626,7 → 634,7 |
taBiographie.setFieldLabel("Vie et renommée de l'auteur"); |
taBiographie.setWidth("400"); |
taBiographie.setName("biographie"); |
fsInfosNat.add(taBiographie); |
fsInfosNat.add(taBiographie, new FormData(800, 200)); |
|
ChampMultiValeurs specialite = new ChampMultiValeurs(i18nC.personneSpecialite()); |
fsInfosNat.add(specialite); |