aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui
diff options
context:
space:
mode:
authorJohn Alhroos <john.ahlroos@itmill.com>2010-06-21 08:01:34 +0000
committerJohn Alhroos <john.ahlroos@itmill.com>2010-06-21 08:01:34 +0000
commit02f4a09abdf940b546ba8bf22326b7b5de8243f9 (patch)
tree533590d6279892bd2f392170774a709237190e54 /src/com/vaadin/ui
parent65862a6d71ad6faca472b9c91f54593b06a2a618 (diff)
downloadvaadin-framework-02f4a09abdf940b546ba8bf22326b7b5de8243f9.tar.gz
vaadin-framework-02f4a09abdf940b546ba8bf22326b7b5de8243f9.zip
Fixed regression from #5185 where switching footer on/off does not hide the footer correctly.
svn changeset:13796/svn branch:6.4
Diffstat (limited to 'src/com/vaadin/ui')
-rw-r--r--src/com/vaadin/ui/Table.java19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java
index 8c9a0afc3d..c164673f48 100644
--- a/src/com/vaadin/ui/Table.java
+++ b/src/com/vaadin/ui/Table.java
@@ -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.
*