| Line 55... |
Line 55... |
| 55 |
import com.extjs.gxt.ui.client.event.KeyListener;
|
55 |
import com.extjs.gxt.ui.client.event.KeyListener;
|
| 56 |
import com.extjs.gxt.ui.client.event.Listener;
|
56 |
import com.extjs.gxt.ui.client.event.Listener;
|
| 57 |
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
|
57 |
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
|
| 58 |
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
|
58 |
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
|
| 59 |
import com.extjs.gxt.ui.client.event.SelectionListener;
|
59 |
import com.extjs.gxt.ui.client.event.SelectionListener;
|
| - |
|
60 |
import com.extjs.gxt.ui.client.event.WidgetListener;
|
| 60 |
import com.extjs.gxt.ui.client.store.ListStore;
|
61 |
import com.extjs.gxt.ui.client.store.ListStore;
|
| 61 |
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
62 |
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
| 62 |
import com.extjs.gxt.ui.client.widget.MessageBox;
|
63 |
import com.extjs.gxt.ui.client.widget.MessageBox;
|
| Line 63... |
Line 64... |
| 63 |
|
64 |
|
| Line 429... |
Line 430... |
| 429 |
|
430 |
|
| 430 |
//+------------------------------------------------------------------------------------------------------------+
|
431 |
//+------------------------------------------------------------------------------------------------------------+
|
| 431 |
// Fieldset CONTACT
|
432 |
// Fieldset CONTACT
|
| 432 |
FieldSet fsContact = new FieldSet();
|
433 |
FieldSet fsContact = new FieldSet();
|
| - |
|
434 |
fsContact.setHeadingHtml("Contact");
|
| 433 |
fsContact.setHeadingHtml("Contact");
|
435 |
fsContact.setWidth("95%");
|
| Line 434... |
Line 436... |
| 434 |
fsContact.setLayout(new RowLayout());
|
436 |
fsContact.setLayout(new RowLayout());
|
| 435 |
|
437 |
|
| 436 |
ChampMultiValeursMultiTypes telephones = new ChampMultiValeursMultiTypes("Téléphones", 180, 100);
|
438 |
ChampMultiValeursMultiTypes telephones = new ChampMultiValeursMultiTypes("Téléphones", 180, 100);
|
| Line 448... |
Line 450... |
| 448 |
hmIdentite.put("lcCourrielContainer", lcCourrielContainer);
|
450 |
hmIdentite.put("lcCourrielContainer", lcCourrielContainer);
|
| Line 449... |
Line 451... |
| 449 |
|
451 |
|
| Line 450... |
Line 452... |
| 450 |
fsContact.add(new Text(""));
|
452 |
fsContact.add(new Text(""));
|
| - |
|
453 |
|
| 451 |
|
454 |
ChampMultiValeurs sites = new ChampMultiValeurs("Sites web");
|
| 452 |
ChampMultiValeurs sites = new ChampMultiValeurs("Sites web");
|
455 |
sites.setWidth("95%");
|
| 453 |
sites.setValeurParDefaut("http://");
|
456 |
sites.setValeurParDefaut("http://");
|
| 454 |
sites.setValidation(Pattern.url, "http://www.monsite.com");
|
457 |
sites.setValidation(Pattern.url, "http://www.monsite.com");
|
| Line 459... |
Line 462... |
| 459 |
|
462 |
|
| 460 |
//+------------------------------------------------------------------------------------------------------------+
|
463 |
//+------------------------------------------------------------------------------------------------------------+
|
| 461 |
// Fieldset AUTRES INFOS
|
464 |
// Fieldset AUTRES INFOS
|
| 462 |
FieldSet fsAutresInfos = new FieldSet();
|
465 |
FieldSet fsAutresInfos = new FieldSet();
|
| - |
|
466 |
fsAutresInfos.setHeadingHtml("Autres informations");
|
| Line 463... |
Line 467... |
| 463 |
fsAutresInfos.setHeadingHtml("Autres informations");
|
467 |
fsAutresInfos.setWidth("95%");
|
| 464 |
|
468 |
|
| 465 |
formLayout = new FormLayout();
|
469 |
formLayout = new FormLayout();
|
| Line 486... |
Line 490... |
| 486 |
hmIdentite.put("cbSexe", cbSexe);
|
490 |
hmIdentite.put("cbSexe", cbSexe);
|
| Line 487... |
Line 491... |
| 487 |
|
491 |
|
| Line 488... |
Line 492... |
| 488 |
mediateur.obtenirListeValeurEtRafraichir(this, "sexe", sequenceur);
|
492 |
mediateur.obtenirListeValeurEtRafraichir(this, "sexe", sequenceur);
|
| 489 |
|
493 |
|
| 490 |
//Description
|
494 |
//Description
|
| 491 |
TextArea taDescription = new TextArea();
|
495 |
final TextArea taDescription = new TextArea();
|
| 492 |
taDescription.setEmptyText("Saisissez une description");
|
- |
|
| 493 |
taDescription.setFieldLabel("Description");
|
496 |
taDescription.setEmptyText("Saisissez une description");
|
| Line 494... |
Line 497... |
| 494 |
taDescription.setWidth("100%");
|
497 |
taDescription.setFieldLabel("Description");
|
| 495 |
taDescription.setName("description");
|
498 |
taDescription.setName("description");
|
| Line 496... |
Line 499... |
| 496 |
|
499 |
|
| 497 |
lcAutreInformations1.add(taDescription, new FormData(500, 200));
|
500 |
lcAutreInformations1.add(taDescription, new FormData(300, 200));
|
| 498 |
hmIdentite.put("taDescription", taDescription);
|
501 |
hmIdentite.put("taDescription", taDescription);
|
| 499 |
|
502 |
|
| 500 |
fsAutresInfos.add(lcAutreInformations1);
|
503 |
fsAutresInfos.add(lcAutreInformations1);
|
| Line 501... |
Line 504... |
| 501 |
|
504 |
|
| 502 |
// Logo
|
505 |
// Logo
|
| 503 |
LayoutContainer lcLogoUrl = new LayoutContainer();
|
506 |
LayoutContainer lcLogoUrl = new LayoutContainer();
|
| 504 |
hmIdentite.put("lcLogoUrl", lcLogoUrl);
|
507 |
hmIdentite.put("lcLogoUrl", lcLogoUrl);
|
| 505 |
|
508 |
|
| - |
|
509 |
final ChampMultiValeursImage logo = new ChampMultiValeursImage(i18nC.personneLogos());
|
| 506 |
ChampMultiValeursImage logo = new ChampMultiValeursImage(i18nC.personneLogos());
|
510 |
logo.setImageHeight("150px");
|
| Line 507... |
Line 511... |
| 507 |
logo.setImageHeight("150px");
|
511 |
logo.setValeurParDefaut("http://");
|
| Line 508... |
Line 512... |
| 508 |
logo.setValeurParDefaut("http://");
|
512 |
logo.setValidation(Pattern.url, "http://www.monsite.com/mon_image.jpg");
|