summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java
blob: 1cf5dcb6a5fe99185810b5d682f00f4e833ec857 (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
46
47
48
49
50
package org.openslx.dozmod.gui.wizard;

import java.awt.Window;

import org.apache.log4j.Logger;
import org.openslx.dozmod.gui.wizard.layout.LectureCreationPageLayout;
import org.openslx.dozmod.gui.wizard.page.LectureCreationPage;
import org.openslx.dozmod.gui.wizard.page.LectureCustomPermissionPage;

public class LectureWizard extends Wizard {

	private final static Logger LOGGER = Logger.getLogger(LectureWizard.class);

	protected LectureCreationPageLayout lectureCreationPage;
	protected LectureCustomPermissionPage lectureCustomPermissionPage;
	protected boolean editExistingLecture;

	/**
	 * Wizard for creating or editing a lecture
	 * @param editExistingLecture whether to create new or edit existing lecture
	 */
	public LectureWizard(Window parent, boolean editExistingLecture) {
		super(parent);
		this.editExistingLecture = editExistingLecture;
	}


	@Override
	public String getWindowTitle() {
		return "Neue Veranstaltung erzeugen";
	}

	@Override
	public void addPages() {
		// create the shared object for all pages of the wizard
		lectureCreationPage = new LectureCreationPage(editExistingLecture);
		lectureCustomPermissionPage = new LectureCustomPermissionPage() {
		};

		addPage(lectureCreationPage);
		addPage(lectureCustomPermissionPage);
	}


	@Override
	public boolean performFinish() {
		// TODO Auto-generated method stub
		return false;
	}
}