1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
| storeId = new SimpleStore(new String[]{"idCandidat","nom","prenom"}, candidats);
storeId.load();
storeEtatDossier = new SimpleStore(new String[]{"libelle"}, etatDossier);
storeEtatDossier.load();
storeExperience = new SimpleStore(new String[]{"libelle"}, experience);
storeExperience.load();
storeProfil = new SimpleStore(new String[]{"libelle"}, profil);
storeProfil.load();
storeTechnologie = new SimpleStore(new String[]{"libelle"}, technologie);
storeTechnologie.load();
storeFormation = new SimpleStore(new String[]{"libelle"}, formation);
storeFormation.load();
storeSourcing = new SimpleStore(new String[]{"libelle"}, sourcing);
storeSourcing.load();
final ComboBox cbNom = new ComboBox();
cbNom.setMinChars(1);
cbNom.setFieldLabel("Nom");
cbNom.setStore(storeId);
cbNom.setDisplayField("nom");
cbNom.setMode(ComboBox.LOCAL);
cbNom.setEmptyText("Entrer un nom");
cbNom.setLoadingText("Searching...");
cbNom.setTypeAhead(true);
cbNom.setSelectOnFocus(true);
cbNom.setWidth(120);
cbNom.setHideTrigger(true);
final ComboBox cbPrenom = new ComboBox();
cbPrenom.setMinChars(1);
cbPrenom.setFieldLabel("Prénom");
cbPrenom.setStore(storeId);
cbPrenom.setDisplayField("prenom");
cbPrenom.setMode(ComboBox.LOCAL);
cbPrenom.setEmptyText("Entrer un prenom");
cbPrenom.setLoadingText("Searching...");
cbPrenom.setTypeAhead(true);
cbPrenom.setSelectOnFocus(true);
cbPrenom.setWidth(120);
cbPrenom.setHideTrigger(true);
final ComboBox cbEtatDossier = new ComboBox();
cbEtatDossier.setForceSelection(true);
cbEtatDossier.setMinChars(1);
cbEtatDossier.setFieldLabel("Etat du dossier");
cbEtatDossier.setStore(storeEtatDossier);
cbEtatDossier.setDisplayField("libelle");
cbEtatDossier.setMode(ComboBox.LOCAL);
cbEtatDossier.setTriggerAction(ComboBox.ALL);
cbEtatDossier.setEmptyText("Entrer un etat");
cbEtatDossier.setLoadingText("Searching...");
cbEtatDossier.setTypeAhead(true);
cbEtatDossier.setSelectOnFocus(true);
cbEtatDossier.setWidth(160);
cbEtatDossier.setHideTrigger(false);
final ComboBox cbExperience = new ComboBox();
cbExperience.setForceSelection(true);
cbExperience.setMinChars(1);
cbExperience.setFieldLabel("Experience");
cbExperience.setStore(storeExperience);
cbExperience.setDisplayField("libelle");
cbExperience.setMode(ComboBox.LOCAL);
cbExperience.setTriggerAction(ComboBox.ALL);
cbExperience.setEmptyText("Entrer une experience");
cbExperience.setLoadingText("Searching...");
cbExperience.setTypeAhead(true);
cbExperience.setSelectOnFocus(true);
cbExperience.setWidth(120);
cbExperience.setHideTrigger(false);
final ComboBox cbProfil = new ComboBox();
cbProfil.setForceSelection(true);
cbProfil.setMinChars(1);
cbProfil.setFieldLabel("Profil");
cbProfil.setStore(storeProfil);
cbProfil.setDisplayField("libelle");
cbProfil.setMode(ComboBox.LOCAL);
cbProfil.setTriggerAction(ComboBox.ALL);
cbProfil.setEmptyText("Entrer un profil");
cbProfil.setLoadingText("Searching...");
cbProfil.setTypeAhead(true);
cbProfil.setSelectOnFocus(true);
cbProfil.setWidth(120);
cbProfil.setHideTrigger(false);
final ComboBox cbSourcing = new ComboBox();
cbSourcing.setForceSelection(true);
cbSourcing.setMinChars(1);
cbSourcing.setFieldLabel("Sourcing");
cbSourcing.setStore(storeSourcing);
cbSourcing.setDisplayField("libelle");
cbSourcing.setMode(ComboBox.LOCAL);
cbSourcing.setTriggerAction(ComboBox.ALL);
cbSourcing.setEmptyText("Entrer une source");
cbSourcing.setLoadingText("Searching...");
cbSourcing.setTypeAhead(true);
cbSourcing.setSelectOnFocus(true);
cbSourcing.setWidth(120);
cbSourcing.setHideTrigger(false);
final ComboBox cbTechnologie = new ComboBox();
cbTechnologie.setForceSelection(true);
cbTechnologie.setMinChars(1);
cbTechnologie.setFieldLabel("Technologie");
cbTechnologie.setStore(storeTechnologie);
cbTechnologie.setDisplayField("libelle");
cbTechnologie.setMode(ComboBox.LOCAL);
cbTechnologie.setTriggerAction(ComboBox.ALL);
cbTechnologie.setEmptyText("Entrer une technologie");
cbTechnologie.setLoadingText("Searching...");
cbTechnologie.setTypeAhead(true);
cbTechnologie.setSelectOnFocus(true);
cbTechnologie.setWidth(120);
cbTechnologie.setHideTrigger(false);
final ComboBox cbFormation = new ComboBox();
cbEtatDossier.setForceSelection(true);
cbEtatDossier.setMinChars(1);
cbEtatDossier.setFieldLabel("Formation");
cbEtatDossier.setStore(storeFormation);
cbEtatDossier.setDisplayField("libelle");
cbEtatDossier.setMode(ComboBox.LOCAL);
cbEtatDossier.setTriggerAction(ComboBox.ALL);
cbEtatDossier.setEmptyText("Entrer une formation");
cbEtatDossier.setLoadingText("Searching...");
cbEtatDossier.setTypeAhead(true);
cbEtatDossier.setSelectOnFocus(true);
cbEtatDossier.setWidth(120);
cbEtatDossier.setHideTrigger(false);
this.add(cbNom);
this.add(cbPrenom);
this.add(cbEtatDossier);
this.add(cbExperience);
this.add(cbProfil);
this.add(cbSourcing);
this.add(cbTechnologie);
this.add(cbFormation); |
Partager