blob: ac29393c44277dc76900d2c8b163bbd2033f251a (
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
46
47
|
package org.openslx.dozmod.gui.wizard.layout;
import javax.swing.JCheckBox;
import org.openslx.dozmod.gui.helper.GridManager;
import org.openslx.dozmod.gui.wizard.Wizard;
import org.openslx.dozmod.gui.wizard.WizardPage;
@SuppressWarnings("serial")
public abstract class LectureOptionsPageLayout extends WizardPage {
protected static String title = "Zusätzliche Optionen";
protected final JCheckBox chkInternetEnabled;
protected final JCheckBox chkIsExam;
protected final JCheckBox chkAutoUpdate;
protected final JCheckBox chkIsActive;
/**
* Page for additional options of lecture
*/
public LectureOptionsPageLayout(Wizard wizard) {
super(wizard, title);
setDescription("Bitte wählen Sie aus folgenden Optionen aus:");
GridManager grid = new GridManager(this, 1);
// Options related to exams
chkIsExam = new JCheckBox("Veranstaltung ist eine Prüfung");
grid.add(chkIsExam);
grid.nextRow();
chkInternetEnabled = new JCheckBox("Internet verfügbar", true);
grid.add(chkInternetEnabled);
grid.nextRow();
chkAutoUpdate = new JCheckBox("Immer auf aktuellste VM-Version updaten", true);
grid.add(chkAutoUpdate);
grid.nextRow();
chkIsActive = new JCheckBox("Vorlesung ist aktiv", true);
grid.add(chkIsActive);
grid.nextRow();
grid.finish(true);
}
}
|