Mercurial > hg > STI-GWT
comparison src/econnect/wp3_3/client/widgets/table/DynamicStiTable.java @ 79:14cacff35e8d trimmed_data
"hide" the table view if it has no content
author | Sebastian Kruse <skruse@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 16 Jan 2013 18:14:55 +0100 |
parents | 692df235a177 |
children | 1dc51e3b2848 |
comparison
equal
deleted
inserted
replaced
78:692df235a177 | 79:14cacff35e8d |
---|---|
399 } | 399 } |
400 }); | 400 }); |
401 | 401 |
402 descriptionDataColumnList.add(new ColumnAndName(column, columnName)); | 402 descriptionDataColumnList.add(new ColumnAndName(column, columnName)); |
403 } | 403 } |
404 | 404 |
405 columns.add(descriptionDataColumnList); | 405 //only add if it has content |
406 if (!descriptionDataColumnList.isEmpty()) | |
407 columns.add(descriptionDataColumnList); | |
406 | 408 |
407 columnSortHandler.setComparator(nameColumn, | 409 columnSortHandler.setComparator(nameColumn, |
408 new Comparator<econnect.wp3_3.client.core.DataObject>() { | 410 new Comparator<econnect.wp3_3.client.core.DataObject>() { |
409 public int compare(econnect.wp3_3.client.core.DataObject o1, econnect.wp3_3.client.core.DataObject o2) { | 411 public int compare(econnect.wp3_3.client.core.DataObject o1, econnect.wp3_3.client.core.DataObject o2) { |
410 if (o1 == o2) | 412 if (o1 == o2) |