summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageCustomPermissionPageLayout.java
blob: ab69fa6e7099eaaac0cf204b9a5a69ab2caef480 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package org.openslx.dozmod.gui.wizard.layout;

import javax.swing.JButton;
import javax.swing.JScrollPane;

import org.openslx.dozmod.gui.control.table.ImagePermissionTable;
import org.openslx.dozmod.gui.helper.GridPos;
import org.openslx.dozmod.gui.wizard.Wizard;
import org.openslx.dozmod.gui.wizard.WizardPage;

@SuppressWarnings("serial")
public class ImageCustomPermissionPageLayout extends WizardPage {

	// The table stuff
	protected ImagePermissionTable permissionTable;

	// Buttons
	protected JButton addUser;
	protected JButton removeUser;

	protected String addUserLabel = "Benutzer Hinzufügen";
	protected String removeUserLabel = "Benutzer entfernen";

	/**
	 * wizard page for setting custom permissions
	 * 
	 * @param wizard
	 */
	public ImageCustomPermissionPageLayout(Wizard wizard) {
		super(wizard, "Benutzerspezifische Rechte setzen");
		setDescription("Setzen Sie hier spezielle Berechtigungen, sofern Sie dies wünschen.");

		// table
		permissionTable = new ImagePermissionTable();
		add(new JScrollPane(permissionTable), GridPos.get(0, 0, true, true));

		// Buttons below Table
		addUser = new JButton();
		add(addUser, GridPos.get(0, 1));

		removeUser = new JButton();
		add(removeUser, GridPos.get(1, 1));
	}

}