blob: 7a3f1f6e489c52bb931e36cbe9a002324d2abb8f (
plain) (
blame)
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
|
package org.openslx.dozmod.gui.wizard.page;
import org.apache.log4j.Logger;
import org.openslx.dozmod.gui.wizard.Wizard;
import org.openslx.dozmod.gui.wizard.layout.LectureOptionsPageLayout;
import org.openslx.dozmod.state.LectureWizardState;
@SuppressWarnings("serial")
public class LectureOptionsPage extends LectureOptionsPageLayout {
private final static Logger LOGGER = Logger.getLogger(LectureOptionsPage.class);
private LectureWizardState state = null;
/**
* Page for lecture options
*/
public LectureOptionsPage(Wizard wizard, LectureWizardState state) {
super(wizard);
this.state = state;
setPageComplete(true);
//TODO Temporarily disabled until implemented
chkIsExam.setEnabled(false);
chkInternetEnabled.setEnabled(false);
}
@Override
protected boolean wantNextOrFinish() {
return updateState();
}
/**
* Set the selected options in state
*/
private boolean updateState() {
state.isExam = chkIsExam.isSelected();
state.autoUpdate = chkAutoUpdate.isSelected();
state.internetAccess = chkInternetEnabled.isSelected();
state.isEnabled = chkIsActive.isSelected();
setDescription("Klicken Sie auf 'Weiter' für Berechtigungen oder 'Fertigstellen'.");
return true;
}
}
|