diff options
Diffstat (limited to 'dozentenmodul/src/main/java/gui/image/SearchImage_GUI.java')
| -rw-r--r-- | dozentenmodul/src/main/java/gui/image/SearchImage_GUI.java | 35 |
1 files changed, 10 insertions, 25 deletions
diff --git a/dozentenmodul/src/main/java/gui/image/SearchImage_GUI.java b/dozentenmodul/src/main/java/gui/image/SearchImage_GUI.java index 68827f42..40434153 100644 --- a/dozentenmodul/src/main/java/gui/image/SearchImage_GUI.java +++ b/dozentenmodul/src/main/java/gui/image/SearchImage_GUI.java @@ -172,7 +172,6 @@ public class SearchImage_GUI extends JFrame { try {
client.setTokenForSession(SessionData.session.getAuthToken());
} catch (TException e1) {
- // TODO Auto-generated catch block
e1.printStackTrace();
}
@@ -506,29 +505,6 @@ public class SearchImage_GUI extends JFrame { tabbedPane = new JTabbedPane(JTabbedPane.TOP);
- //not needed anymore, as the filters are set by the full text search completely
- /*
- tabbedPane.addChangeListener(new ChangeListener() {
- public void stateChanged(ChangeEvent arg0) {
- if (tabbedPane.getSelectedIndex() == 0 && activeSearch == false)
- {
-
- String username = person.verantwortlicher.getName() + " "
- + person.verantwortlicher.getVorname();
- //rowSorterMyImages.setRowFilter(RowFilter.regexFilter(username, 4));
- }
- else if (tabbedPane.getSelectedIndex() == 1&& activeSearch == false)
- {
- //rowSorterPublicVorlagen.setRowFilter(RowFilter.regexFilter("true", 8)); //--> caused bug: no initial list in public images
- }
- else if (tabbedPane.getSelectedIndex() == 2 && activeSearch == false)
- {
- //rowSorterAll.setRowFilter(null);
- }
-
- }
- });
- */
tabbedPane.setBounds(10, 158, 557, 339);
contentPanel.add(tabbedPane);
@@ -788,6 +764,8 @@ public class SearchImage_GUI extends JFrame { });
btnDownload.setBounds(449, 508, 118, 23);
contentPanel.add(btnDownload);
+
+
{
JPanel buttonPane = new JPanel();
buttonPane.setBounds(0, 640, 902, 33);
@@ -1009,7 +987,7 @@ public class SearchImage_GUI extends JFrame { }
});
menuBar.add(mnNewMenu_Info);
-
+
c = this;
}
@@ -1053,6 +1031,9 @@ public class SearchImage_GUI extends JFrame { i.next();
}
+
+ //show number of rows in GUI
+ tabbedPane.setTitleAt(0, tabbedPane.getTitleAt(0)+" ("+model.getRowCount()+") ");
return model;
} catch (TException | ParseException e1) {
@@ -1099,6 +1080,8 @@ public class SearchImage_GUI extends JFrame { i.next();
}
+ //show number of rows in GUI
+ tabbedPane.setTitleAt(2, tabbedPane.getTitleAt(2)+" ("+model.getRowCount()+") ");
return model;
} catch (TException | ParseException e1) {
@@ -1144,6 +1127,8 @@ public class SearchImage_GUI extends JFrame { i.next();
}
+ //show number of rows in GUI
+ tabbedPane.setTitleAt(1, tabbedPane.getTitleAt(1)+" ("+model.getRowCount()+") ");
return model;
} catch (TException | ParseException e1) {
|
