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 :");
...
} |
Partager