summaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorIlya Ermakov <ilya403403@gmail.com>2014-12-05 17:54:52 +0300
committerVaadin Code Review <review@vaadin.com>2015-06-09 15:01:28 +0000
commit5b965ff478ef22a83a476eeebdf70554a776bae6 (patch)
treeb82d3b31e8fd61c52dee6596bdc883a8a5bd1ba2 /server/src
parent4c5405284bf7caa5e885587429c7169a0d54af32 (diff)
downloadvaadin-framework-5b965ff478ef22a83a476eeebdf70554a776bae6.tar.gz
vaadin-framework-5b965ff478ef22a83a476eeebdf70554a776bae6.zip
Table.setVisibleColumns() causes table to forget column headers, icons, alignment (#6245)
Effect of this patch: when making column invisible and visible again, column headers, icons, alignment are preserved. Change-Id: Ia0718699f1a5fb8f60fec25a835ee64c58ca5404
Diffstat (limited to 'server/src')
-rw-r--r--server/src/com/vaadin/ui/Table.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/server/src/com/vaadin/ui/Table.java b/server/src/com/vaadin/ui/Table.java
index cb61fa31ec..42c4beab6c 100644
--- a/server/src/com/vaadin/ui/Table.java
+++ b/server/src/com/vaadin/ui/Table.java
@@ -676,26 +676,6 @@ public class Table extends AbstractSelect implements Action.Container,
}
}
- // Removes alignments, icons and headers from hidden columns
- if (this.visibleColumns != null) {
- boolean disabledHere = disableContentRefreshing();
- try {
- for (final Iterator<Object> i = this.visibleColumns.iterator(); i
- .hasNext();) {
- final Object col = i.next();
- if (!newVC.contains(col)) {
- setColumnHeader(col, null);
- setColumnAlignment(col, (Align) null);
- setColumnIcon(col, null);
- }
- }
- } finally {
- if (disabledHere) {
- enableContentRefreshing(false);
- }
- }
- }
-
this.visibleColumns = newVC;
// Assures visual refresh