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

import java.awt.Window;

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

@SuppressWarnings("serial")
public class LectureWizard extends Wizard {

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

	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;

		// create the shared object for all pages of the wizard
		addPage(new LectureCreationPage(this));
		addPage(new LectureCustomPermissionPage(this));
	}

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

}