diff options
author | Jonathan Bauer | 2016-03-03 18:01:37 +0100 |
---|---|---|
committer | Jonathan Bauer | 2016-03-03 18:01:37 +0100 |
commit | f6a0867f2d8235a9c38c06dc0702c6e948928bcf (patch) | |
tree | bcd38a61059097cf559d6f4b8898628285871fce /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java | |
parent | [client] add 10px border to wizard's footer (diff) | |
download | tutor-module-f6a0867f2d8235a9c38c06dc0702c6e948928bcf.tar.gz tutor-module-f6a0867f2d8235a9c38c06dc0702c6e948928bcf.tar.xz tutor-module-f6a0867f2d8235a9c38c06dc0702c6e948928bcf.zip |
[client/server] add support for advanced configuration for usb/netrules stuff
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java index b0cf0eb8..0d10d919 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java @@ -17,6 +17,7 @@ import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JDialog; import javax.swing.JFrame; +import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JSpinner; @@ -58,7 +59,9 @@ public abstract class LectureDetailsWindowLayout extends JDialog { protected final ComboBox<ImageVersionDetails> cboVersions; protected final JCheckBox chkIsExam; protected final JCheckBox chkHasInternetAccess; + protected final JCheckBox chkHasUsbAccess; protected final JCheckBox chkIsActive; + protected final JButton btnAdvancedOptions; protected final JTextField txtId; protected final QLabel lblUseCount; @@ -91,7 +94,7 @@ public abstract class LectureDetailsWindowLayout extends JDialog { setResizable(true); setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); setLayout(new BorderLayout()); - + ((JPanel)getContentPane()).setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); // use panel to put every info related widget in it // then we will set the panel in BorderLayout.CENTER JPanel infoPanel = new JPanel(); @@ -210,9 +213,11 @@ public abstract class LectureDetailsWindowLayout extends JDialog { grid.nextRow(); // is exam - chkIsExam = new JCheckBox("Klausur"); - grid.skip(); - grid.add(chkIsExam, 2); + chkIsExam = new JCheckBox("Klausurmodus aktiv"); + grid.add(new JLabel("Beschränkungen")); + grid.add(chkIsExam); + btnAdvancedOptions = new JButton("Einstellungen"); + grid.add(btnAdvancedOptions); grid.nextRow(); chkHasInternetAccess = new JCheckBox("Internetzugriff"); @@ -220,6 +225,11 @@ public abstract class LectureDetailsWindowLayout extends JDialog { grid.add(chkHasInternetAccess, 2); grid.nextRow(); + chkHasUsbAccess = new JCheckBox("USB-Zugriff"); + grid.skip(); + grid.add(chkHasUsbAccess, 2); + grid.nextRow(); + chkIsActive = new JCheckBox("Aktiv"); grid.skip(); grid.add(chkIsActive, 2); |