IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage Java Discussion :

intégration d'un résultat dans une application.


Sujet :

Langage Java

  1. #21
    Membre régulier Avatar de kifouillou
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    270
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 270
    Points : 84
    Points
    84
    Par défaut
    Ouai j'ai un peu mieux compris. Mais moi je stocke pas dans un array list en fait :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
     
    // lecture 1ere ligne
     
    	String str = in.readLine();
    	String[] column = str.split("\t");
     
    // lecture 2nde ligne
                Map<String,String> map = new HashMap<String,String>();
            str = in.readLine();
    String values[] = str.split("\t");
    		for(int i=0;i<values.length;i++)  {
    if (i>=column.length) break;  // plus de données que de colonne -> exit 
    			map.put(column[i],values[i]);
    			System.out.println(column[i]+"="+values[i]);
     
     
     
    		}
     
    		in.close();
    		return map;
    	}

  2. #22
    Membre éclairé
    Avatar de sironimo
    Profil pro
    Inscrit en
    Mai 2004
    Messages
    669
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations forums :
    Inscription : Mai 2004
    Messages : 669
    Points : 756
    Points
    756
    Par défaut
    Ok tu utilises une HashMap. Maintenant à la fin de ta boucle, tu as rempli ta Map avec une correspondance champ<-->valeur. Il ne te reste plus qu'à faire au niveau de ton initialisation :

    1. récupération de ta Map.
    2. savoir à quelle entrée de la Map correspond tel champ, si tu es bien organisé, tu peux dire JLabel 1 avec entrée n°1, JLabel 2 avec entrée n°2 ou même ceci: je veux remplir le JLbale du nom donc je regarde dans ma Map l'entrée où il y a nom comme champ.
    3. Une fois l'entrée identifiée, il te suffit de récupérer la valeur correspondant à ton champ et de faire :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    monJLabelNom.settext(valeurRecupereDeLaHashMap);
    Ca te convient mieux?
    "Le calendrier, c'est la bureaucratie du temps." Quino

  3. #23
    Membre régulier Avatar de kifouillou
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    270
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 270
    Points : 84
    Points
    84
    Par défaut
    Salut,

    J'ai à peu près compris.

    Voilà ce que j'ai fais. Mais il met une erreur du type null pointer exception.
    J'ai mis ce code dans une méthode run de la classe application qui génère tout ce qui doit se lancer au démarrage.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
     
    Map<String,String> map = getFileContentAsMap(f);
     
    	             String nom = map.get("contact");      
    	 	String societe = map.get("RS");
    	             String date = map.get("date");
    	             String duree = map.get("durée");
    	             String categorie = map.get("catégorie");
    	             String heure = map.get("heure");
    	             String fonction = map.get("fonction");
    	             String adresse = map.get("adresse");
    	             String ville = map.get("ville");
     
    	             CR.getCatégorie().setText(categorie);
    	             CR.getAdresse().setText(adresse);
    	             CR.getDate().setText(date);
    	             CR.getFonction().setText(fonction);
    	             CR.getVille().setText(ville);
    	             CR.getHeure().setText(heure);
    	             CR.getDurée().setText(duree);
    	             CR.getRS().setText(societe);
    	             CR.getContact().setText(nom);

    edit : petite précision : CR c'est un objet de ma classe ou j'ai tous mes labels. Comme sa je peux récupérer mes labels.
    Je l'ai déclaré comme cela :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    public CR_promotelec CR;
    CR =  new CR_promotelec();
    Merci encore.

  4. #24
    Membre régulier Avatar de kifouillou
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    270
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 270
    Points : 84
    Points
    84
    Par défaut
    Re,

    à priori c'est un problème de pointeur vers une valeur nulle. Vous savez comment résoudre cela?
    Car c'est quand je mets mon .setText(valeur_du_get_map) que sa me génère l'erreur.
    Si vous-avez une petite idée. Moi qui croyait avoir bien compris l'objet c'est raté.

  5. #25
    Membre expert
    Avatar de moritan
    Homme Profil pro
    Développeur Java
    Inscrit en
    Juin 2005
    Messages
    687
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : France, Manche (Basse Normandie)

    Informations professionnelles :
    Activité : Développeur Java

    Informations forums :
    Inscription : Juin 2005
    Messages : 687
    Points : 3 135
    Points
    3 135
    Par défaut
    Citation Envoyé par kifouillou
    Re,

    à priori c'est un problème de pointeur vers une valeur nulle. Vous savez comment résoudre cela?
    Car c'est quand je mets mon .setText(valeur_du_get_map) que sa me génère l'erreur.
    Si vous-avez une petite idée. Moi qui croyait avoir bien compris l'objet c'est raté.
    es-tu sur que ton JLabel est bien initialisé avec un new ?
    car dans les code précédent j'ai vu des
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    private Label label = null;
    et ça donne des nullpointerexception...

  6. #26
    Membre régulier Avatar de kifouillou
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    270
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 270
    Points : 84
    Points
    84
    Par défaut
    oui j'ai bien mis un new.

    j'ai bien fais :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    label MonLabel = new label()
    puis je viens d'enlever le = null donc maintenant sa donne :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    private label MonLabel
    Mais ça me met toujours la même erreur.

  7. #27
    Membre éclairé
    Avatar de sironimo
    Profil pro
    Inscrit en
    Mai 2004
    Messages
    669
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations forums :
    Inscription : Mai 2004
    Messages : 669
    Points : 756
    Points
    756
    Par défaut
    Euh JLabel on est bien d'accord pas Label?
    "Le calendrier, c'est la bureaucratie du temps." Quino

  8. #28
    Membre expert
    Avatar de moritan
    Homme Profil pro
    Développeur Java
    Inscrit en
    Juin 2005
    Messages
    687
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : France, Manche (Basse Normandie)

    Informations professionnelles :
    Activité : Développeur Java

    Informations forums :
    Inscription : Juin 2005
    Messages : 687
    Points : 3 135
    Points
    3 135
    Par défaut
    Citation Envoyé par kifouillou
    oui j'ai bien mis un new.

    j'ai bien fais :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    label MonLabel = new label()
    puis je viens d'enlever le = null donc maintenant sa donne :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    private label MonLabel
    Mais ça me met toujours la même erreur.
    C'était pas le seul du code j'en ai pris un au hasard, après à toi de voir si l'élément que tu manipules est bien instancié.

  9. #29
    Membre régulier Avatar de kifouillou
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    270
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 270
    Points : 84
    Points
    84
    Par défaut
    Euh nan nan ce n'est pas un Jlabel. C'est un label. C'est des composants SWT.

    Ben j'ai vérifié tous mes labels et je pense qu'ils sont corrects.

    Mais si je fais monObjet.getText la sa marche par contre dès que je rajoute le setText sa bug. C'est bizarre sa quand même. Non?

  10. #30
    Membre régulier Avatar de kifouillou
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    270
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 270
    Points : 84
    Points
    84
    Par défaut
    bonjour à tous,

    je sais que mettre tout le code d'une page c'est pas génial mais peut-être y verrai vous plus clair car moi je comprend pas ce qui ne vas pas. Pour résumer, cette classe permet de rechercher le fichier le plus récent d'un répertoire donné, de l'ouvrir, d'afficher le contenu dans la console et normalement de remplir les labels de mon application avec les valeurs du fichier texte. Voilà. En espérant que cela puisse vous éclaircir pour m'aider.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
     
    package com.promotelec.exemple;
     
    import org.eclipse.core.runtime.IPlatformRunnable;
    import org.eclipse.swt.widgets.Display;
    import org.eclipse.ui.PlatformUI;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileReader;
    import java.io.FilenameFilter;
    import java.io.IOException;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.Properties;
     
     
    /**
     * This class controls all aspects of the application's execution
     */
    public class Application implements IPlatformRunnable {
     
    	/* (non-Javadoc)
    	 * @see org.eclipse.core.runtime.IPlatformRunnable#run(java.lang.Object)
    	 */
     
    	private File getMostRecentFile(String directoryPath) {
    		File directory = new File(directoryPath);
    		File moreRecentFile = null;
     
    		// verification des parametres
    		if(!directory.exists()){
    			System.out.println("Le fichier/répertoire '"+directoryPath+"' n'existe pas");
    			return null;
    		}
    		if(!directory.isDirectory()){
    			System.out.println("Le chemin '"+directoryPath+"' correspond à un fichier et non à un répertoire");
    			return null;
    		}
     
    		// liste des fichiers "*.txt"
    		File[] files = directory.listFiles(
    			new FilenameFilter() {
    				public boolean accept(File dir, String name) {
    					return name.toLowerCase().endsWith(".txt");
    				}
    			}
    		);
     
    		// cas alternatif: pas de fichiers "*.txt"
    		if (files.length==0) {
    			System.out.println("Pas de fichier texte");
    			return null;
    		}
     
    		// cas general: parcours et memorise le plus recent fichier
    		moreRecentFile=files[0];
    		for(File f:files) {
    			if (f.lastModified()>moreRecentFile.lastModified()) 
    				moreRecentFile = f;
    		}
     
    		System.out.println("Le fichier le plus récent du répertoire "+directoryPath +" est "+moreRecentFile.getName());
    		return moreRecentFile;
    	}
     
    	private Map<String,String> getFileContentAsMap(File file) throws IOException {
    		// verification des parametres
    		if (file==null) return null;
     
    		// flux de lecture du fichier
    		BufferedReader in = new BufferedReader(new FileReader(file));
     
    		// lecture 1ere ligne
     
    		String str = in.readLine();
    		String[] column = str.split("\t");
     
    		// lecture 2nde ligne
    		Map<String,String> map = new HashMap<String,String>();
    		str = in.readLine();
    		String values[] = str.split("\t");
    		for(int i=0;i<values.length;i++)  {
    			if (i>=column.length) break;  // plus de données que de colonne -> exit 
    			map.put(column[i],values[i]);
    			System.out.println(column[i]+"="+values[i]);
     
     
     
    		}
     
    		in.close();
    		return map;
    	}
     
    	public CR_promotelec CR; //instanciation d'un objet de la classe CR_promotelec dans laquelle je décrit mes labels
    	//public MyView VF;
     
     
    	public Object run(Object args) throws Exception {
    		Display display = PlatformUI.createDisplay();
    		CR =  new CR_promotelec();
    		//VF = new  MyView();
     
     
    		Properties prop = new Properties();
    		try {
     
     
     
    			prop.load(new FileInputStream("C:\\Temp\\promo_act.properties"));
     
     
    	        String repertoire = prop.getProperty("repertoireEchange");	
     
    	        System.out.println(repertoire);
     
    	             } catch (Exception e) {
    	        System.out.println("Erreur Exception" + e);
    	    }
    	             Application finder = new Application();
    	             File f = finder.getMostRecentFile("C:\\Temp");
    	             Map<String,String> map = getFileContentAsMap(f);
     
    	             String nom = map.get("contact");      // nom d'une colonne tel que dans la 1ere ligne du fichier
    	 			 String societe = map.get("RS");
    	             String date = map.get("date");
    	             String duree = map.get("durée");
    	             String categorie = map.get("catégorie");
    	             String heure = map.get("heure");
    	             String fonction = map.get("fonction");
    	             String adresse = map.get("adresse");
    	             String ville = map.get("ville");
     
     
     
     
    		if (map!=null) {
     
    			System.out.println(nom + " travaille dans la societe " + societe + " dans la ville de" + ville);
    			CR.getCatégorie().setText(categorie);
                CR.getAdresse().setText(adresse);
                CR.getDate().setText(date);
                CR.getFonction().setText(fonction);
                CR.getVille().setText(ville);
                CR.getHeure().setText(heure);
                CR.getDurée().setText(duree);
                CR.getRS().setText(societe);
                CR.getContact().setText(nom);
     
    		try {
    			int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
    			if (returnCode == PlatformUI.RETURN_RESTART) {
    				return IPlatformRunnable.EXIT_RESTART;
     
    			}
    			return IPlatformRunnable.EXIT_OK;
    		} finally {
    			display.dispose();
    		}
    	}
    		return args;
     
     
     
    	}
     
    }
    Merci d'avance.

  11. #31
    Membre régulier Avatar de kifouillou
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    270
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 270
    Points : 84
    Points
    84
    Par défaut
    excusez moi d'insister mais vous ne savez vraiment pas comment résoudre mon problème?

  12. #32
    Membre régulier
    Homme Profil pro
    Inscrit en
    Octobre 2006
    Messages
    124
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 124
    Points : 120
    Points
    120
    Par défaut
    Je pense que comme beaucoup d'autres qui ont essayés de t'aider, tu nous as tous perdu

    Enfin je vais faire une nouvelle tentative.

    Si j'ai bien compris le code que tu as donné.

    Lorsque tu lance ton application (methode run(Object args))
    1. tu recherches le fichier le plus récent
    2. tu charges les données de ce fichier dans une Map<String, String>

    Et c'est à partir de là que ca coince. Tu veux valoriser tes label à partir des données qui sont dans ta map ?
    Ce que tu essaies de faire à partir de ce code :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    if (map!=null) {
        System.out.println(nom + " travaille dans la societe " + societe + " dans la ville de" + ville);
        CR.getCatégorie().setText(categorie);
        CR.getAdresse().setText(adresse);
        CR.getDate().setText(date);
        CR.getFonction().setText(fonction);
        CR.getVille().setText(ville);
        CR.getHeure().setText(heure);
        CR.getDurée().setText(duree);
        CR.getRS().setText(societe);
        CR.getContact().setText(nom);
        // ....
    }
    Première question, as tu vérifié que tes String (categorie, adresse, ...) sont correctement valorisées ?
    Si oui, le problème vient de la façon dont tu affectes tes String aux label. N'ayant pas le code de ta classe CR_promotelec, je vais simplement faire des suposition.
    Je ne comprend pas bien la nécessité de faire appel aux getter de ta classe CR avant d'affecter tes Sting à tes label.
    Tu devrais peut-être revoir ta classe CR_promotelec pour pouvoir faire directement l'affectation :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    if (map!=null) {
        System.out.println(nom + " travaille dans la societe " + societe + " dans la ville de" + ville);
        CR.setText(categorie);
        CR.setText(adresse);
        CR.setText(date);
        CR.setText(fonction);
        CR.setText(ville);
        CR.setText(heure);
        CR.setText(duree);
        CR.setText(societe);
        CR.setText(nom);
        // ....
    }

  13. #33
    Membre régulier Avatar de kifouillou
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    270
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 270
    Points : 84
    Points
    84
    Par défaut
    salut,

    Merci pour ta réponse. J'ai essayé de faire un test avec
    mais étant donné que CR est l'objet instancié de la classe je peux pas lui associer juste la méthode SetText. C'est à un label que l'on peut peut mettre cette méthode c'est pourquoi je mettais un getLabel avant le SetText.

    Si je mets juste
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    System.out.println(CR.getCatégorie());
    sa me met null dans la console

    Sinon voici la classe CR_promotelec :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
     
    package com.promotelec.exemple;
     
    import org.eclipse.swt.widgets.Button;
    import org.eclipse.swt.widgets.Combo;
    import org.eclipse.swt.widgets.Group;
    import org.eclipse.swt.widgets.Label;
    import org.eclipse.swt.widgets.Text;
     
    public class CR_promotelec {
     
     
     
    	private Group group = null;
    	private Label label = null;
    	private Label label1 = null;
    	private Label label2 = null;
    	private Label label3 = null;
    	private Label RS = null;
    	private Label contact = null;
    	private Label fonction = null;
    	private Label adresse = null;
    	private Group group1 = null;
    	private Label label8 = null;
    	private Label label9 = null;
    	private Label label10 = null;
    	private Label durée = null;
    	private Label date = null;
    	private Label heure = null;
    	private Group group2 = null;
    	private Text text = null;
    	private Text text1 = null;
    	private Text text2 = null;
    	private Group group3 = null;
    	private Label label14 = null;
    	private Button checkBox = null;
    	private Label label15 = null;
    	private Button checkBox1 = null;
    	private Label label16 = null;
    	private Button checkBox2 = null;
    	private Label label17 = null;
    	private Label label18 = null;
    	private Button checkBox3 = null;
    	private Label label19 = null;
    	private Label label20 = null;
    	private Button checkBox4 = null;
    	private Label label21 = null;
    	private Button checkBox5 = null;
    	private Label label22 = null;
    	private Label label23 = null;
    	private Button checkBox6 = null;
    	private Label label24 = null;
    	private Button checkBox7 = null;
    	private Label label25 = null;
    	private Button checkBox8 = null;
    	private Label label26 = null;
    	private Label label27 = null;
    	private Button checkBox9 = null;
        private Label label28 = null;
    	private Label label29 = null;
    	private Button checkBox10 = null;
    	private Label label30 = null;
    	private Label label31 = null;
    	private Button checkBox11 = null;
    	private Label label32 = null;
    	private Label label33 = null;
    	private Button checkBox12 = null;
    	private Label label34 = null;
    	private Label label35 = null;
    	private Label label36 = null;
    	private Button checkBox13 = null;
    	private Label label37 = null;
    	private Button checkBox14 = null;
    	private Label label38 = null;
    	private Label label39 = null;
    	private Label label40 = null;
    	private Button checkBox15 = null;
    	private Button checkBox16 = null;
    	private Label label41 = null;
    	private Button checkBox17 = null;
    	private Label label42 = null;
    	private Label label43 = null;
    	private Button checkBox18 = null;
    	private Label label44 = null;
    	private Button checkBox19 = null;
    	private Label label45 = null;
    	private Label label46 = null;
    	private Text text3 = null;
    	private Label label47 = null;
    	private Text text4 = null;
    	private Text text5 = null;
    	private Text text6 = null;
    	private Text text7 = null;
    	private Text text8 = null;
    	private Text text9 = null;
    	private Group group4 = null;
    	private Label label48 = null;
    	private Text text10 = null;
    	private Label label49 = null;
    	private Text text11 = null;
    	private Label label50 = null;
    	private Label label51 = null;
    	private Label label52 = null;
    	private Text textArea = null;
    	private Label label53 = null;
    	private Button checkBox20 = null;
    	private Label label54 = null;
    	private Button checkBox21 = null;
    	private Label label55 = null;
    	private Button checkBox22 = null;
    	private Label label56 = null;
    	private Button checkBox23 = null;
    	private Label label57 = null;
    	private Button checkBox24 = null;
    	private Label label58 = null;
    	private Group group5 = null;
    	private Label label59 = null;
    	private Label label60 = null;
    	private Text textArea1 = null;
    	private Text textArea2 = null;
    	private Group group6 = null;
    	private Text textArea3 = null;
    	private Group group7 = null;
    	private Label label61 = null;
    	private Label label62 = null;
    	private Label label63 = null;
    	private Combo combo1 = null;
    	private Combo combo2 = null;
    	private Text text12 = null;
    	private Text text13 = null;
    	private Text text14 = null;
    	private Text text15 = null;
    	private Combo combo = null;
    	private Combo combo3 = null;
    	private Combo combo4 = null;
    	private Combo combo5 = null;
    	private Combo combo6 = null;
    	private Combo combo7 = null;
    	private Label label4 = null;
    	private Label ville = null;
    	private Label label5 = null;
    	private Label label7 = null;
    	private Label label11 = null;
    	private Text text16 = null;
    	private Label label6 = null;
    	private Label label12 = null;
    	private Label label13 = null;
    	private Label Catégorie = null;
     
    	public CR_promotelec(){
     
    	}
     
    	public Label getAdresse() {
    		return adresse;
    	}
    	public void setAdresse(Label adresse) {
    		this.adresse = adresse;
    	}
    	public Label getCatégorie() {
    		return Catégorie;
    	}
    	public void setCatégorie(Label catégorie) {
    		Catégorie = catégorie;
    	}
    	public Button getCheckBox() {
    		return checkBox;
    	}
    	public void setCheckBox(Button checkBox) {
    		this.checkBox = checkBox;
    	}
    	public Button getCheckBox1() {
    		return checkBox1;
    	}
    	public void setCheckBox1(Button checkBox1) {
    		this.checkBox1 = checkBox1;
    	}
    	public Button getCheckBox10() {
    		return checkBox10;
    	}
    	public void setCheckBox10(Button checkBox10) {
    		this.checkBox10 = checkBox10;
    	}
    	public Button getCheckBox11() {
    		return checkBox11;
    	}
    	public void setCheckBox11(Button checkBox11) {
    		this.checkBox11 = checkBox11;
    	}
    	public Button getCheckBox12() {
    		return checkBox12;
    	}
    	public void setCheckBox12(Button checkBox12) {
    		this.checkBox12 = checkBox12;
    	}
    	public Button getCheckBox13() {
    		return checkBox13;
    	}
    	public void setCheckBox13(Button checkBox13) {
    		this.checkBox13 = checkBox13;
    	}
    	public Button getCheckBox14() {
    		return checkBox14;
    	}
    	public void setCheckBox14(Button checkBox14) {
    		this.checkBox14 = checkBox14;
    	}
    	public Button getCheckBox15() {
    		return checkBox15;
    	}
    	public void setCheckBox15(Button checkBox15) {
    		this.checkBox15 = checkBox15;
    	}
    	public Button getCheckBox16() {
    		return checkBox16;
    	}
    	public void setCheckBox16(Button checkBox16) {
    		this.checkBox16 = checkBox16;
    	}
    	public Button getCheckBox17() {
    		return checkBox17;
    	}
    	public void setCheckBox17(Button checkBox17) {
    		this.checkBox17 = checkBox17;
    	}
    	public Button getCheckBox18() {
    		return checkBox18;
    	}
    	public void setCheckBox18(Button checkBox18) {
    		this.checkBox18 = checkBox18;
    	}
    	public Button getCheckBox19() {
    		return checkBox19;
    	}
    	public void setCheckBox19(Button checkBox19) {
    		this.checkBox19 = checkBox19;
    	}
    	public Button getCheckBox2() {
    		return checkBox2;
    	}
    	public void setCheckBox2(Button checkBox2) {
    		this.checkBox2 = checkBox2;
    	}
    	public Button getCheckBox20() {
    		return checkBox20;
    	}
    	public void setCheckBox20(Button checkBox20) {
    		this.checkBox20 = checkBox20;
    	}
    	public Button getCheckBox21() {
    		return checkBox21;
    	}
    	public void setCheckBox21(Button checkBox21) {
    		this.checkBox21 = checkBox21;
    	}
    	public Button getCheckBox22() {
    		return checkBox22;
    	}
    	public void setCheckBox22(Button checkBox22) {
    		this.checkBox22 = checkBox22;
    	}
    	public Button getCheckBox23() {
    		return checkBox23;
    	}
    	public void setCheckBox23(Button checkBox23) {
    		this.checkBox23 = checkBox23;
    	}
    	public Button getCheckBox24() {
    		return checkBox24;
    	}
    	public void setCheckBox24(Button checkBox24) {
    		this.checkBox24 = checkBox24;
    	}
    	public Button getCheckBox3() {
    		return checkBox3;
    	}
    	public void setCheckBox3(Button checkBox3) {
    		this.checkBox3 = checkBox3;
    	}
    	public Button getCheckBox4() {
    		return checkBox4;
    	}
    	public void setCheckBox4(Button checkBox4) {
    		this.checkBox4 = checkBox4;
    	}
    	public Button getCheckBox5() {
    		return checkBox5;
    	}
    	public void setCheckBox5(Button checkBox5) {
    		this.checkBox5 = checkBox5;
    	}
    	public Button getCheckBox6() {
    		return checkBox6;
    	}
    	public void setCheckBox6(Button checkBox6) {
    		this.checkBox6 = checkBox6;
    	}
    	public Button getCheckBox7() {
    		return checkBox7;
    	}
    	public void setCheckBox7(Button checkBox7) {
    		this.checkBox7 = checkBox7;
    	}
    	public Button getCheckBox8() {
    		return checkBox8;
    	}
    	public void setCheckBox8(Button checkBox8) {
    		this.checkBox8 = checkBox8;
    	}
    	public Button getCheckBox9() {
    		return checkBox9;
    	}
    	public void setCheckBox9(Button checkBox9) {
    		this.checkBox9 = checkBox9;
    	}
    	public Combo getCombo() {
    		return combo;
    	}
    	public void setCombo(Combo combo) {
    		this.combo = combo;
    	}
    	public Combo getCombo1() {
    		return combo1;
    	}
    	public void setCombo1(Combo combo1) {
    		this.combo1 = combo1;
    	}
    	public Combo getCombo2() {
    		return combo2;
    	}
    	public void setCombo2(Combo combo2) {
    		this.combo2 = combo2;
    	}
    	public Combo getCombo3() {
    		return combo3;
    	}
    	public void setCombo3(Combo combo3) {
    		this.combo3 = combo3;
    	}
    	public Combo getCombo4() {
    		return combo4;
    	}
    	public void setCombo4(Combo combo4) {
    		this.combo4 = combo4;
    	}
    	public Combo getCombo5() {
    		return combo5;
    	}
    	public void setCombo5(Combo combo5) {
    		this.combo5 = combo5;
    	}
    	public Combo getCombo6() {
    		return combo6;
    	}
    	public void setCombo6(Combo combo6) {
    		this.combo6 = combo6;
    	}
    	public Combo getCombo7() {
    		return combo7;
    	}
    	public void setCombo7(Combo combo7) {
    		this.combo7 = combo7;
    	}
    	public Label getContact() {
    		return contact;
    	}
    	public void setContact(Label contact) {
    		this.contact = contact;
    	}
    	public Label getDate() {
    		return date;
    	}
    	public void setDate(Label date) {
    		this.date = date;
    	}
    	public Label getDurée() {
    		return durée;
    	}
    	public void setDurée(Label durée) {
    		this.durée = durée;
    	}
    	public Label getFonction() {
    		return fonction;
    	}
    	public void setFonction(Label fonction) {
    		this.fonction = fonction;
    	}
    	public Group getGroup() {
    		return group;
    	}
    	public void setGroup(Group group) {
    		this.group = group;
    	}
    	public Group getGroup1() {
    		return group1;
    	}
    	public void setGroup1(Group group1) {
    		this.group1 = group1;
    	}
    	public Group getGroup2() {
    		return group2;
    	}
    	public void setGroup2(Group group2) {
    		this.group2 = group2;
    	}
    	public Group getGroup3() {
    		return group3;
    	}
    	public void setGroup3(Group group3) {
    		this.group3 = group3;
    	}
    	public Group getGroup4() {
    		return group4;
    	}
    	public void setGroup4(Group group4) {
    		this.group4 = group4;
    	}
    	public Group getGroup5() {
    		return group5;
    	}
    	public void setGroup5(Group group5) {
    		this.group5 = group5;
    	}
    	public Group getGroup6() {
    		return group6;
    	}
    	public void setGroup6(Group group6) {
    		this.group6 = group6;
    	}
    	public Group getGroup7() {
    		return group7;
    	}
    	public void setGroup7(Group group7) {
    		this.group7 = group7;
    	}
    	public Label getHeure() {
    		return heure;
    	}
    	public void setHeure(Label heure) {
    		this.heure = heure;
    	}
    	public Label getLabel() {
    		return label;
    	}
    	public void setLabel(Label label) {
    		this.label = label;
    	}
    	public Label getLabel1() {
    		return label1;
    	}
    	public void setLabel1(Label label1) {
    		this.label1 = label1;
    	}
    	public Label getLabel10() {
    		return label10;
    	}
    	public void setLabel10(Label label10) {
    		this.label10 = label10;
    	}
    	public Label getLabel11() {
    		return label11;
    	}
    	public void setLabel11(Label label11) {
    		this.label11 = label11;
    	}
    	public Label getLabel12() {
    		return label12;
    	}
    	public void setLabel12(Label label12) {
    		this.label12 = label12;
    	}
    	public Label getLabel13() {
    		return label13;
    	}
    	public void setLabel13(Label label13) {
    		this.label13 = label13;
    	}
    	public Label getLabel14() {
    		return label14;
    	}
    	public void setLabel14(Label label14) {
    		this.label14 = label14;
    	}
    	public Label getLabel15() {
    		return label15;
    	}
    	public void setLabel15(Label label15) {
    		this.label15 = label15;
    	}
    	public Label getLabel16() {
    		return label16;
    	}
    	public void setLabel16(Label label16) {
    		this.label16 = label16;
    	}
    	public Label getLabel17() {
    		return label17;
    	}
    	public void setLabel17(Label label17) {
    		this.label17 = label17;
    	}
    	public Label getLabel18() {
    		return label18;
    	}
    	public void setLabel18(Label label18) {
    		this.label18 = label18;
    	}
    	public Label getLabel19() {
    		return label19;
    	}
    	public void setLabel19(Label label19) {
    		this.label19 = label19;
    	}
    	public Label getLabel2() {
    		return label2;
    	}
    	public void setLabel2(Label label2) {
    		this.label2 = label2;
    	}
    	public Label getLabel20() {
    		return label20;
    	}
    	public void setLabel20(Label label20) {
    		this.label20 = label20;
    	}
    	public Label getLabel21() {
    		return label21;
    	}
    	public void setLabel21(Label label21) {
    		this.label21 = label21;
    	}
    	public Label getLabel22() {
    		return label22;
    	}
    	public void setLabel22(Label label22) {
    		this.label22 = label22;
    	}
    	public Label getLabel23() {
    		return label23;
    	}
    	public void setLabel23(Label label23) {
    		this.label23 = label23;
    	}
    	public Label getLabel24() {
    		return label24;
    	}
    	public void setLabel24(Label label24) {
    		this.label24 = label24;
    	}
    	public Label getLabel25() {
    		return label25;
    	}
    	public void setLabel25(Label label25) {
    		this.label25 = label25;
    	}
    	public Label getLabel26() {
    		return label26;
    	}
    	public void setLabel26(Label label26) {
    		this.label26 = label26;
    	}
    	public Label getLabel27() {
    		return label27;
    	}
    	public void setLabel27(Label label27) {
    		this.label27 = label27;
    	}
    	public Label getLabel28() {
    		return label28;
    	}
    	public void setLabel28(Label label28) {
    		this.label28 = label28;
    	}
    	public Label getLabel29() {
    		return label29;
    	}
    	public void setLabel29(Label label29) {
    		this.label29 = label29;
    	}
    	public Label getLabel3() {
    		return label3;
    	}
    	public void setLabel3(Label label3) {
    		this.label3 = label3;
    	}
    	public Label getLabel30() {
    		return label30;
    	}
    	public void setLabel30(Label label30) {
    		this.label30 = label30;
    	}
    	public Label getLabel31() {
    		return label31;
    	}
    	public void setLabel31(Label label31) {
    		this.label31 = label31;
    	}
    	public Label getLabel32() {
    		return label32;
    	}
    	public void setLabel32(Label label32) {
    		this.label32 = label32;
    	}
    	public Label getLabel33() {
    		return label33;
    	}
    	public void setLabel33(Label label33) {
    		this.label33 = label33;
    	}
    	public Label getLabel34() {
    		return label34;
    	}
    	public void setLabel34(Label label34) {
    		this.label34 = label34;
    	}
    	public Label getLabel35() {
    		return label35;
    	}
    	public void setLabel35(Label label35) {
    		this.label35 = label35;
    	}
    	public Label getLabel36() {
    		return label36;
    	}
    	public void setLabel36(Label label36) {
    		this.label36 = label36;
    	}
    	public Label getLabel37() {
    		return label37;
    	}
    	public void setLabel37(Label label37) {
    		this.label37 = label37;
    	}
    	public Label getLabel38() {
    		return label38;
    	}
    	public void setLabel38(Label label38) {
    		this.label38 = label38;
    	}
    	public Label getLabel39() {
    		return label39;
    	}
    	public void setLabel39(Label label39) {
    		this.label39 = label39;
    	}
    	public Label getLabel4() {
    		return label4;
    	}
    	public void setLabel4(Label label4) {
    		this.label4 = label4;
    	}
    	public Label getLabel40() {
    		return label40;
    	}
    	public void setLabel40(Label label40) {
    		this.label40 = label40;
    	}
    	public Label getLabel41() {
    		return label41;
    	}
    	public void setLabel41(Label label41) {
    		this.label41 = label41;
    	}
    	public Label getLabel42() {
    		return label42;
    	}
    	public void setLabel42(Label label42) {
    		this.label42 = label42;
    	}
    	public Label getLabel43() {
    		return label43;
    	}
    	public void setLabel43(Label label43) {
    		this.label43 = label43;
    	}
    	public Label getLabel44() {
    		return label44;
    	}
    	public void setLabel44(Label label44) {
    		this.label44 = label44;
    	}
    	public Label getLabel45() {
    		return label45;
    	}
    	public void setLabel45(Label label45) {
    		this.label45 = label45;
    	}
    	public Label getLabel46() {
    		return label46;
    	}
    	public void setLabel46(Label label46) {
    		this.label46 = label46;
    	}
    	public Label getLabel47() {
    		return label47;
    	}
    	public void setLabel47(Label label47) {
    		this.label47 = label47;
    	}
    	public Label getLabel48() {
    		return label48;
    	}
    	public void setLabel48(Label label48) {
    		this.label48 = label48;
    	}
    	public Label getLabel49() {
    		return label49;
    	}
    	public void setLabel49(Label label49) {
    		this.label49 = label49;
    	}
    	public Label getLabel5() {
    		return label5;
    	}
    	public void setLabel5(Label label5) {
    		this.label5 = label5;
    	}
    	public Label getLabel50() {
    		return label50;
    	}
    	public void setLabel50(Label label50) {
    		this.label50 = label50;
    	}
    	public Label getLabel51() {
    		return label51;
    	}
    	public void setLabel51(Label label51) {
    		this.label51 = label51;
    	}
    	public Label getLabel52() {
    		return label52;
    	}
    	public void setLabel52(Label label52) {
    		this.label52 = label52;
    	}
    	public Label getLabel53() {
    		return label53;
    	}
    	public void setLabel53(Label label53) {
    		this.label53 = label53;
    	}
    	public Label getLabel54() {
    		return label54;
    	}
    	public void setLabel54(Label label54) {
    		this.label54 = label54;
    	}
    	public Label getLabel55() {
    		return label55;
    	}
    	public void setLabel55(Label label55) {
    		this.label55 = label55;
    	}
    	public Label getLabel56() {
    		return label56;
    	}
    	public void setLabel56(Label label56) {
    		this.label56 = label56;
    	}
    	public Label getLabel57() {
    		return label57;
    	}
    	public void setLabel57(Label label57) {
    		this.label57 = label57;
    	}
    	public Label getLabel58() {
    		return label58;
    	}
    	public void setLabel58(Label label58) {
    		this.label58 = label58;
    	}
    	public Label getLabel59() {
    		return label59;
    	}
    	public void setLabel59(Label label59) {
    		this.label59 = label59;
    	}
    	public Label getLabel6() {
    		return label6;
    	}
    	public void setLabel6(Label label6) {
    		this.label6 = label6;
    	}
    	public Label getLabel60() {
    		return label60;
    	}
    	public void setLabel60(Label label60) {
    		this.label60 = label60;
    	}
    	public Label getLabel61() {
    		return label61;
    	}
    	public void setLabel61(Label label61) {
    		this.label61 = label61;
    	}
    	public Label getLabel62() {
    		return label62;
    	}
    	public void setLabel62(Label label62) {
    		this.label62 = label62;
    	}
    	public Label getLabel63() {
    		return label63;
    	}
    	public void setLabel63(Label label63) {
    		this.label63 = label63;
    	}
    	public Label getLabel7() {
    		return label7;
    	}
    	public void setLabel7(Label label7) {
    		this.label7 = label7;
    	}
    	public Label getLabel8() {
    		return label8;
    	}
    	public void setLabel8(Label label8) {
    		this.label8 = label8;
    	}
    	public Label getLabel9() {
    		return label9;
    	}
    	public void setLabel9(Label label9) {
    		this.label9 = label9;
    	}
    	public Label getRS() {
    		return RS;
    	}
    	public void setRS(Label rs) {
    		RS = rs;
    	}
    	public Text getText() {
    		return text;
    	}
    	public void setText(Text text) {
    		this.text = text;
    	}
    	public Text getText1() {
    		return text1;
    	}
    	public void setText1(Text text1) {
    		this.text1 = text1;
    	}
    	public Text getText10() {
    		return text10;
    	}
    	public void setText10(Text text10) {
    		this.text10 = text10;
    	}
    	public Text getText11() {
    		return text11;
    	}
    	public void setText11(Text text11) {
    		this.text11 = text11;
    	}
    	public Text getText12() {
    		return text12;
    	}
    	public void setText12(Text text12) {
    		this.text12 = text12;
    	}
    	public Text getText13() {
    		return text13;
    	}
    	public void setText13(Text text13) {
    		this.text13 = text13;
    	}
    	public Text getText14() {
    		return text14;
    	}
    	public void setText14(Text text14) {
    		this.text14 = text14;
    	}
    	public Text getText15() {
    		return text15;
    	}
    	public void setText15(Text text15) {
    		this.text15 = text15;
    	}
    	public Text getText16() {
    		return text16;
    	}
    	public void setText16(Text text16) {
    		this.text16 = text16;
    	}
    	public Text getText2() {
    		return text2;
    	}
    	public void setText2(Text text2) {
    		this.text2 = text2;
    	}
    	public Text getText3() {
    		return text3;
    	}
    	public void setText3(Text text3) {
    		this.text3 = text3;
    	}
    	public Text getText4() {
    		return text4;
    	}
    	public void setText4(Text text4) {
    		this.text4 = text4;
    	}
    	public Text getText5() {
    		return text5;
    	}
    	public void setText5(Text text5) {
    		this.text5 = text5;
    	}
    	public Text getText6() {
    		return text6;
    	}
    	public void setText6(Text text6) {
    		this.text6 = text6;
    	}
    	public Text getText7() {
    		return text7;
    	}
    	public void setText7(Text text7) {
    		this.text7 = text7;
    	}
    	public Text getText8() {
    		return text8;
    	}
    	public void setText8(Text text8) {
    		this.text8 = text8;
    	}
    	public Text getText9() {
    		return text9;
    	}
    	public void setText9(Text text9) {
    		this.text9 = text9;
    	}
    	public Text getTextArea() {
    		return textArea;
    	}
    	public void setTextArea(Text textArea) {
    		this.textArea = textArea;
    	}
    	public Text getTextArea1() {
    		return textArea1;
    	}
    	public void setTextArea1(Text textArea1) {
    		this.textArea1 = textArea1;
    	}
    	public Text getTextArea2() {
    		return textArea2;
    	}
    	public void setTextArea2(Text textArea2) {
    		this.textArea2 = textArea2;
    	}
    	public Text getTextArea3() {
    		return textArea3;
    	}
    	public void setTextArea3(Text textArea3) {
    		this.textArea3 = textArea3;
    	}
    	public Label getVille() {
    		return ville;
    	}
    	public void setVille(Label ville) {
    		this.ville = ville;
    	}
    Voilà. J'espère que vous etes de moins en moins perdu. En tout cas c'est sympa de m'accorder une nouvelle tentative.Merci encore

  14. #34
    Membre régulier
    Homme Profil pro
    Inscrit en
    Octobre 2006
    Messages
    124
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 124
    Points : 120
    Points
    120
    Par défaut
    Le résultat que tu as en éxécutant System.out.println(CR.getCatégorie()); est tout à fait logique !!!

    Ton Label Catégorie (au passage supprime les accents de ton code (nom d'attributs, de classes, de méthodes, ...) n'est pas instancié lors de l'instanciation de ton objet CR_promotelec !!!
    Tu dois enrichir ton constructeur pour instancier tous tes attributs. Ensuite la méthode setCatégorie(Label catégorie) devrait fonctionner, mais dans ton cas, tu dois écrire une seconde méthode setCatégorie(String catégorie) qui prendra en paramétre une String.

  15. #35
    Membre régulier Avatar de kifouillou
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    270
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 270
    Points : 84
    Points
    84
    Par défaut
    Re,

    Merci pour ta réponse.
    Peux-tu m'éclairer un peu plus. Je ne comprends pas vraiment comment enrichir le constructeur.

    Puis pour la deuxième chose non plus je comprends pas.

    Peux-tu m'en dire d'avantage et/ou me donner un exemple stp?

  16. #36
    Membre régulier
    Homme Profil pro
    Inscrit en
    Octobre 2006
    Messages
    124
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 124
    Points : 120
    Points
    120
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    public class CR_promotelec {
        //Attributs
        Label Catégorie = null;
        //...
     
        public CR_promotelec() {
            Catégorie = new Label();
        }
     
        public void setCatégorie(String catégorie) {
            Catégorie.setText(catégorie);
        }
     
        public void setCatégorie(Label catégorie) {
            Catégorie = catégorie;
        }
     
        //...
    }
    Ton Label Catégorie qui est un attribut de ta classe CR_promotelec doit être instancié lors de l'instanciation d'un objet de type CR_promotelec.

  17. #37
    Membre régulier Avatar de kifouillou
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    270
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 270
    Points : 84
    Points
    84
    Par défaut
    Tout d'abord merci pour ta réponse.
    Quand je mets :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    public CR_promotelec() {
            Catégorie = new Label();
        }
    il me demande de mettre des arguments entre parenthèse.
    Et si je mets cela sa fonctionne aussi ?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    public CR_promotelec() {
            super
    }
    Est-ce que je dois faire quelque chose d'autre?

  18. #38
    Membre régulier
    Homme Profil pro
    Inscrit en
    Octobre 2006
    Messages
    124
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 124
    Points : 120
    Points
    120
    Par défaut
    Je ne connais pas la classe Label que tu utilises donc pour les arguments à lui transmettre en paramètre lors de l'instanciation, je te laisse chercher...

  19. #39
    Membre régulier Avatar de kifouillou
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    270
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 270
    Points : 84
    Points
    84
    Par défaut
    ok.Merci beaucoup.

    Mais une fois ceci fait.
    Est-ce que cela devrait fonctionner ou dois-je rajouter quelque chose?

    edit : Sinon sa peut peut etre vous aider : j'ai une autre classe dont voici la description. Comme y a des new dedans je vais faire un test.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
     
    public class MyView extends ViewPart
    {
    	public static final String ID = "MyView";
     
    	private Canvas canvas;  //  @jve:decl-index=0:
     
    	private TabFolder tabFolder = null;  //  @jve:decl-index=0:
     
    	private TabItem onglet1 =null;
    	private TabItem onglet2 =null;
    	private TabItem onglet3 =null;  //  @jve:decl-index=0:
     
    	private Group group = null;
     
    	private Label label = null;
     
    	private Label label1 = null;
     
    	private Label label2 = null;
     
    	private Label label3 = null;
     
    	private Label RS ;
     
    	private Label contact ;
     
    	private Label fonction ;
     
    	private Label adresse ;
     
    	private Group group1 = null;
     
    	private Label label8 = null;
     
    	private Label label9 = null;
     
    	private Label label10 = null;
     
    	private Label durée ;
     
    	private Label date ;
     
    	private Label heure ;
     
    	private Group group2 = null;
     
    	private Text text = null;
     
    	private Text text1 = null;
     
    	private Text text2 = null;
     
    	private Button précédent = null;
     
    	private Button suivant = null;
     
    	private Button terminer = null;
     
    	private Button button3 = null;
     
    	private Composite composite = null;
     
    	private Group group3 = null;
     
    	private Label label14 = null;
     
    	private Button checkBox = null;
     
    	private Label label15 = null;
     
    	private Button checkBox1 = null;
     
    	private Label label16 = null;
     
    	private Button checkBox2 = null;
     
    	private Label label17 = null;
     
    	private Label label18 = null;
     
    	private Button checkBox3 = null;
     
    	private Label label19 = null;
     
    	private Label label20 = null;
     
    	private Button checkBox4 = null;
     
    	private Label label21 = null;
     
    	private Button checkBox5 = null;
     
    	private Label label22 = null;
     
    	private Label label23 = null;
     
    	private Button checkBox6 = null;
     
    	private Label label24 = null;
     
    	private Button checkBox7 = null;
     
    	private Label label25 = null;
     
    	private Button checkBox8 = null;
     
    	private Label label26 = null;
     
    	private Label label27 = null;
     
    	private Button checkBox9 = null;
     
    	private Label label28 = null;
     
    	private Label label29 = null;
     
    	private Button checkBox10 = null;
     
    	private Label label30 = null;
     
    	private Label label31 = null;
     
    	private Button checkBox11 = null;
     
    	private Label label32 = null;
     
    	private Label label33 = null;
     
    	private Button checkBox12 = null;
     
    	private Label label34 = null;
     
    	private Label label35 = null;
     
    	private Label label36 = null;
     
    	private Button checkBox13 = null;
     
    	private Label label37 = null;
     
    	private Button checkBox14 = null;
     
    	private Label label38 = null;
     
    	private Label label39 = null;
     
    	private Label label40 = null;
     
    	private Button checkBox15 = null;
     
    	private Button checkBox16 = null;
     
    	private Label label41 = null;
     
    	private Button checkBox17 = null;
     
    	private Label label42 = null;
     
    	private Label label43 = null;
     
    	private Button checkBox18 = null;
     
    	private Label label44 = null;
     
    	private Button checkBox19 = null;
     
    	private Label label45 = null;
     
    	private Label label46 = null;
     
    	private Text text3 = null;
     
    	private Label label47 = null;
     
    	private Text text4 = null;
     
    	private Text text5 = null;
     
    	private Text text6 = null;
     
    	private Text text7 = null;
     
    	private Text text8 = null;
     
    	private Text text9 = null;
     
    	private Group group4 = null;
     
    	private Label label48 = null;
     
    	private Text text10 = null;
     
    	private Label label49 = null;
     
    	private Text text11 = null;
     
    	private Label label50 = null;
     
    	private Label label51 = null;
     
    	private Label label52 = null;
     
    	private Text textArea = null;
     
    	private Label label53 = null;
     
    	private Button checkBox20 = null;
     
    	private Label label54 = null;
     
    	private Button checkBox21 = null;
     
    	private Label label55 = null;
     
    	private Button checkBox22 = null;
     
    	private Label label56 = null;
     
    	private Button checkBox23 = null;
     
    	private Label label57 = null;
     
    	private Button checkBox24 = null;
     
    	private Label label58 = null;
    	private Composite composite1 = null;
    	private Composite composite2 = null;  //  @jve:decl-index=0:
     
    	private Group group5 = null;
     
    	private Label label59 = null;
     
    	private Label label60 = null;
     
    	private Text textArea1 = null;
     
    	private Text textArea2 = null;
     
    	private Group group6 = null;
     
    	private Text textArea3 = null;
     
    	private Group group7 = null;
     
    	private Label label61 = null;
     
    	private Label label62 = null;
     
    	private Label label63 = null;
     
    	private Combo combo1 = null;
     
    	private Combo combo2 = null;
     
    	private Text text12 = null;
     
    	private Text text13 = null;
     
    	private Text text14 = null;
     
    	private Text text15 = null;
     
    	private Combo combo = null;
     
    	private Combo combo3 = null;
     
    	private Combo combo4 = null;
     
    	private Combo combo5 = null;
     
    	private Combo combo6 = null;
     
    	private Combo combo7 = null;
     
    	private Label label4 = null;
     
    	private Label ville ;
     
    	private Label label5 = null;
     
    	private Label label7 = null;
     
    	private Label label11 = null;
     
    	private Text text16 = null;
     
    	private Label label6 = null;
     
    	private Label label12 = null;
     
    	private Label label13 = null;
     
    	private Label Catégorie ;
     
    	public MyView() {
    		super();
     
    	}
     
     
    	public void createPartControl(Composite parent) 
    	{
     
     
    			canvas = new Canvas(parent, SWT.Paint);
    			canvas.setSize(520, 555);
    			{
    				tabFolder = new TabFolder(canvas, SWT.NONE);									
    				tabFolder.setLocation(new Point(1, 2));
    				tabFolder.setSize(new Point(520, 486));	
     
     
    				tabFolder.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
    					public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
    					//int i =	tabFolder.getSelectionIndex();
     
    						if (tabFolder.getSelectionIndex()== 2){
    							suivant.setEnabled(false);
    							précédent.setEnabled(true);
    							terminer.setEnabled(true);
    							}
    							else if (tabFolder.getSelectionIndex()== 1){
    								suivant.setEnabled(true);
    								précédent.setEnabled(true);
    								terminer.setEnabled(false);
    							    }												      
    							/*else if (tabFolder.getSelectionIndex()== 0){
    								suivant.setEnabled(true);
    								précédent.setEnabled(false);
    								terminer.setEnabled(false);
    								}*/
     
    						//System.out.print(i);
    					}});
    				composite = new Composite(tabFolder, SWT.NONE);				
    				composite1 = new Composite(tabFolder, SWT.NONE);
    				composite2 = new Composite(tabFolder, SWT.NONE);
    				onglet1 = new TabItem(tabFolder, SWT.NONE);
    				onglet1.setText("Informations client");
    				onglet1.setControl(composite);
     
     
     
     
     
     
     
    				onglet2 = new TabItem(tabFolder, SWT.NONE);
    				onglet2.setText("Produits et services utilisés");
    				onglet2.setControl(composite1);
     
     
     
     
    				onglet3 = new TabItem(tabFolder, SWT.NONE);
    				onglet3.setText("Synthèse");
    				onglet3.setControl(composite2);
     
     
     
     
     
     
     
     
    				group = new Group(composite, SWT.NONE);
    				group.setLayout(null);
    				group.setText("Interlocuteur");
    				group.setBounds(new Rectangle(2, 3, 488, 180));
     
    				label = new Label(group, SWT.LEFT);
    				label.setText("Catégorie / Cible :");
    				label.setBounds(new Rectangle(8, 22, 102, 18));
    				label1 = new Label(group, SWT.LEFT);
    				label1.setText("Raison Sociale :");
    				label1.setBounds(new Rectangle(8, 50, 103, 19));
    				label2 = new Label(group, SWT.LEFT);
    				label2.setText("Contact :");
    				label2.setBounds(new Rectangle(7, 79, 104, 18));
    				label3 = new Label(group, SWT.LEFT);
    				label3.setText("Fonction :");
    				label3.setBounds(new Rectangle(8, 109, 104, 18));
    				Catégorie = new Label(group, SWT.LEFT);			    
    				Catégorie.setBounds(new Rectangle(119, 22, 215, 18));
    				Catégorie.setText("Installateur");
    				RS = new Label(group, SWT.LEFT);
    				RS.setText("ALLIANCE ELECTRIQUE  BOUCLE DE SEINE");
    				RS.setBounds(new Rectangle(118, 52, 216, 16));
    				contact = new Label(group, SWT.LEFT);
    				contact.setText("Monsieur GEORGALA Georges");
    				contact.setBounds(new Rectangle(118, 80, 217, 17));
    				fonction = new Label(group, SWT.LEFT);
    				fonction.setText("Président");
    				fonction.setBounds(new Rectangle(118, 109, 218, 17));
    				label4 = new Label(group, SWT.NONE);
    				label4.setBounds(new Rectangle(8, 140, 105, 17));
    				label4.setText("Adresse :");
    				adresse = new Label(group, SWT.NONE);
    				adresse.setBounds(new Rectangle(118, 140, 218, 17));
    				adresse.setText("100 boulevard de Belon ");
    				ville = new Label(group, SWT.NONE);
    				ville.setBounds(new Rectangle(118, 155, 218, 17));
    				ville.setText("78500 SARTROUVILLE");
     
    				group1 = new Group(composite, SWT.NONE);
    				group1.setLayout(null);
    				group1.setText("Rendez-vous");
    				group1.setBounds(new Rectangle(1, 195, 489, 110));
     
    				label8 = new Label(group1, SWT.LEFT);
    				label8.setBounds(new Rectangle(9, 77, 91, 17));
    				label8.setText("Durée :");
    				label9 = new Label(group1, SWT.LEFT);
    				label9.setBounds(new Rectangle(8, 21, 91, 18));
    				label9.setText("Date :");
    				label10 = new Label(group1, SWT.LEFT);
    				label10.setBounds(new Rectangle(9, 48, 90, 17));
    				label10.setText("Heure :");
    				durée = new Label(group1, SWT.LEFT);
    				durée.setBounds(new Rectangle(123, 77, 219, 16));
    				durée.setText("2h");
    				date = new Label(group1, SWT.LEFT);
    				date.setBounds(new Rectangle(121, 21, 218, 18));
    				date.setText("27 janvier 2007");
    				heure = new Label(group1, SWT.LEFT);
    				heure.setBounds(new Rectangle(122, 48, 218, 16));
    				heure.setText("16h00"); 
     
     
    			group2 = new Group(composite, SWT.NONE);	
    			group2.setBounds(new Rectangle(2, 318, 488, 101));
    			group2.setLayout(null);
    			group2.setText("Rappel des objectifs");
     
    			text = new Text(group2, SWT.BORDER);
    			text.setBounds(new Rectangle(121, 14, 363, 20));
    			text.setText("Abonner Fil Pilote");
    			text1 = new Text(group2, SWT.BORDER);
    			text1.setBounds(new Rectangle(121, 43, 362, 19));
    			text1.setText("Promotion LHE");
    			text2 = new Text(group2, SWT.BORDER);
    			text2.setBounds(new Rectangle(121, 72, 362, 20));
    			label6 = new Label(group2, SWT.NONE);
    			label6.setBounds(new Rectangle(7, 17, 31, 17));
    			label6.setText("n° 1 :");
    			label12 = new Label(group2, SWT.NONE);
    			label12.setBounds(new Rectangle(7, 46, 32, 18));
    			label12.setText("n° 2 :");
    			label13 = new Label(group2, SWT.NONE);
    			label13.setBounds(new Rectangle(7, 74, 33, 18));
    			label13.setText("n° 3 :");
    ...
    }
    Est ce qu'elle vous semble correcte. Car c'est cette classe là que j'utlise à l'origine pour faire mon formulaire.Donc dans la classe CR_promotelec cité plus
    haut, j'ai juste recopié les private et les getter setter.
    Bon. Si on s'en tient juste à cette classe. Dois-je rajouter d'autres choses?

    Pseudocode ou sironomo vous n'auriez pas une petite idée par hasard?

  20. #40
    Membre régulier Avatar de kifouillou
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    270
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 270
    Points : 84
    Points
    84
    Par défaut
    Bonjour,

    j'ai cherché de mon coté mais hélas je n'avance toujours pas. N'auriez vous toujours pas d'idée sur mon problème que je crois sans solution?

    Encore merci d'avance

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 4 PremièrePremière 1234 DernièreDernière

Discussions similaires

  1. Réponses: 2
    Dernier message: 24/07/2014, 04h12
  2. Intégration d'un webmail dans une application Web J2EE
    Par javabreaker dans le forum Développement Web en Java
    Réponses: 6
    Dernier message: 21/06/2013, 15h09
  3. Intégration de développements web dans une application mobile
    Par mike35000 dans le forum Architecture
    Réponses: 2
    Dernier message: 15/05/2012, 20h46
  4. Réponses: 2
    Dernier message: 05/03/2012, 18h33
  5. Intègration du code Ruby dans une application web Java
    Par L'aigle de Carthage dans le forum Développement Web en Java
    Réponses: 0
    Dernier message: 04/06/2011, 00h28

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo