summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
diff options
context:
space:
mode:
authorStephan Schwaer2015-09-21 17:07:35 +0200
committerStephan Schwaer2015-09-21 17:07:35 +0200
commitabebdab45ae45213396e9348f2866d118aac770e (patch)
tree5d75f55b36e65a57d36c211ae4eaa0a13039a254 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
parent[client] "Show image details" popup menu item in LectureListWindow (diff)
downloadtutor-module-abebdab45ae45213396e9348f2866d118aac770e.tar.gz
tutor-module-abebdab45ae45213396e9348f2866d118aac770e.tar.xz
tutor-module-abebdab45ae45213396e9348f2866d118aac770e.zip
[client] Show number of the items in the table in image- and lecture window.
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
index 407bb047..5b082418 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
@@ -341,7 +341,7 @@ public class LectureListWindow extends LectureListWindowLayout {
// filters from the combobox
FilterType filterType = (FilterType) filterCbo.getSelectedItem();
- lectureTable.setHighlightOwn(filterType != FilterType.OWN);
+ lectureTable.setHighlightOwn(true);
switch (filterType) {
case ALL:
// no additional filters
@@ -368,6 +368,7 @@ public class LectureListWindow extends LectureListWindowLayout {
// for using multiple filters
RowFilter<ListModel<LectureSummary>, Integer> andFilters = RowFilter.andFilter(filters);
lectureTable.getRowSorter().setRowFilter(andFilters);
+ setLectureCountLabel(lectureTable.getRowCount());
}
private void refreshList(final boolean force) {
@@ -379,6 +380,7 @@ public class LectureListWindow extends LectureListWindowLayout {
@Override
public void run() {
lectureTable.setData(lectureList, true);
+ setLectureCountLabel(lectureTable.getRowCount());
}
});
}