_shelf = new PShelf(parent, SWT.NONE);
// Optionally, change the renderer
// shelf.setRenderer(new RedmondShelfRenderer());
PShelfItem professorsShelf = new PShelfItem(_shelf, SWT.NONE);
professorsShelf.setText("Преподователи");
professorsShelf.getBody().setLayout(getGridLayout());
// Create the first Group
Group semesterGroup = new Group(professorsShelf.getBody(),
SWT.SHADOW_IN);
semesterGroup.setText("Семестр");
semesterGroup.setLayout(new RowLayout(SWT.VERTICAL));
semesterGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
_fallBtn = new Button(semesterGroup, SWT.RADIO);
_fallBtn.setText("Осень");
_fallBtn.setSelection(true);
_springBtn = new Button(semesterGroup, SWT.RADIO);
_springBtn.setText("Весна");
String matchesPercentages[] = { "50", "75", "100" };
Group matchesPercentagesGroup = new Group(professorsShelf.getBody(),
SWT.SHADOW_IN);
matchesPercentagesGroup.setText("Процент совпадения");
matchesPercentagesGroup.setLayout(new GridLayout());
matchesPercentagesGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
_matchesPercentagesCombo = new Combo(matchesPercentagesGroup,
SWT.DROP_DOWN | SWT.READ_ONLY);
_matchesPercentagesCombo.setItems(matchesPercentages);
_matchesPercentagesCombo.select(2);
_matchesPercentagesCombo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
_findProfessorsBtn = new Button(professorsShelf.getBody(),
SWT.FLAT);
_findProfessorsBtn.setText("Поиск преподователей");
_findProfessorsBtn.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
//==============================================================
PShelfItem scheduleSheld = new PShelfItem(_shelf, SWT.NONE);
scheduleSheld.setText("Расписание");
scheduleSheld.getBody().setLayout(getGridLayout());
Group fromDateGroup = new Group(scheduleSheld.getBody(),
SWT.SHADOW_IN);
fromDateGroup.setText("Дата начала");
fromDateGroup.setLayout(new GridLayout());
fromDateGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
_fromCdt = new CDateTime(fromDateGroup, CDT.BORDER | CDT.DROP_DOWN);
_fromCdt.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
Group toDateGroup = new Group(scheduleSheld.getBody(),
SWT.SHADOW_IN);
toDateGroup.setText("Дата окончания");
toDateGroup.setLayout(new GridLayout());
toDateGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
_toCdt = new CDateTime(toDateGroup, CDT.BORDER | CDT.DROP_DOWN);
_toCdt.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
_generateScheduleBtn = new Button(scheduleSheld.getBody(), SWT.FLAT);
_generateScheduleBtn.setText("Сформировать расписание");
_generateScheduleBtn.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
_generateScheduleBtn.setEnabled(false);
listeners();