summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard
diff options
context:
space:
mode:
authorJonathan Bauer2016-01-21 18:30:16 +0100
committerJonathan Bauer2016-01-21 18:30:16 +0100
commit7e6f4a7c094ac014d1c63b163c57d62e800dfe53 (patch)
treea6a79e170dda51e9f2cbf0fbf1b1ad6cd7f5b55b /dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard
parent[server] Add section entry to xml (diff)
downloadtutor-module-7e6f4a7c094ac014d1c63b163c57d62e800dfe53.tar.gz
tutor-module-7e6f4a7c094ac014d1c63b163c57d62e800dfe53.tar.xz
tutor-module-7e6f4a7c094ac014d1c63b163c57d62e800dfe53.zip
[client] Changed location selector from lists to tree selection
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureLocationSelectionPage.java36
1 files changed, 18 insertions, 18 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 e02f2829..40e1110c 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
@@ -35,24 +35,24 @@ public class LectureLocationSelectionPage extends LectureLocationSelectionPageLa
}
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;
- }
+// 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;
+// }
return true;
}
}