diff options
author | Nino Breuer | 2014-10-15 13:55:36 +0200 |
---|---|---|
committer | Nino Breuer | 2014-10-15 13:55:36 +0200 |
commit | 23ee42f399eeac2297336ec3386b593672c918d7 (patch) | |
tree | 43af288ac1fa2b733f7aadde82bf3597b1d20f06 /dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java | |
parent | Merge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module (diff) | |
download | tutor-module-23ee42f399eeac2297336ec3386b593672c918d7.tar.gz tutor-module-23ee42f399eeac2297336ec3386b593672c918d7.tar.xz tutor-module-23ee42f399eeac2297336ec3386b593672c918d7.zip |
added functionality: klick on table header also handles all sub-rights
Diffstat (limited to 'dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java')
-rw-r--r-- | dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java b/dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java index 164595af..a51912c4 100644 --- a/dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java +++ b/dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java @@ -1,7 +1,6 @@ package gui.image; import gui.intro.About_GUI; -import gui.intro.Login_GUI; import gui.intro.MainMenue_GUI; import java.awt.Color; @@ -138,14 +137,6 @@ public class PermissionCreateImage_GUI extends JFrame { setLocationRelativeTo(formerGUI); - // - //System.out.println("formergui X oben:"+formerGUI.getLocation().getX()); - //System.out.println("formergui Y oben:"+formerGUI.getLocation().getY()); - - //System.out.println("this oben: "+this.getLocation().getX()); - //System.out.println("this oben: "+this.getLocation().getY()); - - //System.out.println("------------------------------------------"); getContentPane().setLayout(null); { @@ -156,7 +147,7 @@ public class PermissionCreateImage_GUI extends JFrame { panel.setLayout(null); { JLabel lblNewLabel = new JLabel( - "Image Berechtigungen (Nur zur Veranschaulichung)"); + "Image Berechtigungen"); lblNewLabel.setBounds(10, 11, 509, 22); panel.add(lblNewLabel); lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18)); @@ -618,8 +609,8 @@ public class PermissionCreateImage_GUI extends JFrame { return; boolean checked = e.getStateChange() == ItemEvent.SELECTED; for (int x = 0, y = table.getRowCount(); x < y; x++) { - table.setValueAt(new Boolean(checked), x, 1); - table.setValueAt(new Boolean(checked), x, 2); + table.setValueAt(new Boolean(checked), x, 1); //set read + table.setValueAt(new Boolean(checked), x, 2); // set write } } } @@ -632,7 +623,8 @@ public class PermissionCreateImage_GUI extends JFrame { return; boolean checked = e.getStateChange() == ItemEvent.SELECTED; for (int x = 0, y = table.getRowCount(); x < y; x++) { - table.setValueAt(new Boolean(checked), x, 3); + table.setValueAt(new Boolean(checked), x, 1); //set read + table.setValueAt(new Boolean(checked), x, 3); //set link } } } @@ -645,7 +637,10 @@ public class PermissionCreateImage_GUI extends JFrame { return; boolean checked = e.getStateChange() == ItemEvent.SELECTED; for (int x = 0, y = table.getRowCount(); x < y; x++) { - table.setValueAt(new Boolean(checked), x, 4); + table.setValueAt(new Boolean(checked), x, 1); //set read + table.setValueAt(new Boolean(checked), x, 2); // set write + table.setValueAt(new Boolean(checked), x, 3); // set link + table.setValueAt(new Boolean(checked), x, 4); //set admin } } } |