summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/util
diff options
context:
space:
mode:
authorMichael Wilson2014-10-27 18:13:20 +0100
committerMichael Wilson2014-10-27 18:13:20 +0100
commit0ed4549c028e2523534a09fd6e41c49c9d178ec1 (patch)
treeb7a829b485b644eadb4801faad15be8a81c723b1 /dozentenmodul/src/main/java/util
parentMerge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module (diff)
downloadtutor-module-0ed4549c028e2523534a09fd6e41c49c9d178ec1.tar.gz
tutor-module-0ed4549c028e2523534a09fd6e41c49c9d178ec1.tar.xz
tutor-module-0ed4549c028e2523534a09fd6e41c49c9d178ec1.zip
Sämtliche Logik und Grafiken zur Vergabe und Verwaltung von Berechtigungen eingeführt. Kleinere Bugs sind bekannt, werden aktuell behoben
Diffstat (limited to 'dozentenmodul/src/main/java/util')
-rw-r--r--dozentenmodul/src/main/java/util/ListAllOtherUsers.java239
1 files changed, 0 insertions, 239 deletions
diff --git a/dozentenmodul/src/main/java/util/ListAllOtherUsers.java b/dozentenmodul/src/main/java/util/ListAllOtherUsers.java
deleted file mode 100644
index 98b26e03..00000000
--- a/dozentenmodul/src/main/java/util/ListAllOtherUsers.java
+++ /dev/null
@@ -1,239 +0,0 @@
-package util;
-
-import gui.image.CreateImageAllgemein_GUI;
-import gui.image.DeleteImage_GUI;
-import gui.image.SearchEditImage_GUI;
-import gui.image.SearchImage_GUI;
-import gui.intro.About_GUI;
-import gui.intro.MainMenue_GUI;
-import gui.lecture.CreateLectureAllgemein_GUI;
-import gui.lecture.DeleteLecture_GUI;
-import gui.lecture.EditLectureSearch_GUI;
-import gui.lecture.SearchLecture_GUI;
-
-import java.awt.Component;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.ScrollPane;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.net.URI;
-import java.net.URISyntaxException;
-
-import javax.swing.ButtonGroup;
-import javax.swing.JButton;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JSeparator;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.SwingConstants;
-import javax.swing.ToolTipManager;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.TitledBorder;
-
-import models.GUIRights;
-import models.ImageRights;
-import models.Links;
-import models.RightsManagement;
-import models.SessionData;
-import models.person;
-
-import org.apache.log4j.Logger;
-import javax.swing.JScrollPane;
-import javax.swing.ScrollPaneConstants;
-import javax.swing.JTable;
-import java.awt.Color;
-
-
-public class ListAllOtherUsers extends JFrame {
-
-
- private final static Logger LOGGER = Logger.getLogger(MainMenue_GUI.class);
-
- private final JPanel contentPanel = new JPanel();
-
- private JMenuItem mntmAbout;
- Component c = null;
- private JTable table;
-
-
- /**
- * Create the dialog.
- */
- public ListAllOtherUsers(Component formerGUI) {
-
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- System.exit(0);
- }
- });
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- setTitle("bwLehrpool Suite - Connected Server: "
- + SessionData.session.getServerAdress());
- setBounds(0, 0, 603, 722);
- this.setLocationRelativeTo(formerGUI);
-
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 567, 69);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Liste aller Benutzer");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie
- .setText("Bitte markeiren Sie Benutzer, denen Sie bestimmte Rechte vergeben möchten.");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 22);
- panel.add(txtpnBitteWhlenSie);
- }
-
- //reset the list of permissions every time the user goes back to the main menu
- RightsManagement.rightsManagement.getPermittedUserList().clear();
-
- contentPanel.setBounds(10, 104, 567, 502);
- contentPanel.setBackground(SystemColor.menu);
-
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
- scrollPane.setBounds(0, 0, 567, 491);
- contentPanel.add(scrollPane);
-
- table = new JTable();
- table.setSelectionForeground(Color.WHITE);
- table.setBounds(0, 0, 535, 1);
- //contentPanel.add(table);
- scrollPane.setViewportView(table);
-
- // ToolTipp lange anzeigen - 60sec
- ToolTipManager.sharedInstance().setDismissDelay(60000);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 630, 587, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton continueButton = new JButton("Speichern");
-
-
- continueButton.setActionCommand("OK");
- buttonPane.add(continueButton);
- getRootPane().setDefaultButton(continueButton);
- }
- }
- {
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 617, 587, 2);
- getContentPane().add(separator);
- }
- {
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 91, 587, 2);
- getContentPane().add(separator);
- }
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- //Template for Help-Buttons
- /*
- JMenu mnNewMenu_Info = new JMenu("Info");
- mnNewMenu_Info.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
- JOptionPane.showMessageDialog(null, HELP_MESSAGE, "Hilfe zu dieser Oberfläche", JOptionPane.INFORMATION_MESSAGE);
- }
- });
- menuBar.add(mnNewMenu_Info);
- *
- */
-
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mntmFaq.addMouseListener(new MouseAdapter() {
- @Override
- public void mousePressed(MouseEvent arg0) {
- URI windows;
- try {
- windows = new URI(Links.getFAQ());
- OpenLinks.openWebpage(windows);
- } catch (URISyntaxException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- });
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mntmOtrs.addMouseListener(new MouseAdapter() {
- @Override
- public void mousePressed(MouseEvent arg0) {
- URI windows;
- try {
- windows = new URI(Links.getOTRS());
- OpenLinks.openWebpage(windows);
- } catch (URISyntaxException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- });
- mnNewMenu_1.add(mntmOtrs);
-
- mntmAbout = new JMenuItem("About");
- mntmAbout.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- About_GUI ab = new About_GUI();
- ab.setVisible(true);
- }
- });
- mnNewMenu_1.add(mntmAbout);
-
- c = this;
- }// end main
-
- /**
- * Enables/disables radio button given the user's rights
- */
-
-
-
-}