From 7cffb158ceab46df983e9ff81326e360f9e5235d Mon Sep 17 00:00:00 2001 From: Henrik Paul Date: Wed, 28 Jan 2015 13:40:00 +0200 Subject: 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 --- .../com/vaadin/tests/widgetset/client/grid/EscalatorProxy.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'uitest/src') 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 indexWidthMap) + throws IllegalArgumentException { + columnConfiguration.setColumnWidths(indexWidthMap); + } } private class RowContainerProxy implements RowContainer { -- cgit v1.2.3