summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-22 09:22:27 +0100
committerSimon Rettberg2016-01-22 09:22:27 +0100
commit2ca5c0fcc2508baa1304e9f047e34e9cf0ac336f (patch)
tree732e6b181178c14bea39c8ca0c0daf76f927e82e /dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page
parent[client] Remember if sat supports locations and stop querying if not (diff)
downloadtutor-module-2ca5c0fcc2508baa1304e9f047e34e9cf0ac336f.tar.gz
tutor-module-2ca5c0fcc2508baa1304e9f047e34e9cf0ac336f.tar.xz
tutor-module-2ca5c0fcc2508baa1304e9f047e34e9cf0ac336f.zip
[client] Cleanup & formatting
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureLocationSelectionPage.java35
1 files changed, 4 insertions, 31 deletions
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<Location> selectedLocationModel = locationSelector.getSelectedLocationModel();
-// if (selectedLocationModel != null && selectedLocationModel.elements() != null) {
-// // prepare the final list
-// if (state.locations == null) {
-// state.locations = new ArrayList<Integer>();
-// } else {
-// state.locations.clear();
-// }
-// List<Location> 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;
}
+
}