summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java27
1 files changed, 6 insertions, 21 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java
index 1cf5dcb6..1ca2ccff 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java
@@ -3,48 +3,33 @@ 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;
+@SuppressWarnings("serial")
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;
- }
+ // 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";
}
- @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;
- }
}