From 2ca5c0fcc2508baa1304e9f047e34e9cf0ac336f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 22 Jan 2016 09:22:27 +0100 Subject: [client] Cleanup & formatting --- .../wizard/page/LectureLocationSelectionPage.java | 35 +++------------------- 1 file changed, 4 insertions(+), 31 deletions(-) (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureLocationSelectionPage.java') diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureLocationSelectionPage.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureLocationSelectionPage.java index 40e1110c..f8f10d27 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureLocationSelectionPage.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureLocationSelectionPage.java @@ -1,20 +1,9 @@ package org.openslx.dozmod.gui.wizard.page; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -import javax.swing.DefaultListModel; - import org.apache.log4j.Logger; -import org.openslx.bwlp.thrift.iface.Location; -import org.openslx.dozmod.gui.Gui; import org.openslx.dozmod.gui.wizard.Wizard; import org.openslx.dozmod.gui.wizard.layout.LectureLocationSelectionPageLayout; import org.openslx.dozmod.state.LectureWizardState; -import org.openslx.dozmod.thrift.cache.MetaDataCache; -import org.openslx.util.QuickTimer; -import org.openslx.util.QuickTimer.Task; @SuppressWarnings("serial") public class LectureLocationSelectionPage extends LectureLocationSelectionPageLayout { @@ -22,7 +11,7 @@ public class LectureLocationSelectionPage extends LectureLocationSelectionPageLa private final static Logger LOGGER = Logger.getLogger(LectureLocationSelectionPage.class); private LectureWizardState state = null; - + public LectureLocationSelectionPage(Wizard wizard, LectureWizardState state) { super(wizard); setPageComplete(true); @@ -33,26 +22,10 @@ public class LectureLocationSelectionPage extends LectureLocationSelectionPageLa protected boolean wantNextOrFinish() { return updateState(); } - + private boolean updateState() { -// DefaultListModel selectedLocationModel = locationSelector.getSelectedLocationModel(); -// if (selectedLocationModel != null && selectedLocationModel.elements() != null) { -// // prepare the final list -// if (state.locations == null) { -// state.locations = new ArrayList(); -// } else { -// state.locations.clear(); -// } -// List selectedLocationList = Collections.list(selectedLocationModel.elements()); -// for (Location loc : selectedLocationList) { -// state.locations.add(loc.getLocationId()); -// } -// // check the state of the checkbox only if we have a selection -// state.onlyInSelectedLocations = locationSelector.getOnlyInSelection(); -// } else { -// // allow empty location selection? -// return false; -// } + // TODO return true; } + } -- cgit v1.2.3-55-g7522