diff options
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.java | 34 |
1 files changed, 31 insertions, 3 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 1d3e1a90..eee3cb91 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 @@ -41,7 +41,7 @@ import org.openslx.thrifthelper.Comparators; @SuppressWarnings("serial") public abstract class LectureDetailsWindowLayout extends JDialog { - protected final JLabel txtTitle; + protected final JTextArea txtTitle; protected final JTextArea txtDescription; protected final JLabel txtImageName; protected final JButton btnLinkImage; @@ -60,6 +60,14 @@ public abstract class LectureDetailsWindowLayout extends JDialog { protected final JTextField txtId; protected final JLabel lblUseCount; + + protected final JCheckBox chkCustomPermAdmin; + protected final JCheckBox chkCustomPermEdit; + protected final JCheckBox chkCustomPermDownload; + protected final JCheckBox chkCustomPermLink; + + protected final JButton btnCustomPermissions; + protected final JButton btnSaveChanges; protected final JButton btnClose; protected final JButton btnDownloadImage; @@ -92,7 +100,7 @@ public abstract class LectureDetailsWindowLayout extends JDialog { GridManager grid = new GridManager(infoPanel, 3); // -- name -- - txtTitle = new JLabel(); + txtTitle = new JTextArea(); txtTitle.setFont(txtTitle.getFont().deriveFont(Font.BOLD, txtTitle.getFont().getSize2D() * 2)); grid.add(txtTitle, 3).expand(true, false).fill(true, false); grid.nextRow(); @@ -216,9 +224,29 @@ public abstract class LectureDetailsWindowLayout extends JDialog { grid.add(new JLabel("Aufrufe")); grid.add(lblUseCount, 2); grid.nextRow(); + + // Panel with the default permissions + JPanel defaultPermissionPane = new JPanel(); + defaultPermissionPane.setBorder(BorderFactory.createTitledBorder( "Default Berechtigungen")); + chkCustomPermAdmin = new JCheckBox("Admin"); + chkCustomPermDownload = new JCheckBox("Download"); + chkCustomPermEdit = new JCheckBox("Bearbeiten"); + chkCustomPermLink = new JCheckBox("Link"); + defaultPermissionPane.add(chkCustomPermLink); + defaultPermissionPane.add(chkCustomPermDownload); + defaultPermissionPane.add(chkCustomPermEdit); + defaultPermissionPane.add(chkCustomPermAdmin); + grid.add(defaultPermissionPane, 3); + grid.nextRow(); + + // button for the custom permissions + btnCustomPermissions = new JButton("Standart Berechtigungen"); + grid.add(btnCustomPermissions); + grid.skip(2); + grid.nextRow(); grid.finish(true); - + // finally add the infoPanel itself to the main view add(infoPanel, BorderLayout.CENTER); // button panel on the bottom |