diff options
| author | Michael Wilson | 2014-10-29 09:37:01 +0100 |
|---|---|---|
| committer | Michael Wilson | 2014-10-29 09:37:01 +0100 |
| commit | 1f832ccfed4c0552c95cdfd166c60d372afb0959 (patch) | |
| tree | 3a06c24931f378698ce8310dbc25ecf816918937 /dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java | |
| parent | Serverseitiges Read und Write von Rechten korrigiert (diff) | |
| download | tutor-module-1f832ccfed4c0552c95cdfd166c60d372afb0959.tar.gz tutor-module-1f832ccfed4c0552c95cdfd166c60d372afb0959.tar.xz tutor-module-1f832ccfed4c0552c95cdfd166c60d372afb0959.zip | |
Berechtigung für Veranstaltung korrigiert
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 |
