]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #5112
authorJohn Alhroos <john.ahlroos@itmill.com>
Wed, 2 Jun 2010 12:52:37 +0000 (12:52 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Wed, 2 Jun 2010 12:52:37 +0000 (12:52 +0000)
svn changeset:13499/svn branch:6.4

src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
src/com/vaadin/ui/Table.java

index c6f74bc360da5644a008020fd4585ceac65a5ba9..e8cf37c1ffc5a0d4f8d932d8eb2130416a16a62f 100644 (file)
@@ -50,6 +50,7 @@ import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
 import com.vaadin.terminal.gwt.client.Container;
+import com.vaadin.terminal.gwt.client.Focusable;
 import com.vaadin.terminal.gwt.client.MouseEventDetails;
 import com.vaadin.terminal.gwt.client.Paintable;
 import com.vaadin.terminal.gwt.client.RenderSpace;
@@ -90,7 +91,7 @@ import com.vaadin.terminal.gwt.client.ui.dd.VerticalDropLocation;
  */
 public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
         VHasDropHandler, KeyPressHandler, KeyDownHandler, FocusHandler,
-        BlurHandler {
+        BlurHandler, Focusable {
 
     public static final String CLASSNAME = "v-table";
     public static final String CLASSNAME_SELECTION_FOCUS = CLASSNAME + "-focus";
@@ -5038,4 +5039,12 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
         return false;
     }
 
+    /*
+     * (non-Javadoc)
+     * 
+     * @see com.vaadin.terminal.gwt.client.Focusable#focus()
+     */
+    public void focus() {
+        scrollBodyPanel.focus();
+    }
 }
index 336436530c8df59451ebc2eda7cf396dcef4406c..8c9a0afc3defe6ccfb20d6162fd760cdd7c9513c 100644 (file)
@@ -3079,18 +3079,6 @@ public class Table extends AbstractSelect implements Action.Container,
         }
     }
 
-    /**
-     * Focusing to this component is not supported.
-     * 
-     * @throws UnsupportedOperationException
-     *             if invoked.
-     * @see com.vaadin.ui.AbstractField#focus()
-     */
-    @Override
-    public void focus() throws UnsupportedOperationException {
-        throw new UnsupportedOperationException();
-    }
-
     /**
      * Gets the ID of the Item following the Item that corresponds to itemId.
      *