From deb3bc9036386b6d40e100d4890920cab8d75ed5 Mon Sep 17 00:00:00 2001 From: Yuriy Artamonov Date: Tue, 24 Apr 2012 08:50:57 +0000 Subject: [PATCH] Refs #1178 Ability to perform UI actions with some delay after frequently repeating UI event --- .../haulmont/cuba/toolkit/gwt/client/ui/Table.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/web-toolkit/src/com/haulmont/cuba/toolkit/gwt/client/ui/Table.java b/modules/web-toolkit/src/com/haulmont/cuba/toolkit/gwt/client/ui/Table.java index 93f9e0a1b4..bb324c8069 100644 --- a/modules/web-toolkit/src/com/haulmont/cuba/toolkit/gwt/client/ui/Table.java +++ b/modules/web-toolkit/src/com/haulmont/cuba/toolkit/gwt/client/ui/Table.java @@ -367,6 +367,7 @@ public abstract class Table bodyContainer.sinkEvents(Event.TOUCHEVENTS); bodyContainer.addDomHandler(new TouchStartHandler() { + @Override public void onTouchStart(TouchStartEvent event) { getTouchScrollDelegate().onTouchStart(event); } @@ -375,6 +376,7 @@ public abstract class Table bodyContainer.sinkEvents(Event.ONCONTEXTMENU); bodyContainer.addDomHandler(new ContextMenuHandler() { + @Override public void onContextMenu(ContextMenuEvent event) { //handleBodyContextMenu(event); //todo [6.6] } @@ -1920,6 +1922,7 @@ public abstract class Table visibleCells.insertElementAt(hCell, newIndex); } + @Override public Iterator iterator() { return visibleCells.iterator(); } @@ -2487,8 +2490,6 @@ public abstract class Table } public void removeCells() { - VConsole.log("REMOVE"); - for (Element td : tableCells) Tools.removeElementWithEvents(td); @@ -2852,11 +2853,6 @@ public abstract class Table if (selectMode > com.vaadin.terminal.gwt.client.ui.Table.SELECT_MODE_NONE) { if (!nullSelectionDisallowed || !isSelected()) { toggleSelection(); - // Note: changing the immediateness of this might - // require changes to "clickEvent" immediateness - // also. - client.updateVariable(paintableId, "selected", - selectedRowKeys.toArray(new String[selectedRowKeys.size()]), immediate); } } } @@ -3862,6 +3858,7 @@ public abstract class Table if (focusedRow == null) { focusRowFromBody(); selectFocusedRow(false,false); + sendSelectedRows(); } else { setRowFocus(focusedRow); }