]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed regression from #5185 where switching footer on/off does not hide the footer...
authorJohn Alhroos <john.ahlroos@itmill.com>
Mon, 21 Jun 2010 08:01:34 +0000 (08:01 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Mon, 21 Jun 2010 08:01:34 +0000 (08:01 +0000)
svn changeset:13796/svn branch:6.4

src/com/vaadin/ui/Table.java

index 8c9a0afc3defe6ccfb20d6162fd760cdd7c9513c..c164673f4898e8716c2ab61fadcf92ea09f2d784 100644 (file)
@@ -2321,9 +2321,8 @@ public class Table extends AbstractSelect implements Action.Container,
         if (getRowHeaderMode() != ROW_HEADER_MODE_HIDDEN) {
             target.addAttribute("rowheaders", true);
         }
-        if (columnFootersVisible) {
-            target.addAttribute("colfooters", true);
-        }
+
+        target.addAttribute("colfooters", columnFootersVisible);
 
         // Visible column order
         final Collection sortables = getSortableContainerPropertyIds();
@@ -4063,9 +4062,9 @@ public class Table extends AbstractSelect implements Action.Container,
      * columns property id which was fired, the previous width of the column and
      * the width of the column after the resize.
      */
-    public static class ColumnResizeEvent extends Component.Event{
+    public static class ColumnResizeEvent extends Component.Event {
         public static final Method COLUMN_RESIZE_METHOD;
-        
+
         static {
             try {
                 COLUMN_RESIZE_METHOD = ColumnResizeListener.class
@@ -4076,7 +4075,7 @@ public class Table extends AbstractSelect implements Action.Container,
                 throw new java.lang.RuntimeException();
             }
         }
-        
+
         private final int previousWidth;
         private final int currentWidth;
         private final Object columnPropertyId;
@@ -4099,7 +4098,7 @@ public class Table extends AbstractSelect implements Action.Container,
             previousWidth = previous;
             currentWidth = current;
             columnPropertyId = propertyId;
-        }        
+        }
 
         /**
          * Get the column property id of the column that was resized.
@@ -4128,11 +4127,11 @@ public class Table extends AbstractSelect implements Action.Container,
             return currentWidth;
         }
     }
-    
+
     /**
      * Interface for listening to column resize events.
      */
-    public interface ColumnResizeListener{
+    public interface ColumnResizeListener {
 
         /**
          * This method is triggered when the column has been resized
@@ -4157,7 +4156,7 @@ public class Table extends AbstractSelect implements Action.Container,
                 ColumnResizeEvent.class, listener,
                 ColumnResizeEvent.COLUMN_RESIZE_METHOD);
     }
-    
+
     /**
      * Removes a column resize listener from the Table.
      *