diff options
author | Henrik Paul <henrik@vaadin.com> | 2015-01-28 13:40:00 +0200 |
---|---|---|
committer | Henrik Paul <henrik@vaadin.com> | 2015-02-04 15:09:28 +0200 |
commit | 7cffb158ceab46df983e9ff81326e360f9e5235d (patch) | |
tree | 45cfa3cc89520513278820a4ed914f04e42d8c00 /uitest/src | |
parent | 103b177475e0029abed00eec68e752492feafa61 (diff) | |
download | vaadin-framework-7cffb158ceab46df983e9ff81326e360f9e5235d.tar.gz vaadin-framework-7cffb158ceab46df983e9ff81326e360f9e5235d.zip |
Speeds up column adding in Grid (#16474)
Grid.onStateChange is now about 40% faster when adding columns,
and setting several column widths has now way less overhead.
Change-Id: I7bd900324207bfb2543a1a90390665b90206aefd
Diffstat (limited to 'uitest/src')
-rw-r--r-- | uitest/src/com/vaadin/tests/widgetset/client/grid/EscalatorProxy.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/widgetset/client/grid/EscalatorProxy.java b/uitest/src/com/vaadin/tests/widgetset/client/grid/EscalatorProxy.java index 29e56b1b8c..7f813b9d0f 100644 --- a/uitest/src/com/vaadin/tests/widgetset/client/grid/EscalatorProxy.java +++ b/uitest/src/com/vaadin/tests/widgetset/client/grid/EscalatorProxy.java @@ -15,6 +15,8 @@ */ package com.vaadin.tests.widgetset.client.grid; +import java.util.Map; + import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.TableRowElement; import com.google.gwt.dom.client.TableSectionElement; @@ -87,6 +89,12 @@ public class EscalatorProxy extends Escalator { throws IndexOutOfBoundsException, IllegalArgumentException { columnConfiguration.refreshColumns(index, numberOfColumns); } + + @Override + public void setColumnWidths(Map<Integer, Double> indexWidthMap) + throws IllegalArgumentException { + columnConfiguration.setColumnWidths(indexWidthMap); + } } private class RowContainerProxy implements RowContainer { |