1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
CLabel eventsLabel = factory.createCLabel(body, "Events:");
gridData = new GridData(GridData.FILL_BOTH);
gridData.horizontalSpan = 4;
gridData.grabExcessHorizontalSpace = true;
eventsLabel.setLayoutData(gridData);
eventsTbl = factory.createTable(body, SWT.SINGLE | SWT.CHECK);
gridData = new GridData(GridData.FILL_BOTH);
gridData.horizontalSpan = 40;
gridData.verticalSpan = 5;
eventsTbl.setLayoutData(gridData);
createBtn = factory.createButton(body, "Create", SWT.PUSH);
createBtn.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END
| GridData.VERTICAL_ALIGN_BEGINNING));
deleteBtn = factory.createButton(body, "Delete", SWT.PUSH);
deleteBtn.setEnabled(false);
deleteBtn.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END
| GridData.VERTICAL_ALIGN_BEGINNING)); |