changeset 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
files src/econnect/wp3_3/client/widgets/table/DynamicStiTable.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/econnect/wp3_3/client/widgets/table/DynamicStiTable.java	Wed Jan 16 14:38:08 2013 +0100
+++ b/src/econnect/wp3_3/client/widgets/table/DynamicStiTable.java	Wed Jan 16 18:14:55 2013 +0100
@@ -401,8 +401,10 @@
 
 		    descriptionDataColumnList.add(new ColumnAndName(column, columnName));
 		}
-	    
-	    columns.add(descriptionDataColumnList);
+
+	    //only add if it has content
+	    if (!descriptionDataColumnList.isEmpty())
+	    	columns.add(descriptionDataColumnList);
 	    
 	    columnSortHandler.setComparator(nameColumn,
 	    		new Comparator<econnect.wp3_3.client.core.DataObject>() {