diff options
| author | Nino Breuer | 2014-10-29 14:01:34 +0100 |
|---|---|---|
| committer | Nino Breuer | 2014-10-29 14:01:34 +0100 |
| commit | 4ea470cca06090304bc1cf419251b1bc5e5adaab (patch) | |
| tree | 85ba400ebdd3a0de607c20788e4d74567540d1f6 /dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java | |
| parent | Merge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module (diff) | |
| parent | Ausgaben etwas verkürzt (diff) | |
| download | tutor-module-4ea470cca06090304bc1cf419251b1bc5e5adaab.tar.gz tutor-module-4ea470cca06090304bc1cf419251b1bc5e5adaab.tar.xz tutor-module-4ea470cca06090304bc1cf419251b1bc5e5adaab.zip | |
Merge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module
Diffstat (limited to 'dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java')
| -rw-r--r-- | dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java b/dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java index cb01d824..05b7959e 100644 --- a/dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java +++ b/dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java @@ -203,6 +203,13 @@ public class PermissionEditLecture_GUI extends JFrame { panel_1.add(scrollPane); table = new JTable(); + table.addMouseListener(new MouseAdapter() { + @Override + public void mouseClicked(MouseEvent e) { + checkIntegrity(-1); + } + }); + table.setModel(model); table.setSelectionForeground(Color.WHITE); @@ -573,11 +580,11 @@ public class PermissionEditLecture_GUI extends JFrame { isWrite = (boolean) table.getValueAt(selectedRow, 2); isAdmin = (boolean) table.getValueAt(selectedRow, 3); - boolean[] checkedVals = CheckIntegrity.isIntegre(isRead, isWrite,isAdmin, false); + boolean[] checkedVals = CheckIntegrity.isIntegreForLecture(isRead, isWrite,isAdmin); table.setValueAt(checkedVals[0], selectedRow, 1); table.setValueAt(checkedVals[1], selectedRow, 2); - table.setValueAt(checkedVals[3], selectedRow, 3); + table.setValueAt(checkedVals[2], selectedRow, 3); }// end checkIntegrity() // save the entered rights into the model and prepare them to be written to |
