diff options
author | Jonathan Bauer | 2015-09-03 14:06:35 +0200 |
---|---|---|
committer | Jonathan Bauer | 2015-09-03 14:06:35 +0200 |
commit | 4ad94edadb8710fe0e98c5169ea4a23c5f20d75b (patch) | |
tree | d2d3f16b527fcb278545b08ce072b08968cddc27 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java | |
parent | [client] removed unused interface implementation (diff) | |
download | tutor-module-4ad94edadb8710fe0e98c5169ea4a23c5f20d75b.tar.gz tutor-module-4ad94edadb8710fe0e98c5169ea4a23c5f20d75b.tar.xz tutor-module-4ad94edadb8710fe0e98c5169ea4a23c5f20d75b.zip |
[client] enumize LectureList Filters stuff
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java index 0d9be1c4..ac23d07c 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java @@ -19,6 +19,7 @@ import org.openslx.dozmod.gui.control.QLabel; import org.openslx.dozmod.gui.control.table.LectureTable; import org.openslx.dozmod.gui.helper.CompositePage; import org.openslx.dozmod.gui.helper.GridManager; +import org.openslx.dozmod.gui.window.LectureListWindow.FilterType; @SuppressWarnings("serial") public abstract class LectureListWindowLayout extends CompositePage { @@ -38,7 +39,7 @@ public abstract class LectureListWindowLayout extends CompositePage { protected JButton deleteButton; protected JButton editButton; protected JButton switchViewButton; - protected JComboBox<String> filterCbo; + protected JComboBox<FilterType> filterCbo; // imageDetail texts @@ -80,8 +81,8 @@ public abstract class LectureListWindowLayout extends CompositePage { filterPanel.setBorder(new TitledBorder(filterPanelLabel)); filterPanel.setLayout(new BoxLayout(filterPanel, BoxLayout.LINE_AXIS)); searchTextField = new JTextField(); - filterCbo = new JComboBox<String>(); - for (String s: showOwnedLabel){ + filterCbo = new JComboBox<FilterType>(); + for (FilterType s : FilterType.values()) { filterCbo.addItem(s); } filterPanel.add(searchTextField); |