summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-03 18:41:00 +0200
committerSimon Rettberg2015-09-03 18:41:00 +0200
commit8e6d9a0f347a258538d3a84ecb9123f39a7a9154 (patch)
treecffcfb2382cadc0023f0af4440833e683a6fab30 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java
parentMerge branch 'v1.1' of git.openslx.org:openslx-ng/tutor-module into v1.1 (diff)
downloadtutor-module-8e6d9a0f347a258538d3a84ecb9123f39a7a9154.tar.gz
tutor-module-8e6d9a0f347a258538d3a84ecb9123f39a7a9154.tar.xz
tutor-module-8e6d9a0f347a258538d3a84ecb9123f39a7a9154.zip
[client] Don't go crazy on lectures without an image
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.java32
1 files changed, 16 insertions, 16 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 de8867d1..f2c5f881 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
@@ -53,11 +53,11 @@ public abstract class LectureDetailsWindowLayout extends JDialog {
protected final QLabel lblUpdateTime;
protected final QLabel lblStartTime;
protected final QLabel lblEndTime;
- protected final JCheckBox btnAutoUpdate;
+ protected final JCheckBox chkAutoUpdate;
protected final JComboBox<ImageVersionDetails> cboVersions;
- protected final JCheckBox btnIsExam;
- protected final JCheckBox btnHasInternetAccess;
- protected final JCheckBox btnIsActive;
+ protected final JCheckBox chkIsExam;
+ protected final JCheckBox chkHasInternetAccess;
+ protected final JCheckBox chkIsActive;
protected final JTextField txtId;
protected final QLabel lblUseCount;
@@ -118,12 +118,12 @@ public abstract class LectureDetailsWindowLayout extends JDialog {
grid.add(txtImageName).expand(true, false);
// link button for image
btnLinkImage = new JButton("Ändern");
- grid.add(btnLinkImage);
+ grid.add(btnLinkImage).fill(true, false);
grid.nextRow();
// image version handling
// auto update
- btnAutoUpdate = new JCheckBox("Immer aktuellste Version verwenden");
+ chkAutoUpdate = new JCheckBox("Immer aktuellste Version verwenden");
// versions combo
cboVersions = new ComboBox<>(Comparators.imageVersionDetails,
new ComboBoxRenderer<ImageVersionDetails>() {
@@ -141,11 +141,11 @@ public abstract class LectureDetailsWindowLayout extends JDialog {
btnDownloadImage = new JButton("Download");
btnDownloadImage.setToolTipText("Momentan verwendete Version herunterladen");
JPanel versionPanel = new JPanel(new BorderLayout());
- versionPanel.add(btnDownloadImage, BorderLayout.EAST);
versionPanel.add(cboVersions, BorderLayout.CENTER);
- versionPanel.add(btnAutoUpdate, BorderLayout.SOUTH);
+ versionPanel.add(chkAutoUpdate, BorderLayout.SOUTH);
grid.add(new QLabel("Image-Version"));
- grid.add(versionPanel, 2);
+ grid.add(versionPanel);
+ grid.add(btnDownloadImage).fill(true, false);
grid.nextRow();
// start time of the lecture
@@ -177,7 +177,7 @@ public abstract class LectureDetailsWindowLayout extends JDialog {
btnChangeOwner = new JButton("Ändern");
grid.add(new QLabel("Besitzer"));
grid.add(lblOwner).expand(true, false);
- grid.add(btnChangeOwner);
+ grid.add(btnChangeOwner).fill(true, false);
grid.nextRow();
// creation time
@@ -199,19 +199,19 @@ public abstract class LectureDetailsWindowLayout extends JDialog {
grid.nextRow();
// is exam
- btnIsExam = new JCheckBox("Klausur");
+ chkIsExam = new JCheckBox("Klausur");
grid.skip();
- grid.add(btnIsExam, 2);
+ grid.add(chkIsExam, 2);
grid.nextRow();
- btnHasInternetAccess = new JCheckBox("Internetzugriff");
+ chkHasInternetAccess = new JCheckBox("Internetzugriff");
grid.skip();
- grid.add(btnHasInternetAccess, 2);
+ grid.add(chkHasInternetAccess, 2);
grid.nextRow();
- btnIsActive = new JCheckBox("Aktiv");
+ chkIsActive = new JCheckBox("Aktiv");
grid.skip();
- grid.add(btnIsActive, 2);
+ grid.add(chkIsActive, 2);
grid.nextRow();
// id