Mercurial > dive4elements > river
changeset 9326:0452f1c1bad3
Minor cleanup
author | gernotbelger |
---|---|
date | Fri, 27 Jul 2018 15:33:49 +0200 |
parents | 094ed9d1f2ad |
children | 9eaff80c81ea |
files | gwt-client/src/main/java/org/dive4elements/river/client/client/ui/TableDataPanel.java |
diffstat | 1 files changed, 3 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/TableDataPanel.java Fri Jul 27 14:33:41 2018 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/TableDataPanel.java Fri Jul 27 15:33:49 2018 +0200 @@ -105,14 +105,6 @@ this.uuid = uuid; } - public Canvas createOld(final DataList dataList) { - return null; - } - - protected Canvas createWidget(final DataList data) { - return null; - } - /** * This method sets the data to a dynamic table. * @@ -138,17 +130,16 @@ } final Map<String, List<String[]>> tabData = getTabData(list); if (tabData.size() == 1) { - createTable(this.dataTable, tabData.get(tabData.keySet().iterator().next()), nf, 0); + createTable(this.dataTable, tabData.get(tabData.keySet().iterator().next()), nf); } else if (tabData.size() > 1) { - final int index = 0; for (final String key : tabData.keySet()) { final List<String[]> items = tabData.get(key); final ListGrid table = new ListGrid(); - createTable(table, items, nf, index); + createTable(table, items, nf); final Tab tab = new Tab(); tab.setTitle(key); tab.setPane(table); @@ -162,7 +153,7 @@ } } - private void createTable(final ListGrid dataTableTab, final List<String[]> list, final NumberFormat nf, final int tabNumber) { + private void createTable(final ListGrid dataTableTab, final List<String[]> list, final NumberFormat nf) { final String[] header = list.get(0); final String[] displayField = new String[header.length];