]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add missing since, remove unused command
authorTeemu Suo-Anttila <teemusa@vaadin.com>
Mon, 6 Mar 2017 13:27:09 +0000 (15:27 +0200)
committerHenri Sara <henri.sara@gmail.com>
Tue, 7 Mar 2017 13:43:00 +0000 (15:43 +0200)
compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java
server/src/main/java/com/vaadin/util/EncodeUtil.java

index ea7901773dee2d6cbf21d9ebe0b6e2fce6bd5e87..7ba5c9cc8271dd8422344cc0b6c865090a13f367 100644 (file)
@@ -1316,23 +1316,6 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>,
         private static final String ERROR_CLASS_NAME = "error";
         private static final String NOT_EDITABLE_CLASS_NAME = "not-editable";
 
-        ScheduledCommand fieldFocusCommand = new ScheduledCommand() {
-            private int count = 0;
-
-            @Override
-            public void execute() {
-                Element focusedElement = WidgetUtil.getFocusedElement();
-                if (focusedElement == grid.getElement()
-                        || focusedElement == Document.get().getBody()
-                        || count > 2) {
-                    focusColumn(focusedColumnIndexDOM);
-                } else {
-                    ++count;
-                    Scheduler.get().scheduleDeferred(this);
-                }
-            }
-        };
-
         /**
          * A handler for events related to the Grid editor. Responsible for
          * opening, moving or closing the editor based on the received event.
index eae0890542a00fa2da1ffdc748ea9b6dee046ca8..68cdb600e13f8f66a84bff74594b5fa09e1cd5f2 100644 (file)
@@ -21,7 +21,7 @@ import java.nio.charset.Charset;
  * Utilities related to various encoding schemes.
  *
  * @author Vaadin Ltd
- * @since
+ * @since 7.7.7
  */
 public final class EncodeUtil {
     private static final Charset UTF8 = Charset.forName("UTF-8");