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
| //*** Composite raccrochement ***
compositeRaccrochement = new Composite(parent, SWT.NONE);
GridLayout layoutRaccrochement = new GridLayout(4, false);
layoutRaccrochement.marginWidth = 0;
layoutRaccrochement.marginHeight = 0;
layoutRaccrochement.horizontalSpacing = 0;
GridData gridDataRaccrochement = new GridData();
gridDataRaccrochement.heightHint = HAUTEUR_PIXEL_BOUTONS;
compositeRaccrochement.setData(gridDataRaccrochement);
compositeRaccrochement.setLayout(layoutRaccrochement);
compositeRaccrochement.setBackground(couleurFondBandeau);
//Satisfaction
compositeSatisfaction = new Composite(compositeRaccrochement, SWT.NONE);
GridData gridDataSatisfaction = new GridData();
gridDataSatisfaction.heightHint = HAUTEUR_PIXEL_BOUTONS;
compositeSatisfaction.setData(gridDataSatisfaction);
compositeSatisfaction.setLayout(new GridLayout(1, false));
compositeSatisfaction.setBackground(couleurFondTexte);
compositeSatisfaction.addPaintListener(new PaintListener() {
public void paintControl(PaintEvent event) { onPaintRaccSatisfaction(event); }
});
Label labelSatisfaction = new Label(compositeSatisfaction, SWT.NONE);
labelSatisfaction.setImage(new Image(parent.getDisplay(), "C:\\Documents and Settings\\PB19596\\Bureau\\ImageBandeauCom\\mecontent.gif"));
labelSatisfaction.setBackground(couleurFondTexte);
//Nom adhérent
compositeAdherent = new Composite(compositeRaccrochement, SWT.NONE);
GridData gridDataAdherent = new GridData(); //TODO : fonctionne pas
gridDataAdherent.heightHint = HAUTEUR_PIXEL_BOUTONS;
compositeAdherent.setData(gridDataAdherent);
compositeAdherent.setLayout(new GridLayout(1, false));
compositeAdherent.setBackground(couleurFondTexte);
compositeAdherent.addPaintListener(new PaintListener() {
public void paintControl(PaintEvent event) { onPaintRaccAdherent(event); }
});
Label labelNomAdherent = new Label(compositeAdherent, SWT.NONE);
labelNomAdherent.setText("DURAND Jacques");
labelNomAdherent.setBackground(couleurFondTexte);
//MUNA
compositeMuna = new Composite(compositeRaccrochement, SWT.NONE);
GridData gridDataMuna = new GridData();
gridDataMuna.heightHint = HAUTEUR_PIXEL_BOUTONS;
compositeMuna.setData(gridDataMuna);
compositeMuna.setLayout(new GridLayout(1, false));
compositeMuna.setBackground(couleurFondTexte);
compositeMuna.addPaintListener(new PaintListener() {
public void paintControl(PaintEvent event) { onPaintRaccMuna(event); }
});
Label labelMuna = new Label(compositeMuna, SWT.NONE);
labelMuna.setText("012234567.33");
labelMuna.setBackground(couleurFondTexte);
//Numéro de téléphone
compositeTel = new Composite(compositeRaccrochement, SWT.NONE);
GridData gridDataNumTel = new GridData();
gridDataNumTel.heightHint = HAUTEUR_PIXEL_BOUTONS;
compositeTel.setData(gridDataNumTel);
compositeTel.setLayout(new GridLayout(1, false));
compositeTel.setBackground(couleurFondTexte);
compositeTel.addPaintListener(new PaintListener() {
public void paintControl(PaintEvent event) { onPaintRaccTel(event); }
});
Label labelNumTel = new Label(compositeTel, SWT.NONE);
labelNumTel.setText("04.11.20.22.33");
labelNumTel.setBackground(couleurFondTexte); |
Partager