summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
diff options
context:
space:
mode:
authorStephan Schwaer2015-08-03 18:11:39 +0200
committerStephan Schwaer2015-08-03 18:11:39 +0200
commitba9eadf7288cbc697c6a82884e2d590e81ed88ed (patch)
tree8cf1c86975e13fe949a87fba11ec69ac55499650 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
parent[client] Remove debug output from LoginWindow (diff)
downloadtutor-module-ba9eadf7288cbc697c6a82884e2d590e81ed88ed.tar.gz
tutor-module-ba9eadf7288cbc697c6a82884e2d590e81ed88ed.tar.xz
tutor-module-ba9eadf7288cbc697c6a82884e2d590e81ed88ed.zip
[client] Added lecture details layout and window. (not working yet)
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
index 4b24ce5e..eb4dc1ee 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
@@ -6,6 +6,7 @@ import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.List;
+import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javax.swing.event.DocumentEvent;
@@ -51,6 +52,18 @@ public class LectureListWindow extends LectureListWindowLayout {
// TODO: Set filter
}
});
+
+ lectureTable.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent e) {
+ if (e.getClickCount() == 2) {
+ LectureSummary lecture = lectureTable.getSelectedItem();
+ if (lecture == null)
+ return;
+ LectureDetailsWindow.open((JFrame)SwingUtilities.getWindowAncestor(me), lecture.getLectureId());
+ }
+ }
+ });
lectureTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
@Override